Plesk + AWStats and 404 error on /plesk-stat/webstat/

Homepage > Home > Internet > Plesk + AWStats and 404 error on /plesk-stat/webstat/

Mon 05/11/2009

in Internet

When dealing with web analytics softwares and customers knowledge i’ve always found AWStats both simple and effective. Though many developers are now used to Google Analytics i think that also providing customers with simpler statistics is an efficent way to give them a quick glance on their website’s traffic.

Recently, after a version upgrade, i’ve noticed that AWStats main window is not working on my Plesk-based server (version 8.3), returning a 404 Not Found Error.  My first attempt was to login to the the domain settings in Plesk Control Panel and check if Perl support checkbox was tagged.

That said, i’ve digged and solved the problem by logging to the server as root and changing the configuration file located in /etc/psa/psa.conf from

# AWStats
AWSTATS_ETC_D /etc/awstats
AWSTATS_BIN_D /var/www/cgi-bin/awstats
AWSTATS_TOOLS_D /usr/share/awstats
AWSTATS_DOC_D /var/www/html/awstats

to

# AWStats
AWSTATS_ETC_D /etc/awstats
AWSTATS_BIN_D /var/www/awstats
AWSTATS_TOOLS_D /usr/bin
AWSTATS_DOC_D /var/www/html/awstats

Then, i restarted the service by issuing /etc/init.d/psa restart (it’ll restart many services like MySQL and Qmail, so take care).

To check that everything works fine you can issue this command to manually check logs:

/usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=yourdomain.com

Reference.

No Related Posts

2 Responses to this post:

Leave a Reply ()

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

* required.