You are here: Home Tech Notes General Apache: Error(98)
Apache: Error(98) PDF Print E-mail
User Rating: / 0
PoorBest 
Tech Notes - General
Written by Rick   
Tuesday, 25 May 2010 10:23

I ran across a situation where Apache wouldn't start. It generated the following error;

"(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"

I located a thread at wallpaperama.com that fixed the problem. Use the following from CLI;

First;

for i in `ps auwx | grep -i nobody | awk {'print $2'}`; do kill -9 $i; done

Second;

for i in `lsof -i :80 | grep http | awk {' print $2'}`; do kill -9 $i; done

If Apache still doesn't start;

for i in `ipcs -s | grep nobody | awk '{print $2}'`; do ipcrm -s $i; done

Correcting my particular problem did not require running the last line.

Comments (0)
Write comment
Your Contact Details:
Gravatar enabled
Comment:
[b] [i] [u] [url] [quote] [code] [img]   
:angry::0:confused::cheer:B):evil::silly::dry::lol::kiss::D:pinch:
:(:shock::X:side::):P:unsure::woohoo::huh::whistle:;):S
:!::?::idea::arrow:
Security
Please input the anti-spam code that you can read in the image.