Linux > DirectAdmin

Fix Apache starting Error- nothing in logs

(1/1)

mohitht:
Hi All,

If we got an error with an apache we will check the error logs. Sometimes the error log will be full and Apache can't able to start  to check this type the following command in terminal

# cd /var/log/httpd

# ls -lS | less

To avoid this problem is to remove the logs, and restart the Apache web server  by

# cd /var/log/httpd/

# rm -f error_log

# rm -f access_log

# rm -f suexec_log

# rm -f fpexec_log

# /sbin/service httpd restart


That's it  :)

Navigation

[0] Message Index

Go to full version