I have encountered some common apache starting troubles regularly. This will help you fix that issue.
1)Perl process listening on port 80 and 443
If any other process listening on port 80 and 443 apache won’t start.To check port 80 and 443 running for another process.
lsof -i TCP:80 | awk ‘{print $2}’ |xargs kill -9
lsof -i TCP:443 | awk ‘{print $2}’ |xargs kill -9
So kill those process first.
root@server204: lsof -i TCP:80 | grep perl | awk ‘{print $2}’ |xargs kill -9
root@server204: lsof -i TCP:443 | grep perl | awk ‘{print $2}’ |xargs kill -9
Then start apache
#/etc/init.d/httpd start
2)Semaphore issue.
Sometimes semaphores will cause trouble. To kill those semaphore,
ipcs -s | grep nobody | perl -e ‘while (<STDIN>) { @a=split(/\s+/); print `ipcrm sem $a[1]`}’
and start apache
#/etc/init.d/httpd start
Also if your log rotates are not working, apache will give internal server error. Make sure that log rotates working fine or delete the log files manaully from
/usr/local/apache/logs
/usr/local/apache/domlogs
Recent Comments