Getting Apache to load php_mysql.dll

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! 🙂
Advertisements
This entry was posted in Computers and Internet. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s