Httpd – Failed to restart Apache server

apache-2.2failedhttpd

I'm trying to restart Apache through Plesk. When I click "Restart", i'm getting the following message.

Error: Unable to make action: Unable to manage service by
apache_control_adapter: Service /etc/init.d/httpd failed to start
('–start', 'web')

I also tried(thanks to paulsm4 from stackoverflow to do it through the terminal. I typed

sudo /etc/init.d/httpd start

and the error i got is:

Starting httpd: (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]

Thank you in advance!

Best Answer

httpd seems to be still running in a bad state...

try:

# kill -9 $(pidof httpd)
# /etc/init.d/httpd start

You should also verify that logs exists and have good permissions.