Control Web Panel

WebPanel => Apache => Topic started by: ccheuser on May 13, 2017, 06:34:37 PM

Title: Apache has stopped
Post by: ccheuser on May 13, 2017, 06:34:37 PM
I logged into my control panel and Apache is stopped when I try to restart I get this message:

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]

What is that and how did it happen?

Thanks
Title: Re: Apache has stopped
Post by: 24x7servermanagement on May 14, 2017, 03:08:26 PM
Use fuser command to see what Apache is doing

fuser 80/tcp

Then kill those processes and start Apache. Hope it helps. :)
Title: Re: Apache has stopped
Post by: ccheuser on May 14, 2017, 10:06:34 PM
Thanks for the heads up that did it. After you run that command and see what ports are active you want to run this command and kill them.

fuser -i -k 80/tcp Then hit yes to all that come up.
Title: Re: Apache has stopped
Post by: Administrator on May 16, 2017, 05:18:09 AM
to killall apache process you can use
Code: [Select]
killall -9 httpd
service httpd restart

but you should check before what is listening on the port 80 as you might have there nginx and/or varnish.
In case you have something else on the port 80 then you should use rebuild vhost option from the cwp.
Title: Re: Apache has stopped
Post by: chwn21 on May 19, 2017, 08:11:45 PM
I have the same problem.After update  apache doesnt work..
Title: Re: Apache has stopped
Post by: chwn21 on May 20, 2017, 11:24:59 PM
in Dansboard..Apache--> strart -->

Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.