Apache is dead
Posted by: cdanea (---.travelmaster.ro)
Date: March 21, 2006 09:38AM

At one point my apache server stopped starting. Since I was on the live testing stage I couldn't care less. But now I've tryed to start it time and time again.

Simptoms:
I had a ghost Apache server in the services list from a very old install of Apache 1.3.x (I deleted the entry just now)
The Apache sub-menu only includes install/uninstall service. And neither work.
There is no wamp apache server in my services list.

What do I do?


Options: ReplyQuote
Re: Apache is dead
Posted by: cdanea (---.travelmaster.ro)
Date: March 21, 2006 09:52AM

here is the error I get when trying to run apache2 manually:

(OS 10048)Only one usage of each socket address (protocol/network address/port)
is normally permitted. : make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs

Options: ReplyQuote
Re: Apache is dead
Posted by: cdanea (---.travelmaster.ro)
Date: March 21, 2006 09:54AM

since this is a socket problem, my guess is that there is another program listening on port 80, but there should not be any, since I removed IIS from the XP

Options: ReplyQuote
Re: Apache is dead
Posted by: roms (---.w193-251.abo.wanadoo.fr)
Date: March 21, 2006 10:03AM

You've got your answer. Another program is using prot 80. Might be Skype , an anti-spam...

try to execute this :

<?php
$fp = @fsockopen("127.0.0.1", 80, $errno, $errstr, 1);
$out = "GET / HTTP/1.1\r\n";
$out .= "Host: 127.0.0.1\r\n";
$out .= "Connection: Close\r\n\r\n";
if ($fp)
{
fwrite($fp, $out);
while (!feof($fp))
{
$line = fgets($fp, 128);
if (ereg('Server: ',$line))
{
echo 'Your port 80 is actually in use by :

';
echo $line;
}
}
fclose($fp);
}
else
{
echo 'Your port 80 is not actually used.';
}

?>

An adaptation of this script will be part of the next WAMP5 version

Romain



Romain

Options: ReplyQuote
Re: Apache is dead
Posted by: cdanea (---.travelmaster.ro)
Date: March 21, 2006 10:06AM

a service was stuck listening on port 80. PRTV traffic grapher or something like that.

Options: ReplyQuote
Re: Apache is dead
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: March 21, 2006 12:53PM

The only problem with using the php script to see what is using port 80 is that if port 80 is all ready being used by something else, apache will not start, so you would not be able to run that php script to see what is using port 80.

Options: ReplyQuote


Sorry, only registered users may post in this forum.