Apache Down

/sbin/service httpd restart
httpd not running, trying to start
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs

Solution:

netstat -plan | grep :80

check how many process are listening to port 80 of the webserver. if there are many process then check the process id in /proc/precessid. Check for the malicious scripts or any eggdrop running. The issue may have also occur when sendmails are running through php files.

Kill the sendmail and then restart the apache.

If apache is not restarting after this. Remove semaphore using the following script.

root@del [~]#for i in `ipcs -s | grep nobody | awk ‘{print $2}’`; do ipcrm -s $i; done

This will fix it.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.