Rob's web

Monitoring

The monitoring should be done on an private used virtual host.

You also should restrict the access to it.

Change the shown IP addresses to yours.

Server status

The Apache Status page (mod_status) is a built-in feature that displays real-time information about Apache's performance, including the number of requests being processed, active connections, and server uptime. This page is an excellent tool for monitoring server performance and identifying issues.

To access the Apache Server Status page, you need to enable it in the Apache configuration file. Once enabled, you can view the status page by navigating to http://private.yourserver.com/server-status. Remember to replace yourserver.com with your server's actual domain name.

<Location "/server-status">
    SetHandler server-status
    Require ip 192.168.1.0/24
    Require ip 2a02:xxxx:xxxx::/48
</Location>

Server info

The server info gives information on the configuration. To see it go to: http://private.yourserver.com/server-info.

<Location "/server-info">
    SetHandler server-info
    Require ip 192.168.1.0/24
    Require ip 2a02:xxxx:xxxx::/48
</Location>

PHP-info

To get the actual PHP configuration you need phpinfo(). You can place it in the test directory of your private host.

# vi phpinfo.php
<?php
phpinfo();
?>