Forum Moderators: phranque
I've installed WAMP many time, but this is the first time on Vista. I had IIS installed on this OS, so I've just unistalled it. Apache works, PHP works, MySQL works, the only problem is, if I'm loading any script working with MySQL (in phpinfo I can see MySQL installed). I've a script, which loads OK in my other OS (XP), but in Vista, if writing localhost/testingdb.php, the server crashes. I got a Windows box saying:
Apache HTTP Server stopped working and was closed
I've installed it second time and again with the same strange behavior. Any PHP scripts not working with MySQl work perfect, Here is the error.log part.
[Wed Oct 21 00:06:58 2009] [notice] Parent: child process exited with status 255 -- Restarting.
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.104 for ServerName
[Wed Oct 21 00:06:58 2009] [notice] Apache/2.2.13 (Win32) PHP/5.2.11 configured -- resuming normal operations
[Wed Oct 21 00:06:58 2009] [notice] Server built: Aug 6 2009 15:50:50
[Wed Oct 21 00:06:58 2009] [notice] Parent: Created child process 2548
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.104 for ServerName
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.104 for ServerName
[Wed Oct 21 00:06:59 2009] [notice] Child 2548: Child process is running
[Wed Oct 21 00:06:59 2009] [notice] Child 2548: Acquired the start mutex.
[Wed Oct 21 00:06:59 2009] [notice] Child 2548: Starting 64 worker threads.
[Wed Oct 21 00:06:59 2009] [notice] Child 2548: Starting thread to listen on port 80.
The URL is redirected to [localhost.com...] (my hosts file is OK for sure, having the localhost there).
What's more strange is that it sometimes work, sometimes I get Connection interrupted and no URL change.
Please help me with running WAMP on Vista! My PC is not compatible with XP, where it is very unstable, so I need to move all to the Vista OS.
Here is a piece of my php script (which works perfectly on my XP version):
<?php
mysql_connect("localhost", "userone", "passone") or die(mysql_error());
echo "Connected to MySQL<br />";
mysql_select_db("mysql") or die(mysql_error());
echo "Connected to Database";
$sql=mysql_query("select name from help_topic limit 2");
while ($sqlok=mysql_fetch_array($sql)) {
echo $sqlok[0].'<br />';
}
?>