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 have a shared hosting account with no SSH access (only cpanel & ftp) and I have trouble viewing error logs by apache.

There is a error_log file in my home directory and I have a feeling that error logs used to go in that directory correctly when I first started working on server. Then I edited and deleted all contents in that file several times.
Now for past some days, no error message goes into that file.
Although errors from php script still go into that file correctly but not other errors like errors from CGI or bad request etc errors.

I have tried setting 777 & 640 permission on that file but nothing works.

Can anyone think of any possible thing that can be causing problem??


share|improve this question
If PHP errors are getting written, it's able to write to the log.. how do you know that errors should be getting written? – Shane Madden Dec 27 '11 at 4:42
I work with apache server on my local pc as well. If I access bad address on my website, that should also go into error_log. SO much info. goes into that file... but nothing on that stoopid server and my hosting guys are unhelpful. – vivek.m Dec 28 '11 at 17:53

Try restarting syslog

/etc/init.d/syslog restart
share|improve this answer
Apache doesn't use syslog for logging. – Shane Madden Dec 27 '11 at 4:39

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.