Mailing List Archive

Cgi with Python
Hi there.


I am trying to set up some cgi stuff using python...I have just started
using python and I am running into some proplems.

When I try to run the python script I get the following error:

HTTP Error 403
403.2 Forbidden: Read Access Forbidden

This error can be caused if there is no default page available and directory
browsing has not been enabled for the directory, or if you are trying to
display an HTML page that resides in a directory marked for Execute or
Script permissions only.

Please contact the Web server's administrator if the problem persists.


Help Please

nester@nbnet.nb.ca
Cgi with Python [ In reply to ]
"Troy Coburn" <troy@quantumtraining.nb.ca> writes:

> Hi there.
>
>
> I am trying to set up some cgi stuff using python...I have just started
> using python and I am running into some proplems.
>
> When I try to run the python script I get the following error:
>
> HTTP Error 403
> 403.2 Forbidden: Read Access Forbidden
>
> This error can be caused if there is no default page available and directory
> browsing has not been enabled for the directory, or if you are trying to
> display an HTML page that resides in a directory marked for Execute or
> Script permissions only.
>
> Please contact the Web server's administrator if the problem persists.
>
>
> Help Please

Well - the error message says it all :)

Just set the read and execute permissions for your script.

$ chmod a+rx script.py

>
> nester@nbnet.nb.ca
>
>
>

--

Magnus Making no sound / Yet smouldering with passion
Lie The firefly is still sadder / Than the moaning insect
Hetland : Minamoto Shigeyuki