1

I can't restart Apache: if I try to start it, the error is this:

(98)Address already in use: 
AH00072: make_sock: could not bind to address 0.0.0.0:80 
no listening sockets available, shutting down 
AH00015: Unable to open logs Action 'start' failed. 
The Apache error log may have more information.

If I try to stop it (even if it's not running), the error is this:

There are processes named 'apache2' running which do not match your pid file which are left untouched in the name of safety, Please review the situation by hand.

The problem is that I can't kill these processes; I tried with sudo kill -9 #PID but nothing happens. I check the pid file of Apache2 in run/apache2 but there is no files.

How can I solve?

4
  • In a terminal try to execute: sudo killall apache2 and then restart Apache.
    – wie5Ooma
    Dec 27, 2015 at 2:44
  • @wie5Ooma thanks for the suggestion but this doesn't work. All processes are still alive Dec 27, 2015 at 14:38
  • Can you please execute this command in the terminal: ps ax | grep apache and give the output of this command.
    – wie5Ooma
    Dec 27, 2015 at 21:52
  • How are you trying to restart Apache? Jan 16, 2017 at 7:16

1 Answer 1

0

You need to manually find the pidis of the crashed apache process

pidof apache2 

Then kill the process(es) one at a time

sudo kill -9 <pid>

Then you can start Apache2 as usually :

sudo service apache2 start

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .