Stamoplysninger · Hvem er jeg · Hvad kan jeg tilbyde · Freelance · Tidligere stillinger · Hvor søger jeg · Hjælpe Guides

I was getting the following error on one my servers, after updating apache2 and php5 on Debian Lenny

 Starting web server (apache2)...(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
failed!

This is what I did to fix the problem

netstat -lnp | grep '80'#output
tcp6 0 0 :::80 :::* LISTEN 7882/apache2

In my case the output showed that apache2 was already using the port, although no sites was working and it was not even possible to stop the apache2 daemon. I ran the following to learn more

ps 7882
PID TTY STAT TIME COMMAND
7882 ? Ss 0:00 /usr/sbin/apache2 -k start

I killed the apache2 process, which was blocking everything

kill 7882

and restarted apache

/etc/init.d/apache start

and everything was working fine again. Hopefully this is useful for someone..







Tom Frank Christensen · Kirkestien 6, Almind · 8800 Viborg · 29 92 97 67 ·
Starting web server (apache2)...(98)Address already in use: make_sock: could not bind to address [::]:80 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs failed! Starting web server (apache2)...(98)Address already in use: make_sock: could not bind to address [::]:80 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs failed! Starting web server (apache2)...(98)Address already in use: make_sock: could not bind to address [::]:80 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs failed!


Vanvid.dk · Bimse og Toms glade vanvid · Freelance programmering · kn00b.com · LottoStat.dk · Video Competition · Faced!

Starting web server (apache2)...(98)Address already in use: make_sock: could not bind to address [::]:80 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs failed!