run python script as CGI
Vinicius Franco do Nascimento
vinicius.nascimento at gmail.com
Fri Jun 3 18:46:16 UTC 2005
2005/6/3, Hervé Cauwelier <herve.cauwelier at nospam.free.fr>:
> 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 test.py
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/mod_placeholder.so
# configuracao dentro do httpd.conf do apache
LoadModule python_module modules/mod_python.so
<Directory /home/*/public_html/cgi-bin>
Options +ExecCGI
SetHandler cgi-script
</Directory>
I'm read and set modifications of
http://httpd.apache.org/docs-2.1/howto/cgi.html
and not run my scripts :(
help!!! :)
More information about the ubuntu-users
mailing list