Unable to open a web statistics page: 404 Not Found The requested document was not found on this server

Created:

2016-11-16 13:18:53 UTC

Modified:

2017-08-17 23:57:26 UTC

0

Was this article helpful?


Have more questions?

Anfrage einreichen

Unable to open a web statistics page: 404 Not Found The requested document was not found on this server

Applicable to:

  • Plesk for Linux/Unix
  • Plesk Automation

Symptoms

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

Cause

Scripts location is written not correctly in /etc/psa/psa.conf configuration file.

Resolution

  1. Change the /etc/psa/psa.conf file 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
    
  2. 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   
    
Haben Sie Fragen? Anfrage einreichen
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.