Chapter 26. Logging and Monitoring Web Server Activity

In this chapter, you learn the following:

How to understand Apache log formats and logging levels

How to rotate and analyze Apache logs

How to interpret common errors that might appear in your logs

How to create scripts that log specific items to database tables

How to create custom reports based on these logging tables

This chapter describes how the logging system in Apache works and how you can customize it (which information to store and where). In addition, you learn a quick way to use PHP and MySQL to log specific items of interest to you outside the realm of the Apache log files.

Standard Apache Access Logging

Using Apache’s basic logging features, you can keep track of ...

Get Sams Teach Yourself PHP, MySQL® and Apache All in One, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.