Apache won’t start and there is nothing in the logs
by admin on Sep.25, 2011, under DirectAdmin
Chance are, if apache isn’t starting and isn’t logging anything, the error_log is full preventing apache from starting. To double check that, run:
cd /var/log/httpd
ls -lS | less
If any file is around 2-3 gig (or more), then chances are, that’s the problem.
The solution is to remove the logs, restart apache, and then implement preventative measures.
1)
cd /var/log/httpd/
rm -f error_log
rm -f access_log
rm -f suexec_log
rm -f fpexec_log
/sbin/service httpd restart ("/usr/local/etc/rc.d httpd restart" for FreeBSD)
2) Get logrota to rotate daily
perl -pi -e ‘s/weekly/daily/’ /etc/logrotate.conf
perl -pi -e ‘s/rotate 4/rotate 2/’ /etc/logrotate.conf
If apache still doesn’t start, check /var/log/messages and try recompiling apache.
Incoming search terms:
apache wont start,apache running tidak lama,cpanel apache won\t restartRelated posts:
- Updating Apache to the latest version You can check the current version of apache by running...
- Apache stops responding but is running A few things that could cause that are: Possible Causes:...
- cgi files generate Internal Server Error This means that the cgi script did not execute properly....
Related posts brought to you by Yet Another Related Posts Plugin.
