Unanswered: Still can't see MySQL from Apache2/PHP.
As per a previous post from savbill on an XP box...
I have ensured php5apache.dll is active on the Apache Server... PHP works fine, there... Until I try to access MySQL.
I have copied the libmysql.dll to the system32 directory, as per the post.
I have not copied it to the Apache2 folder.
Now... For whatever reason, my install of PHP-5 *did not* include an 'ext' folder (php-5/ext/). I had to create it myself. I have also copied all extensions from PHP-4's 'extension' folder to the 'php-5/ext' folder that I had to create.
I have ensured that, in php.ini, the 'extension_dir=' points to the extension directory I had to setup under PHP5.
I have also ensured that the 'extension=php_mysql.dll' *is in* php.ini, as well as ensuring the php_mysql.dll resides in the 'php-5/ext' folder. (by the way, I have also ensured these two lines in php.ini are not commented out).
WHENEVER I try to hit MySQL from the Browser/PHP, all I get is a blank screen (PHP/Apache *without* hitting MySQL works fine). This happens with my test code (that used to work fine w/ PHP-4) as well as phpMyAdmin. When I view the source code for the page returned to me, all I get is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
I don't know if it still applies, but when installed MySQL & PHP on XP the MySQL libraries were banjaxed, you needed to do another step after downloading, I think it required getting a more recent version of the MySQL library.
Id check the documentation for the version you are using,
Id check the documentation for the PHP release
Id check the web to see if there are similar or related problem for the versions (of both PHP & MySQL) you are using.