O'Reilly logo

Sams Teach Yourself PHP, MySQL and Apache: All in One, Third Edition by Julie Meloni

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 26. Logging and Monitoring Web Server Activity

This chapter 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 a quick way to use PHP and MySQL to log specific items of interest to you outside the realm of the Apache log files.

In this chapter, you will learn

  • 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

Standard Apache Access Logging

Using Apache’s basic logging features, you can keep track of who visits your websites ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required