Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a problem with Apache returning 500 Internal Server Error on some requests. I thought that when something wrong happens server side, Apache stores the error log in error.log file, but I notice that I was wrong: this file contains only the events about when Apache started and stopped (and, I imagine, the errors encountered on server startup).

Event Viewer doesn't display anything neither.

So does Apache at least log errors? If yes, where? If no, are there any third party applications which can track such errors?


Context: I'm using Apache 2.2 on Windows Server 2008, trying to setup a SVN server. Any request to the server when SVN is active results in a 500 Internal Server Error response. I don't know too much about Apache, so please answer in a way understandable by a non-advanced user.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

If you are using Virtual Hosts, it may be that you have opted to have the logs stored as a different name. Generally the convention is to keep all logs in the same folder (or copy them to a user specific folder), and name them something like sitename.com.error.log.

Check your Apache virtual hosts configuration and try to find where they are stored. If you are still stuck, you could potentially use Process Monitor to determine what files are being accessed while your server is running: http://technet.microsoft.com/en-us/sysinternals/bb896645

share|improve this answer
    
+1 This is what I would have said –  Doc Jul 6 '11 at 0:49
    
+1 for Process Monitor, I didn't thought myself about using it. But it shows only that Apache is writing to access.log, but there is no trace of error files read/write operations. Also, I checked again all the configuration files; there are no virtual hosts and the only two references to *.log files are ErrorLog "logs/error.log" and CustomLog "logs/access.log" common. –  MainMa Jul 6 '11 at 2:36
    
It would appear that there is probably a more significant issue with your Apache installation if it is failing to log errors properly. Perhaps a re-installation of Apache may help, or maybe consider asking in ServerFault, maybe in the chat area to determine whether the question will be strictly on-topic. –  Ruairi Fullam Jul 6 '11 at 12:41

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.