[mod_python] Can't get mod_python working

Peter Wong needyourhelp at mail.com
Fri Jul 23 22:01:03 EDT 2004


sorry, I had a typo:

I do have mptest.py in my test dir. and I am pointing to 

http://server/test/mptest.py

----- Original Message -----
From: Peter Smith <psmith at consulting.co.nz>
Date: Sat, 24 Jul 2004 13:51:50 +1200
To: mod_python user mailing list <mod_python at modpython.org>
Subject: Re: [mod_python] Can't get mod_python working

> Move mptest.py  into the test directory, and try pointing to 
> http://server/test/mptest.py
> 
> 
> Regards
> Peter
> 
> 
> Peter Wong wrote:
> 
> >Hi,
> >
> >Running RedHat 9 (Shrike; 2.4.20-8) using supplied apache (2.0.40) -- mod_python already included.
> >
> >Followed the instructions in the Manual for testing (sec. 2.4) ... 
> >
> >* added this to my httpd.conf:
> >    <Directory /some/directory/htdocs/test>
> >        AddHandler mod_python .py
> >        PythonHandler mptest
> >        PythonDebug On
> >    </Directory>
> >
> >* mptest.py contains:
> >
> >from mod_python import apache
> >def handler(req):
> >    req.write("Hello World!")
> >    return apache.OK
> >
> >* pointed my browser to http://server/mptest.py and I get this page back:
> >
> >from mod_python import apache
> >def handler(req):
> >    req.write("Hello World!")
> >    return apache.OK
> >
> >There are no errors in the error_log
> >
> >What's wrong???
> >
> >Thanks,
> >
> >Paul
> >
> >
> >
> >
> >  
> >
> 
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python

-- 
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm



More information about the Mod_python mailing list