• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

how to rebuild awstats static pages of migrated awstats database files

gggino

New Pleskian
Hello,
I had an hosting account with a copany, recently I migrated to VPS managed by plesk 11.5

I was able to get the awstats database file from the old host, and i have copied them in the

/var/www/vhosts/mydomain.com/statistics/webstats/ folder, together with the other database files genereted by the new VPS hosting

Only problem is that plesk only rebuilds everyday the static page for the current month, and I see no way to ask him to build the pages for this past months. Also would be good if he would rebuild the header to have updated the dropdown menu from which to choose the month to dispay

Is it possible to rebuild manually these static pages?
 
I saw this, but I don't think it does what I need.
I'm not sure I have understood what is the -f parameter doing, but using it without the -f parameter it doesn't do what i need: it has actually deleted the AWSTATS database files for the period covered by the presence of apache database files, then rebuilt the awstats databases, and the the static pages. Only for the months covered by apach log files. instead I need to rebuild only the statics pages for the period not covered by apache log files, without deleting any awstats database
 
just for future reference i did the job using this script.
It doesn't work with the option -A all domain anymore, and you have to set the date rande inside manually
 

Attachments

  • stats.sh.tar.gz
    3.2 KB · Views: 31
Thanks for this modified file, gggino. It has allowed me to rebuild the static files that were not building on my system and I'm really grateful!

However, can I ask why you had to make so many modifications? Did you find it was doing things you didn't want?

Specifically, why not just set log_begin_date="01/2014" (or whatever date you might want) or just set date_range="01/2014-02/2015" (or whatever range you might want) and make no other modifications to the script?
 
Back
Top