Click to See Complete Forum and Search --> : PHP/MySQL/Apache


Jona
08-07-2004, 09:29 PM
All right, I have PHP, Apache, and MySQL running on my local webserver. Everything works great, except one thing. Upon initializing Apache, I get an error message saying that it cannot load the php_mysql.dll extension. Now I have other extensions, such as php_tidy.dll, which are in the same directory (extension_dir is specified as "c:/php/ext/" in php.ini) as php_mysql.dll, but it will not load the MySQL extensions. I'm using PHP5, Apache 2.0 (I tried 1.3 but it didn't work either), and the latest version of MySQL I could get. I know it is reading in the c:/php/ext/ directory, because I renamed php_tidy.dll to php_tidyX.dll, and it gave the same error message, saying it could not find php_tidyX.dll. I renamed it back to php_tidy.dll, and it loaded fine. I've placed copies of php_mysql.dll in every directory I can think of, as an extra precaution (c:\windows, c:\windows\system32\, c:\php, c:\php\ext, c:\web\Apache, c:\web\Apache2, c:\web\Apache2\modules, and more). I've been working on this for a few hours, and haven't gotten any of it figured out. Any ideas?

Thanks,

tsinka
08-07-2004, 09:58 PM
Hi,

did you copy the contents of the dlls folder to system32 ?

Thomas

Jona
08-08-2004, 03:43 AM
DLL's folder? There was none. I took the ZIP package of PHP, as I normally do when upgrading PHP, and extracted it to C:\php. I copied the ext directory's DLL files (the extensions) to C:\Windows\System32, though.

tsinka
08-08-2004, 04:21 AM
Hi,

sorry, my fault, you're using php 5, so copy at least php5ts.dll and libmysql*.dll from the php root folder to the system32 folder.

Depending on which extensions you want to use you might need to copy other dlls like libmhash.dll to system32, too.

Thomas

Jona
08-08-2004, 02:22 PM
There was a text file which included a listing of the extension DLL's and their dependency DLL's. Apparently, those are all of the DLL's that will be required for the extensions which have other dependencies. I'll give it a shot, thanks.

Jona
08-08-2004, 02:27 PM
All right, that's got it, thanks a million!