Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just installed a fresh copy of Awstats 7.1 on my server running CentOS 6.3 and nginx. When I try to run this command to generate the report:

/usr/local/awstats/tools/ -update -dir=/srv/apps/mydomain/awstats -awstatsprog=/usr/local/awstats/wwwroot/cgi-bin/

I get the following error:

sh: /usr/local/awstats/wwwroot/cgi-bin/ Permission denied

What I've Tried

  • chmod 755 /usr/local/awstats
  • running the command with 'su -'
  • changing user/group to 'nginx'

Any help is much appreciated.

share|improve this question
You should show more details. what are the permissions on, as which user are you executing it and so on? – mauro.stettler Feb 17 '13 at 9:16
Ah I think you hit the nail on the head there. As simple as it seems, I overlooked the actual permissions on - After chmod-ing it seems to be running properly! If you want to post your response in more of an answer format I'll be happy to accept it, thank you! – Josh Mountain Feb 17 '13 at 9:21
up vote 1 down vote accepted

Possibly the permissions of are not set to be executable. Your chmod 755 /usr/local/awstats is not recursive to also apply on

share|improve this answer
Thank you :) after applying the chmod to it will now run without error. – Josh Mountain Feb 17 '13 at 9:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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