run python script as CGI

Vinicius Franco do Nascimento vinicius.nascimento at gmail.com
Fri Jun 3 17:49:28 UTC 2005


hi,


I'm using Ubuntu 5.04 Hoary and i need run python script in my web server.
Apache 2 and mod_python (last version).

I need run scripts in my server. I attached file for example.

my /etc/achpe2/httpd.conf is:

LoadModule python_module modules/mod_python.so
<Directory /var/www/webapp>

        AddHandler mod_python .py
        PythonHandler mod_python.cgihandler
        PythonDebug On

</Directory>

can u help me?
-- 
================================
Vinícius Franco do Nascimento
vinicius.nascimento at gmail.com
http://vinicius.objectis.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.py
Type: text/x-python
Size: 929 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050603/836aa313/attachment.py>


More information about the ubuntu-users mailing list