Page 1 of 1

Unable to load php_mysql.dll

Posted: Thu Jul 28, 2005 3:07 am
by tores
Hi

Today when starting my computer php notified me that it was unable to load php_mysql.dll. I checked the extension dir in php.ini, and everything seems to be okey. It points to the directory where the extensions resides. Yesterday I removed the php directory from my PATH variable, but reintroducing it today didn't fix my problem.
Any help is appreciated...

[EDIT]: After doing some research I found that Apache probably is the problem. For some reasen it doesn't seem to discover edits to the PATH variable (I'm running Apache/1.3.31 (Win32))... When doing php_info() and looking into the Apache-enviroment section I found that even though I had c:\php5 in my PATH it didn't show up here. (Yes, I did restart Apache :wink: ) As a consequence libmysql.dll (which php_mysql.dll is dependent upon) didn't get loaded. So I copied it into my system32 folder, and this corrected the problem.

[EDIT]: Well, after restarting my computer the path registered by Apache again contains the php directory..

regards tores

Posted: Thu Jul 28, 2005 8:31 am
by theda
Wow. If your server is just for local-testing and isn't an actual live-server, I'd suggest using Xampp, which allows you to use PHP, Mysql, Apache... (latest builds or as close as possible I believe).

Xampp URL: (And it's free by the way and easy to manage) http://www.apachefriends.org/en/xampp.html

Posted: Thu Jul 28, 2005 9:25 am
by timvw
The real problem is Windows that doesn't rehash the PATH when it should.. :(
Another reason to not use that b0rken toy.