I registered, just to reply to this thread, which saved me, thank you OP
Have to add though, after the kill command, the apache start command might fail, with an error:
WARNING: apache2 has already been started.
Do a apache 'zap', so you manually resetting apache's state to stopped.
Then, try apache start
EDIT: notice I killed the process twice!
Logs:
Code:
no listening sockets available, shutting down
Unable to open logs [ ok ]
ns1 ~ # netstat -ltnp | grep ':80'
tcp 0 0 :::80 :::* LISTEN 3945/gpasswd
ns1 ~ # kill -9 3945
ns1 ~ # /etc/init.d/apache2 restart
* Stopping apache2 ... [ ok ]
* Starting 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 [ ok ]
ns1 ~ # netstat -ltnp | grep ':80'
tcp 0 0 :::80 :::* LISTEN 4019/httpd
ns1 ~ # kill -9 4019
ns1 ~ # netstat -ltnp | grep ':80'
ns1 ~ # /etc/init.d/apache2 start
* WARNING: apache2 has already been started.
ns1 ~ # /etc/init.d/apache2 zap
* Manually resetting apache2 to stopped state.
ns1 ~ # /etc/init.d/apache2 start
* Starting apache2 ... [ ok ]
ns1 ~ #
Again. thanks OP, you're a lifesaver
Bookmarks