Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

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.