I have a web server with more than 100 websites running apache and php as fcgid and suexec.

I have configured awstats on my server(FreeBSD) following awstats installation on FreeBSD but when I try to access the statistics of one of the websites I get a "500 Internal Server Error" and in the suexec error logs i get the error "command not in docroot (/usr/local/www/awstats/cgi-bin/awstats.pl)"

I know that the installation works if php is running as an apache module but not as fcgid easily.

Please guide me on how to have awstats configured for all the domains on the server running phpsuexec.

Someone help me.

Thank you

  • What DocumentRoot do you have set for awstats? – Flup Jul 25 '13 at 15:26
  • the websites are under /usr/virtual and awstats is in /usr/local/www/ – pnanvuma Jul 26 '13 at 5:49

Run suexec -V, and you will see the suexec docroot. Put, copy the awstat installation to this path. For example, in my the path is /var/www :

$ suexec -V
 -D AP_DOC_ROOT="/var/www"
 -D AP_GID_MIN=100
 -D AP_HTTPD_USER="apache"
 -D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
 -D AP_UID_MIN=500
 -D AP_USERDIR_SUFFIX="public_html"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.