ApplePro
01-10-2008, 01:50 PM
Hello,
I've installed awstats on my Linux server and awstats module for Webmin.
I configured everything and it works, but to update awstats report, I need to do following:
- login into Webmin and click "Update" in Awstats module menu.
- login to serverthrough SSH and run these commands:
cd /home/re/
perl /home/re/awstats/awstats.pl -config=www.mysite.com -output -staticlinks > /home/re/awstats/awstats.mysite.html
then I can see upadated statistics from my browser.
But how can I automate this? I guess I should try to put some script into the Cron.
Could you give me sample text of such script?
Another question is I set "Enable Update From Browser" option to "1", but I can't see "Update" link in browser (it worked on my last server with cPanel installed).
I've installed awstats on my Linux server and awstats module for Webmin.
I configured everything and it works, but to update awstats report, I need to do following:
- login into Webmin and click "Update" in Awstats module menu.
- login to serverthrough SSH and run these commands:
cd /home/re/
perl /home/re/awstats/awstats.pl -config=www.mysite.com -output -staticlinks > /home/re/awstats/awstats.mysite.html
then I can see upadated statistics from my browser.
But how can I automate this? I guess I should try to put some script into the Cron.
Could you give me sample text of such script?
Another question is I set "Enable Update From Browser" option to "1", but I can't see "Update" link in browser (it worked on my last server with cPanel installed).
