I’ve spent several hours today trying to get Apache working with MySQL 5 and PHP 5 on Windows Server 2003 and have had a nightware getting Apache to load the php_mysql.dll library.
In the Apache error log I keep seeing this every time I restart it:
PHP Warning: PHP Startup: Unable to load dynamic library ‘d:\\php\\ext\\php_mysql.dll’ – The specified module could not be found.\r\n in Unknown on line 0
Lots of searching on the web revealed loads and loads of people with the same problem and not many people finding the answer. Despite having the configuration looking fine (my socket and snmp modules were loading fine) it just won’t load.
I finally found the answer in a post in the MySQL web site forums. Go to the directory where you installed PHP, e.g. c:\php and copy the libmysql.dll file to the windows\system32 directory then restart Apache and with a bit of luck it should load.
Hope it works for you, I was starting to get very frustrated! 🙂