Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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/awstats_buildstaticpages.pl -update -config=mydomain.com -dir=/srv/apps/mydomain/awstats -awstatsprog=/usr/local/awstats/wwwroot/cgi-bin/awstats.pl

I get the following error:

sh: /usr/local/awstats/wwwroot/cgi-bin/awstats.pl: 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 awstats.pl, 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 awstats.pl - After chmod-ing awstats.pl 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 awstats.pl are not set to be executable. Your chmod 755 /usr/local/awstats is not recursive to also apply on awstats.pl.

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .