Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to know where can I find apache's error log. According to a website that I read, it should be at /var/log/httpd/error_log But I don't have the httpd directory on /var/log

share|improve this question
It is where you described it. Probably you never started apache and therefore this directory did not get created. Or you have you custom build configuration. Did you maybe install some hosting control panel software? – Raffael Luthiger Oct 8 '10 at 22:13
up vote 5 down vote accepted

Check your httpd.conf

The LogFile variable tells you where apache is writing logs. This value is often (always?) relative to the ServerRoot variable.

share|improve this answer

Chances are it's in /var/log/httpd.

Do you have locate installed? Have you run updatedb recently, or have it cronified? If so, you can do locate error_log.

share|improve this answer

take a look at your /etc/httpd.conf file and check where you are writing your logs valter. as Raffael says it maybe that you've got them being written to odd locations. check that your httpd server actually started too! :-)

share|improve this answer
I found the following line on httpd.conf, in other server: ErrorLog logs/error_log – valter Oct 8 '10 at 22:42
check in /etc/logs or /var/logs or set a full path there '/var/logs/httpd/error_log' – Khushil Oct 8 '10 at 22:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.