Unable to open web statistics page with the following error:
404 Not Found The requested document was not found on this server Web Server at example.com
The Statistics Rebuild Script fails with the following error:
./rebuild_awstats.sh: line 210: /usr/share/awstats/tools/logresolvemerge.pl: No such file or directory ERROR: failed to merge access_log*. Skipping domain. ERROR /usr/share/awstats/wwwroot/cgi-bin/awstats.pl cannot be executed.
Location of AWStats scripts is as follows:
# locate awstats.pl /var/www/cgi-bin/awstats/awstats.pl # locate logresolvemerge.pl /usr/share/awstats/logresolvemerge.pl
The following directories are written to
/etc/psa/psa.conf for AWStats scripts:
# egrep "AWSTATS_BIN_D|AWSTATS_TOOLS_D" /etc/psa/psa.conf AWSTATS_BIN_D /usr/share/awstats/wwwroot/cgi-bin AWSTATS_TOOLS_D /usr/share/awstats/tools
Scripts location is written not correctly in
/etc/psa/psa.conf configuration file.
/etc/psa/psa.conffile according to the script location. The values should be:
# egrep "AWSTATS_BIN_D|AWSTATS_TOOLS_D" /etc/psa/psa.conf AWSTATS_BIN_D /var/www/cgi-bin/awstats AWSTATS_TOOLS_D /usr/share/awstats
For Ubuntu 14.04: the following symlink should be created:
# ln -s /usr/lib/plesk-9.0/logresolvemerge /usr/share/doc/awstats/examples/logresolvemerge.pl