[omaha] apache n00b

Jeff Hinrichs jeffh at delasco.com
Wed Jun 15 18:52:58 CEST 2011


You'll want to make sure you have mod_python loaded in the LoadModule
section

Then, I believe you will want to move your hello.py to /var/www/pub since
that is where you specified the mod_python.publisher as the handler

Then call your script from 127.0.0.1/pub/hello.py

hth

-Jeff



On Wed, Jun 15, 2011 at 11:03 AM, jesse moseman <jmoseman01 at gmail.com>wrote:

> I tried to set up apache with the libapache2-mod-python module and get some
> cgi action going but i'm not getting it to work.  I changed the
> apache2.conf
> file and added the lines
>
> <Directory "/var/www/cgi-bin">
>   AllowOverride None
>   Options ExecCGI
>   Order allow,deny
>   Allow from all
> </Directory>
>
> <Directory "/var/www/cgi-bin">
> Options All
> </Directory>
>
> <Directory /var/www/pub>
> AddHandler mod_python .py
> PythonHandler mod_python.publisher
> PythonDebug On
> </Directory>
>
> <Directory /var/www/psp>
> AddHandler mod_python .psp
> PythonHandler mod_python.psp
> PythonDebug On
> </Directory>
>
> but i tried to get a simple  to work and it
> wouldn't :'(.  Can anyone help me?
> _______________________________________________
> Omaha Python Users Group mailing list
> Omaha at python.org
> http://mail.python.org/mailman/listinfo/omaha
> http://www.OmahaPython.org
>


More information about the Omaha mailing list