Starting on October 19, 2021, we will enable single-sign-on for our Plesk Support Center to provide a seamless login/account experience. This implies that you’ll be able to use a single account across any of our web-facing properties.
To be prepared for this change and to avoid the need to register during your next ticket submission after the change, we encourage you to create an account here before October 19 using the same email address as your current Zendesk login (support account). It’s essential that you use the same email address on our support center to ensure that your tickets stay attached to the same account. You will continue to use ZenDesk authentication until we switch over to single-sign-on on October 19th.

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

Follow

Comments

7 comments

  • Avatar
    Shawn (Edited )

    Not perfect.

    0
    Comment actions Permalink
  • Avatar
    Robin Labadie

    I was able to find the proper directories on my CentOS 7.4 thanks to this guide.

    Wrong dirs:

    #AWSTATS_BIN_D /var/www/cgi-bin/awstats
    #AWSTATS_TOOLS_D /usr/share/awstats

    Good dirs:
    AWSTATS_BIN_D /usr/share/awstats/wwwroot/cgi-bin/
    AWSTATS_TOOLS_D /usr/share/awstats/tools

    Then I had to recalculate stats for the domains: 

    /usr/local/psa/admin/bin/web_statistic_executor --calculate-domain mydomain.tld

    Though, it is not perfect: if the current date seems to work, previous months are not updated; possibly because logs don't go that far in the past.

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    Hello @Shawn, thank you for the feedback.

    Let us know if you have questions about this issue and its solution.

    0
    Comment actions Permalink
  • Avatar
    Rafa

    I have been able to verify that since November, since I updated Plesk from Onyx, to Obsidian, webstats are not generated, and my file access_log.webstat has a size of 320 MB, and the access_ssl_log.webstat is 2 GB. 

    I tried to do this fix, but doest'n works. My server uses CentOS 6 with Plesk Obsidian. The directories are correct, they are the same as Robin Labadie says. But, when executing the command to recalculate the statistics, it tells me the following:

    unrecognised option '--calculate-domain'

    I also tried this command (from this article https://support.plesk.com/hc/en-us/articles/213901965) : 

    ./rebuild_awstats.sh -R example.com

    But returns this error: 

    ERROR /usr/share/awstats/wwwroot/cgi-bin/awstats.pl cannot be executed.

     

     

     

    0
    Comment actions Permalink
  • Avatar
    Denis Bykov

    @Rafa

    Try the following one instead:

    # plesk sbin statistics --calculate-one --domain-name=example.com
    0
    Comment actions Permalink
  • Avatar
    Rafa

    Hi Denis! Thanks for the reply! 

    I executed the command, and returned this: 

    Executing logs preparation...

    -----[ (MY DOMAIN)
    Webstat: none

    My directories in psa.conf, according to this guide, they are correct

    AWSTATS_BIN_D /usr/share/awstats/wwwroot/cgi-bin
    AWSTATS_TOOLS_D /usr/share/awstats/tools

    I tried reinstall Awstats (https://support.plesk.com/hc/en-us/articles/213930765?page=1#comment_115000146045), but it still doesn't work.

    I tried tu rebuild Awstats (https://support.plesk.com/hc/en-us/articles/213901965-How-to-recalculate-AWStats-statistics-from-logs-for-previous-months) and I receive the message /usr/share/awstats/wwwroot/cgi-bin/awstats.pl cannot be executed. In that article, say that I have to go to this same article where we are talking in search of the solution; I'm in a Plesk articles loop.

    I have tried all the solutions, but the truth is that what has happened is that since I updated from Onyx to Obsidian, the statistics don't work and this problem was created.

     

    0
    Comment actions Permalink
  • Avatar
    Francisco Roman Garcia Rodriguez

    Hi Rafa,

    Does the domain has set a Statistics engine?

    Verify the next:

    1. AWStats is in Tools&Settings > Server Components (press refresh just in case)
    2. Domains > example.com > Hosting Settings <== AWStats is selected
    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request