Apache2 + CGI: "You don't have permission..."
trying to run python scripts on my Apache2 through CGI.
I am running BackTrack 5 - 22.214.171.124
This is the content of my /etc/apache2/sites-available/default
After restarting the Apache server, /etc/init.d/apache restart
ScriptAlias /cgi-bin/ /root/public_html/cgi-bin/
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AddHandler cgi-script py
Allow from all
I try to access the sample.py script:
..from the following URL: localhost/cgi-bin/sample.py
print "Content-type: text/html\n\n"
print "Hello, World."
for i in 'hello':
And I am getting this error:
The Apache-logs shows this error:
You don't have permission to access /cgi-bin/sample.py on this server.
Both the /cgi-bin/ and the sample.py is sat to 755 permission, have also tried with 777.
[Sat Dec 31 12:21:32 2011] [error] [client 127.0.0.1] (13)Permission denied: access to /cgi-bin/sample.py denied
I have also tried all this from the /cgi-bin/ directory in /root/public_html
Any help is appreciated!