Hi people,
Two days before I installed MySQL Server 5.1, Apache 2.2 and PHP 5.31 in my Windows XP. Everything seemed ok. I could see the PHP info in my browser opening 'http://localhost/phpinfo.php'. And, from the DOS MySQL Monitor, I also could open MySQL and some of its tables.
But the things gone bad when I tried do access the mysql tables from PHP, instantiating a mysqli object. The browser quickly showed 'Connecting to localhost...' in the status bar and soon after 'Waiting answer from localhost...' for a hole minute. Then, it showed a blank page.
Trying to discover the problem, I simplified the php file to the following:
<?php
$mysqli = new mysqli("localhost" , "root" , "my_password" , "database_name");
if ($mysqli)
echo "OK !";
else
echo "Problem ! " ;
?>
I saved it in the same folder of the phpinfo.php file (the Apache2.2\htdocs folder). When I called it in the browser, the same problem happened again: a hole minute wait and a hole blank page (the "Problem !" string wasn't showed).
The php-errors.log file informs : ' PHP Fatal error: Maximum execution time of 60 seconds exceeded.' 'The connection failed because the connected host did not answer'.
I have already configured the php.ini file with extension_dir = "C:\PHP5.31\ext" and uncommented the extension=php_mysqli.dll line.
I have also configured the httpd.conf file of Apache, adding the line PHPIniDir "C:/PHP5.31/" at its the end.
Can anyone help me to solve this problem ? I will be thankful.
Marcos.