MySQL extension for PHP 5.2.3 not working
Hey everyone,
Today I felt like getting rid of the Apache2Triad server bundle (which includes many servers I never use) and decided to install fresh installations of Apache 2.2, MySQL 5.0.41 and PHP 5.2.3 (all latest versions, according to their sites). But there is one thing not working properly: MySQL in PHP.
Apache install information
I installed the Apache 2.2 server to C:\Program Files\Apache 2.2. I didn't install the documentation, because if I use it, the online documentation is usually more up-to-date. The root directory you see when going to http://localhost (http://84.107.204.56 for you guys ;p) is C:\Program Files\Apache 2.2\htdocs.
MySQL install information
I installed the MySQL 5.0.41 server to C:\Program Files\MySQL Server 5.0. I installed all the 'Client Programs' (Command Line Shell, Command Line Utilities and Server Instance Config) and the 'Instance Manager' and left out the Documentation and Developer Components.
PHP install information
I installed PHP 5.2.3 to C:\Program Files\PHP. In the setup options, I selected both 'CLI Executable' and 'Script Executable', the Web Server Setup for Apache 2.2.x and the extentions GD2 (which is working just fine) and MySQL. My php.ini file is located in the PHP root directory (see above). Extension_dir is set to /ext in the PHP root directory. The php_mysql.dll file is in /ext in the PHP root directory and is uncommented (un-semi-colon-ed ;p lol) in php.ini, just like the php_gd2.dll file. There is a file libmysql.dll in the PHP root directory. Before you ask so, I did restart the Apache server. You can find all information provided by phpinfo() in http://84.107.204.56/phpinfo.php (only when my computer is online, of course, which it will be in around 10 hours from now).
I'm quite sure it's the MySQL extension which is not working, because:
-It is nowhere mentioned in phpinfo() (but GD2 is...)
-I'm getting the following error in phpMyAdmin: "Cannot load mysql extension. Please check your PHP configuration."
-I'm getting the following error in my phpBB2 testing board (which will be kinda empty as I forgot to export the database before uninstalling Apache2Triad ;p): "Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache 2.2\htdocs\phpBB2\db\mysql4.php on line 48."
I hope there's anyone around who can help me find the problem, as I can't find it myself after trying all kinds things for about an hour and a half.
Thanks in advance for any replies,
Jerry