im new to cgi scripting...im using python...and ubuntu...
i changed apache2's default file to set the cgi directory to /var/www/cgi-bin...and there i i uploaded my simple cgi file...the cgi file runs perfectly fine when run through terminal...which means there is no error...but when i try to access it through a web browser i get "You don't have permission to access /cgi-bin/ on this server."
/var/www is my localost directory...and i pass http://localhost/cgi-bin/index.cgi as the address...
i have also checked my permissions ... they're all fine...
every file is readable as well as executable by all users...
#!/usr/bin/env python
print """Content-type: text/html
<TITLE>CGI 101</TITLE>
<H1>A Third CGI script</H1>
<HR>
<P>Hello, CGI World!</P>
<table border=1>
"""
for i in range(5):
print "<tr>"
for j in range(4):
print "<td>%d.%d</td>" % (i, j)
print "</tr>"
print """
</table>
<HR>
"""
can you please temme where im going wrong...