[mod_python] Installation help on Win32

Frederick Grim fred at forsalebyowner.com
Wed Mar 10 11:53:00 EST 2004


Leon Hayes at <leon.hayes at ultimate-uk.com> replied:
> Hi all.
> 
> I'm running XP Pro, Apache/2.0.48 (Win32) PHP/4.3.4 mod_python/3.0.1
> Python/2.2.3
> 
> As you can see from above, I've managed to load mod_python.
> 
> My problem is this:
> 
> Whenever a try and visit a .py file via the browser, it writes out the
> python code to the screen instead of parsing it through python.
>

one cheesy hack I did to stop this behavior was set the 
DefaultType directive in httpd.conf.  It's pretty cheesy though

	Fred


> I added this to the apache conf:
> 
> <Directory c:/apache2/htdocs>
> AddHandler mod_python .py
> PythonHandler mptest
> PythonDebug On
> </Directory>
> 
> And I use this line to load the module into apache:
> 
> LoadModule python_module modules/mod_python.so
> 
> Any help would be greatly appreciated.
> 
> Best Regards
> 
> Leon Hayes
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.595 / Virus Database: 378 - Release Date: 25/02/2004
>  
> 
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python

-- 
"Windows Longhorn will be like having a little cop right inside your computer"
	-- Jorge Lopez, MCSE


More information about the Mod_python mailing list