phpMyVisites is changing into Piwik

Piwik is the next generation of phpMyVisites and aims to be an open source alternative to Google Analytics.

Try the online demo, download Piwik or find out more!




FAQ


FAQ : Configuration
How to set up a crontab to launch automatically the statistics archiving process every day?
The tip is to use RSS feed provided by phpMyVisites. Connect as Super User in phpMyVisites (very important!).
In the HTML source code of the page, you can find RSS feed url which looks like
"index.php?mod=view_rss&rss_hash=XYZ"

You have to set the crontab (on linux) to visit this URL. Be careful: use "&" instead of "& amp;" in the URL!

The "crontab -l", to lauch statistics computation every night at 3am, will look like
0 3 * * * wget "http://www.yoursite.com/phpmv2/index.php?mod=view_rss&rss_hash=XYZ"


You should also launch archiving on the periods. The final crontab will look like
0 3 * * * wget "http://www.votresite.com/phpmv2/index.php?mod=view_rss&rss_hash=XYZ"
15 3 * * * wget "http://www.yoursite.com/phpmv2/index.php?mod=view_rss&rss_hash=XYZ&period=2"
30 3 * * * wget "http://www.yoursite.com/phpmv2/index.php?mod=view_rss&rss_hash=XYZ&period=3"
45 3 * * * wget "http://www.yoursite.com/phpmv2/index.php?mod=view_rss&rss_hash=XYZ&period=4"

Once this modification is done, your stats will be automatically archived. This will bring you more confort and your server will be hapier!
Back to FAQ