Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP Warning: Module 'ldap' & 'mysql' already loaded when running PHP at command line

I am getting the following errors:

PHP Warning:  Module 'ldap' already loaded in Unknown on line 0
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0

when running the following command at the command line:

php -c /etc/php.ini /path/to/script.php

/etc/php.ini is the same php.ini that shown in phpinfo().

Any ideas?

like image 572
Darryl Hein Avatar asked Oct 31 '08 17:10

Darryl Hein


1 Answers

Were these two modules compiled into the PHP binary? If so, you can remove or comment out the two pertinent extension= lines in php.ini.

like image 178
Brian Cline Avatar answered Oct 29 '22 04:10

Brian Cline