AWStats page does not display images: AH01630: client denied by server configuration




  • Avatar
    Alban Staehli

    It worked for me, but with a slightly different approach:
    - In my case, the AWSTATS_DOC_D in /etc/psa/psa.conf was wrong, so I had to change it between step 1 and step 2.
    - Then, instead of editing /etc/httpd/conf/httpd.conf, I've added the lines in step 4 to /etc/httpd/conf.d/awstats.conf

  • Avatar
    Ivan Postnikov

    Hello @Alban, thank you for sharing your case.

    Adjusting AWSTATS_DOC_D is included in step 2.

    As for modifying  /etc/httpd/conf.d/awstats.conf instead of  /etc/httpd/conf/httpd.conf, it is a valid variation of the provided solution.

  • Avatar

    Hi @ all,

    I've got the same problem as Alban in my case AWSTATS_DOC_D was pointing to /var/www/html/awstats so we changed it in /etc/psa/psa.conf.

    Also, we changed the path in  /etc/httpd/conf/httpd.conf, with the right entries : /usr/share/awstats/wwwroot/icon and /usr/share/awstats/wwwroot/css in step 4.

    We did also a restart of the httpd daemon but it still points to /var/www/html/awstats and the FireBug shows 404 Not Found error for all images.


    Any Idea why it ignores our changes?

    Greetings Chris

  • Avatar
    Alisa Kasyanova (Edited )

    @ wp4all
    Hi Chris! Please also check /etc/httpd/conf.d/awstats.conf and /etc/httpd/conf/plesk.conf.d/vhosts/ (even though the latter should be recreated after Apache restart), these files can also point awstats to another folder.

  • Avatar
    Peter Debik

    Please review the case distinction in "Resolution" section (2.). In the CentOS 7 default installation with Plesk, AWStats is not located in /var/www/html, but in /usr/share/awstats/wwwroot. The section asks "For CentOS 7 use the following values:"

    AWSTATS_DOC_D /var/www/html/awstats

    But that is not what you want to use, it is what the wrong state is. The correct variable setting ("... use the following values:") should read

    AWSTATS_DOC_D /usr/share/awstats/wwwroot

  • Avatar
    Nikita Nikushkin

    Hi @Peter Debik,

    Thank you for the feedback!

    I checked the configuration files on my test environments and updated the article with new info

Please sign in to leave a comment.

Have more questions? Submit a request