LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Weblizer - Making reports on virtual servers and moving them to view on the net (https://www.linuxquestions.org/questions/linux-software-2/weblizer-making-reports-on-virtual-servers-and-moving-them-to-view-on-the-net-873447/)

kitek 04-06-2011 05:56 PM

Weblizer - Making reports on virtual servers and moving them to view on the net
 
I currently know how to run a traffic report on the whole host. How can I setup a cron job to run the report on a paticular virtual host and move it to the directory where it can be view over the net?

phptek 04-18-2011 03:34 PM

Quote:

Originally Posted by kitek (Post 4316406)
I currently know how to run a traffic report on the whole host. How can I setup a cron job to run the report on a paticular virtual host and move it to the directory where it can be view over the net?

You didn't say which webserver you're using but if you know how to invoke webalizer to parse your webserver's logs, and you know how to run a cron (?) then you're 2/3rds the way to figuring this out for yourself :-)

In order to be able to publicly view Webalizer's HTML pages, I would assume it has some config option to tell it where to drop them.

So assuming you're running Apache (similar for other webservers) and you're running websites on different hosnames using Apache VHosts for example, then in each <VirtualHost> directive in conf/extra/httpd-vhosts.conf you add one or two lines to tell Apache where to output the error and access logs.

Again in Webalizer's config, there should be a way to either run one Webalizer instance, and tell it about your individual hosts (and their logs), or you setup one Webalizer instance for each host, pointing it at the webserver's logfiles for that host.

Good luck
Russell


All times are GMT -5. The time now is 10:30 PM.