Chapter 17. Logging and Monitoring Server Activity

This hour describes how the logging system in Apache works and how you can customize it—which information to store and where to do it. Additionally, you will learn to use PHP and MySQL to log specific items of interest to you, outside the realm of the Apache log files.

In this hour, you will learn how to

  • Understand Apache log formats and logging levels

  • Rotate and analyze Apache logs

  • Interpret common errors that might appear in your logs

  • Create scripts that log specific items to database tables

  • Create custom reports based on these logging tables

Standard Apache Access Logging

Using Apache’s basic logging features, you can keep track of who visits your Web sites by logging accesses to the servers hosting ...

Get Sams Teach Yourself PHP, MySQL™ and Apache in 24 Hours 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.