John Holmes wrote:

***********************************************
This Email Has Been Virus Swept
***********************************************

Okay... I've done this before but can't get it working now. I've got PHP5 working correctly, but I'm trying to load the MySQL php_mysql.dll file. I'm using Apache 1.3 on Windows XP.

No matter what I use for extension_dir in php.ini, it can't seem to find the file. An error dialog will pop up saying "Unable to load dynamic library 'c:\php\ext\php_mysql.dll' - The specified module could not be found." even though that's where the [EMAIL PROTECTED]@ file is!

I've tried putting the .dll in c:\php and c:\windows\system32, also, but I always get the same error even though the path it shows in the error is the correct path. I've tried c:/php, c:/php/ext/, c:\php\ext, c:\php, blank, etc with and without trailing slashes...

The "everyone" user has full control over the entire c:\php directory and subdirectories.

Any ideas? Going back to PHP4 until I can get this sorted out...

Examples from Apache error log of paths to file apache couldn't find:
'\php\ext\php_mysql.dll'
'c:/php/ext\php_mysql.dll'
'c:/php/ext\php_mysql.dll'
'c:\php\ext\php_mysql.dll'
'c:/php/ext/php_mysql.dll'
'c:\php\ext\php_mysql.dll'
'./php_mysql.dll'
'c:/php/ext/php_mysql.dll'
'c:\php\ext\php_mysql.dll'
'c:/php/ext\php_mysql.dll'
'c:/php/ext\php_mysql.dll'
'\php\ext\php_mysql.dll'
'c:/php/ext/php_mysql.dll'
'c:\windows\system32\php_mysql.dll'


I had a similar problem which I eventually resolved. Here are my settings:

  extension_dir = "C:/PHP/ext/"
  extension=php_mysql.dll

Remember to copy 'libmysql.dll' to your Windows System directory (e.g. C:\Windows\System32\). If I remember correctly I also had to remove PHP 4's 'php4ts.dll' from the System directory - maybe this was just getting PHP5 running though?

Restart Apache and hope for the best.

Neil


This communication is confidential to the intended recipient(s). If you are not that person you are not permitted to make use of the information and you are requested to notify the sender immediately of its receipt then destroy the copy in your possession. Any views or opinions expressed are those of the originator and may not represent those of Advanced System Architectures Ltd.

*** This Email Has Been Virus Checked ***

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to