If you do not have any hosting control panel, you probably will not be able to measure the bandwidth usage per virtualhost. You will need additional Apache module to log input/output request and then you can use script to parse the logs and save the usage to your database.

One of the available Apache modules is mod_logio. This module provides the logging of input and output number of bytes received/sent per request. For more information on this module, you may refer the following:

http://httpd.apache.org/docs/current/mod/mod_logio.html

Kailash Aghera

Monitor the bandwidth usage per VirtualHost in Apache

Last Updated on

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.