Cgi won't work with apache2

survivor

New member
Joined
Aug 8, 2006
Messages
2
Location
Netherlands
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

PHP:
#!/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
 
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
 
Back
Top