I ran a quick mysql_connect test using the php 5.4.11 cli and was met with many annoying warnings : $ php -r "mysql_connect( \"localhost\", \"username\", \"password\" ) or die(\"Unable to connect to MySQL\"); echo \"Connected to MySQL\\n\";" 2>&1 | cat -n - 1 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/gd.so' - ld.so.1: php: fatal: /usr/local/lib/php/extensions/gd.so: open failed: No such file or directory in Unknown on line 0 2 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/gettext.so' - ld.so.1: php: fatal: /usr/local/lib/php/extensions/gettext.so: open failed: No such file or directory in Unknown on line 0 3 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/ldap.so' - ld.so.1: php: fatal: /usr/local/lib/php/extensions/ldap.so: open failed: No such file or directory in Unknown on line 0 4 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/mcrypt.so' - ld.so.1: php: fatal: /usr/local/lib/php/extensions/mcrypt.so: open failed: No such file or directory in Unknown on line 0 5 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/mhash.so' - ld.so.1: php: fatal: /usr/local/lib/php/extensions/mhash.so: open failed: No such file or directory in Unknown on line 0 6 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/mysql.so' - ld.so.1: php: fatal: /usr/local/lib/php/extensions/mysql.so: open failed: No such file or directory in Unknown on line 0 7 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/mysqli.so' - ld.so.1: php: fatal: /usr/local/lib/php/extensions/mysqli.so: open failed: No such file or directory in Unknown on line 0 8 Connected to MySQL So I am happy with the final line but annoyed by the seven previous. There seems to be no need for gd.so or any of the other dynamic libs that are being searched for. Not sure why these messages are happening and I looked in /usr/local/lib/php.ini where I see this : ; Directory in which the loadable extensions (modules) reside. extension_dir = "/usr/local/lib/php/extensions" Seems reasonable. However I do not need mysql.so because the php binaries were linked with -lmysqlclient. So how to get rid of these warnings ? Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php