Reviewing Apache Server Log Files

Q

Where are Apache server log files located?

✍: FYIcenter

A
If you have followed our Apache Server Installation tutorial, your Apache server is installed at C:\Program Files\Apache Software Foundation\Apache2.2. You can follow this tutorial to locate Apache server log files and review them.

1. Open File Explorer and go to C:\Program Files\Apache Software Foundation\Apache2.2.

2. Go to subdirectory: .\logs. You should see 4 files:

access.log - Records every page access request.
error.log - Records Apache server notices and errors.
httpd.pid - Records the process id of Apache server.
install.log - Records installation information.

3. Open access.log with "notepad". You should see some lines like this:

127.0.0.1 - - [...] "GET / HTTP/1.1" 200 44
127.0.0.1 - - [...] "GET /my_first.html HTTP/1.1" 200 65
127.0.0.1 - - [...] /my_first.php HTTP/1.1" 200 62
...

4. Open error.log with "notepad". You should see some lines like this:

[...] [notice] Apache/2.2.3 (Win32) configured -- resumi...
[...] [notice] Server built: Jul 27 2006 16:49:49
[...] [notice] Parent: Created child process 3980
[...] [notice] Child 3980: Child process is running
[...] [notice] Child 3980: Acquired the start mutex.
[...] [notice] Child 3980: Starting 250 worker threads.
[...] [notice] Child 3980: ...listen on port 8080.

access.log and error.log contain important information for troubleshooting Apache server configuratin issues.

2006-12-09, 17197👍, 0💬