Hi people,
Two days before I installed MySQL Server 5.1, Apache 2.2 and PHP 5.31 in my Windows XP, following carefully the instruction given by Kevin Yank here on SitePoint at http://articles.sitepoint.com/articl...installation/2. Everything seemed ok. Every test he presented went ok. I also 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...' but for one 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.






Hi Rubble. I want to say to you that I followed your suggestion, that it resolved my problems and that I am very happy with XAMPP. I liked very much it's easy and quick installation, it's Control Panel, it's index page and the programs that came with it and that makes possible to test it immediately. And I also liked to see that it already came with an email and a ftp servers, besides some other programs. They showed me some ways to follow ahead. So, I want to say you: thank you very much for your great suggestion !
Bookmarks