AWStats - Premature end of script headers: awstats.pl

area62

Verified User
Joined
Sep 23, 2008
Messages
44
My /awstats on a domain is not working but the link through the DA controlpanel works fine... this what i get when i try to access /awstats

(13)Permission denied: exec of /home/<user>/domains/<domain>/public_html/awstats/awstats.pl' failed
Premature end of script headers: awstats.pl

Things i tried:

chmod 777 awstats.pl
./build rewrite_confs
completely removed awstats dir and ran ./awstats_process.sh
another user
recreated symbolic link in public_html dir

SELinux is disabled and mod_ruid2 is running
 
try

Code:
chmod 755 awstats.pl

SuExec probably dislikes 777 on awstats.pl. You might need to read apache error logs for the particular domain to learn details.
 
Permissions are 755 at the moment.

Notice that i run mod_ruid2 instead of SuExec but that shouldn't be the problem.
 
Problem solved, it seems that rights of the perl binary changed...

ls -lah /usr/bin/perl
-rwx---r-x 2 root apache 19K Sep 28 14:53 /usr/bin/perl

chmod 755 /usr/bin/perl
 
Back
Top