Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I would like to use Wusage to generate stats for multiple virtual domains and for each domain to have its own reports directory. How do I do I automate this process?

0
10 Posted

I would like to use Wusage to generate stats for multiple virtual domains and for each domain to have its own reports directory. How do I do I automate this process?

0
10

First, create a good configuration for a single virtual server. Then, copy that .conf file to the locations you prefer for each of the other virtual servers, changing these two configuration file lines to suit the client: logfiles reportdir This is the minimum amount of modification required. This can be done very easily with a Perl script. Finally, you will write a shell script which runs each of these jobs, CONSECUTIVELY (please *don’t* run them all at once or try to stagger them with many cron jobs), and create a single crontab entry which points to that shell script. (A good example of such a script can be found in the script archive.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.