PDA

View Full Version : Cgi won't work with apache2


survivor
08-08-2006, 02:25 AM
Hello,

I have apache 2 on a server of mine and now i want to test the awstats but now it won't work.

even a simpel test like this won't work

#!/bin/sh
echo "Content-type: text/html"
echo
echo "<html>"
echo "Hello"
echo "</html>"


It has chmod 777.

In shell it works only not via apache.

Does anyone know what the problem could be.

Thanks in advantage

felosi
08-10-2006, 06:49 AM
chmod to 755, it wont let it execute if its world writable. On your awstats id make sure you have cgi on in that directory, this awstats plugin here will install it for you and turn cgi on for the directory its in 3rd party software

survivor
08-10-2006, 06:51 AM
I already have done that

I think that i have to downgrade to apache 1.3.x because it works there.