run python script as CGI

Vinicius Franco do Nascimento vinicius.nascimento at
Fri Jun 3 18:46:16 UTC 2005

2005/6/3, Hervé Cauwelier <herve.cauwelier at>:
> Vinicius Franco do Nascimento a écrit :
> > can u help me?
> What help do you need? :-)
> Blindly, I would tell you to check if the script has the "executable"
> bit set.

-rwxr-xr-x  1 vinicius vinicius  799 2005-06-03 15:41

 Also, check why your script call python from /usr/local/bin and
> if you really have python installed in /usr/local (usually because of
> hand-made installation). If not, just call /usr/bin/python.

And I check for python and correct location is: /usr/bin/python
> It's easier to help people when you know what problem occur and what
> they have already tried. :-)

but, i can't run my script again...

my httpd.conf is:
vinicius at msc307:/etc/apache2$ cat httpd.conf
# This is here for backwards compatability reasons and to support
#  installing 3rd party modules directly via apxs2, rather than
#  through the /etc/apache2/mods-{available,enabled} mechanism.
#LoadModule mod_placeholder /usr/lib/apache2/modules/
# configuracao dentro do httpd.conf do apache
LoadModule python_module modules/
<Directory /home/*/public_html/cgi-bin>
        Options +ExecCGI
        SetHandler cgi-script

I'm read and set modifications of

and not run my scripts :(

help!!! :)

More information about the ubuntu-users mailing list