Mark Eret
eret at ucar.edu
Tue Nov 2 16:46:50 EST 2004
Hey, So, we have a little bit of an improvement, but it is doing something now, but it is still broken. I did what you said. Now, when I point my browser at http://lambdacalcul.us/test/test.py, I get a "Not Found" page. I checked and /var/www/test/test.py most definitely exists. When I checked out my error.log file, there were the following lines: [Tue Nov 2 12:03:22 2004] [notice] Apache/1.3.31 (Debian GNU/Linux) mod_python/2.7.10 Python/2.3.4 mod_ruby/1.2.4 Ruby/1.8.2(2004-08-24) PHP/4.3.9-1 configured -- resuming normal operations [Tue Nov 2 12:03:22 2004] [notice] Accept mutex: sysvsem (Default: sysvsem) [Tue Nov 2 12:03:31 2004] [notice] mod_python: (Re)importing mod_python.publisher from None [Tue Nov 2 12:03:31 2004] [notice] mod_python: (Re)importing test from ['/var/www/test'] So, I did get that line, but something else is apparently wrong. Any ideas? Thanks in advance. On Nov 2, 2004, at 1:08 PM, Jorey Bump wrote: > Try this instead: > > <Directory /var/www/documentroot> > AddHandler python-program .py > PythonHandler mod_python.publisher > PythonDebug On > </Directory> > > Create test.py: > > def hello(req): > x = "Hello, world!" > return x > > Restart apache, point your browser to test.py, and see if that works. > > If it doesn't, check your apache error log. You should see a line like > this in /var/log/apache/error.log (default location in woody) right > after restarting apache: > > [notice] mod_python: (Re)importing mod_python.publisher from None > > _______________________________________________ > Mod_python mailing list > Mod_python at modpython.org > http://mailman.modpython.org/mailman/listinfo/mod_python > Mark Eret "Yields falsehood when appended to its own quotation," yields falsehood when appended to its own quotation.
|