views:

563

answers:

1

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?

+2  A: 

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.

Brian Cline
thxsi should have thought of that
Darryl Hein