awstats as cgi and httpd

tsiou

Verified User
Joined
Sep 15, 2006
Messages
236
Location
Larisa, Greece
Hi, have the following problem :

i 've seen that awstats can run as cgi. From the DA panel works ok when i choose a year's stats.
But i have a problem in apache's cgi and i think suexec is preventing the scripts from running.
I have the following in httpd.conf :


<Directory /home/*/domains/*/awstats>
Options +ExecCGI
AddHandler cgi-script .cgi .pl
DirectoryIndex awstats.pl
</Directory>

in order to run awstats.pl
I load fcgid module in order to run php and also load mod_cgi for .pl

I get a 500 internal server error (in my logs a: premature end of script) and as i read this is likely due to suexec permissions.

Can someone post his httpd.conf part that does the cgi work?

Thanks in advance,
 
Back
Top