David McNab
david at rebirthing.co.nz
Sun Feb 29 23:28:31 EST 2004
Do you have anywhere in your apache configs the line: LoadModule python_module /usr/lib/apache2/modules/mod_python.so ? (change the path to wherever your mod_python.so is) Cheers David S C wrote: > platform: Debian Linux > Apache/2.0.48, mod-python/3.0.4 and Python/2.3.3 > > I installed mod_python, and it's loading correctly. > > Tried the standard hello world app, placing the following in my > sites-enabled default file with the correct directory path: > > <Directory /var/www/apache2-default/python> > > AddHandler mod_python .py > PythonHandler mptest > PythonDebug On > </Directory> > > > in my python directory (/var/www/apache2-default/python), I created the > file mptest.py which contains the following lines: > > from mod_python import apache > > def handler(req): > req.write("Hello World!") > return apache.OK > > The file is set as executable. > > When I go look at this path from my web browser, it asks me if I want to > save mptest.py? How can I make the file execute? > > Thanks in advance!! > > > > _______________________________________________ > Mod_python mailing list > Mod_python at modpython.org > http://mailman.modpython.org/mailman/listinfo/mod_python > -- leave this line intact so your email gets through my junk mail filter
|