Hi,

I am so frustrated. I have got PHP5 running fine on apache 2.2, under windows XP.

I have spend hours trying to get php to connect to the mysql server but the extension is not loading correctly.

I followed ALL the instructions on this page:
www.php.net/mysql

I have specified the extension dir, I have checked to make sure the files are in the correct directories. php_mysql.dll in the ext dir (C:\php\ext) and libmysql.dll is in the php dir (C:\php)

I have set the extension_dir in my php.ini file to extension_dir = "C:\php\ext\"
I have added c:\php\ to my windows PATH.

I have turned error reporting on.. and apache is telling me this when it starts.

PHP Startup: Unable to load dynamic library 'C:\php\ext\php_mysql.dll' - The specified module could not be found.

I have no idea why, the file is there i am 110% certain, this is the second time I have tried to install PHP and Mysql on windows and had the same problem.

/me wishes I could use something as easy as synaptic to install it.. but unfortunatley I need to use WINDOWS.

Can anyone help please.

    There are issues running PHP 5 with Apache 2.2. It is difficult to say, but perhaps the dll is out-dated and needs to be updated. Hence why with PHP 5, you need to get a "custom" php5apache2.dll file.

    WHat I would suggest is going down to Apache 2.0 for now. I know for a fact that Apache 2.0 and php 5 work fine together without any issues or custom DLL files.

    As for something easy in Windows to use, I just recently came across Uniform Server on this board. I've tried it out, and must say it's pretty good. Not as many options as running your own Apache and PHP; however, they're still there instead of an intuitive interface. Plus, you just download, extract, open the folder that's extracted, run a batch or VBScript file and then you've got Apache, PHP 5, mySQL, and if enabled Perl ready to go. Worth checking out.

      I've had good luck installing XAMPP on a couple different WinXP PCs with no problem. In addition to installing Apache, PHP, and MySQL, it also installs Perl and phpMyAdmin for you, too.

        Write a Reply...