Articles in this section

Unable to open Web Statistics for a Domain in Plesk: The requested document was not found on this server.

Plesk for Linux

Applicable to:

  • Plesk for Linux

Symptoms

  • When accessing AWStats from Domains > example.com > Web Statistics web statistic is displayed as not calculated:

    CONFIG_TEXT: The requested document was not found on this server

  • Domain manual AWStats recalculation fails with the following error:

    # plesk sbin statistics --calculate-one --domain-name=example.com
    # Starting...
    Processing the log /var/www/vhosts/system/example.com/logs/access_log.webstat
    /var/www/cgi-bin/awstats\ '
    '/awstats.pl -update -configdir=/usr/local/psa/etc/awstats -config=example.com -http -LogFile=/var/www/vhosts/system/example.com/logs/access_log.webstat
    Execution of /var/www/cgi-bin/awstats\ '
    '/awstats.pl -update -configdir=/usr/local/psa/etc/awstats -config=example.com-http -LogFile=/var/www/vhosts/system/example.com/logs/access_log.webstat failed with return code 1.
    Stdout is
    forkExecvPipes: execv() failed: No such file or directory

  • The path for the value AWSTATS_BIN_D has incorrect white spaces in the /etc/psa/psa.conf file:

    # grep AWSTATS_BIN_D /etc/psa/psa.conf
    AWSTATS_BIN_D /var/www/cgi-bin/awstats $

Cause

AWstats path is not correct because of white spaces on its route.

Resolution

  1. Connect to the server via SSH

  2. Edit the file /etc/psa/psa.conf and remove ending white space character from value AWSTATS_BIN_D, Vi editor can be used:

    # grep AWSTATS_BIN_D /etc/psa/psa.conf
    AWSTATS_BIN_D /var/www/cgi-bin/awstats$

  3. Execute web statistics recalculation for example.com:

    # plesk sbin statistics --calculate-one --domain-name=example.com

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.