Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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??

Thanks!

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

1 Answer 1

Try restarting syslog

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

Your Answer

 
discard

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.