Apache Webserver showing as stopped

Webmin version 1.550 Virtualmin version 3.85 Pro Operating system CentOS Linux 5.6

I received an email from my system stating:

/etc/cron.daily/logrotate:

Stopping httpd: [ OK ] 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] Stopping httpd: [FAILED] 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]

I logged into Virtualmin and see that Apache is down in my 'Service Status'. When I attempt to start Apache from my 'System Information' page, I am directed to the following message:

Failed to start apache :

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]

All my websites are working fine though, kindly advise.

Status: 
Closed (fixed)

Comments

Howdy -- those errors suggest that Apache isn't stopping and restarting cleanly.

To correct that -- what I'd suggest is logging into your server over SSH as root, and running these commands:

killall httpd
sleep 5
/etc/init.d/httpd start

After that -- does Apache show up correctly in Virtualmin?

[root@host ~]# killall httpd [root@host ~]# sleep 5 [root@host ~]# /etc/init.d/httpd start Starting httpd: [ OK ]

Logged in to Virtualmin, refreshed the page, and all's well.

Thank you.

Great, I'm glad that helped. Let us know if you have any other questions!

Automatically closed -- issue fixed for 2 weeks with no activity.