|
Dave Britton
dave at davebritton.com
Fri Jun 3 10:36:17 EDT 2005
My dedicated hosting service tech support folks have just upgraded mysql, python and mod_python and are now clueless because now my server gets this error:
Mod_python error: "PythonHandler mod_python.publisher"
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 287, in HandlerDispatch
log=debug)
File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 454, in import_module
f, p, d = imp.find_module(parts[i], path)
ImportError: No module named mod_python
The apache error log reports:
[Fri Jun 03 10:27:40 2005] [notice] mod_python: (Re)importing module 'mod_python.publisher'
[Fri Jun 03 10:27:40 2005] [error] [client 66.65.51.166] PythonHandler mod_python.publisher: Traceback (most recent call last):
[Fri Jun 03 10:27:40 2005] [error] [client 66.65.51.166] PythonHandler mod_python.publisher: File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 287, in HandlerDispatch! log=debug)
[Fri Jun 03 10:27:40 2005] [error] [client 66.65.51.166] PythonHandler mod_python.publisher: File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 454, in import_module! f, p, d = imp.find_module(parts[i], path)
[Fri Jun 03 10:27:40 2005] [error] [client 66.65.51.166] PythonHandler mod_python.publisher: ImportError: No module named mod_python
Python finds mod_python just fine:
Python 2.3.4 (#1, Jun 2 2005, 13:01:32)
[GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-52)] on linux2
>>import mod_python
imports mod_python without complaint
Apache httpd.conf contains
<VirtualHost *:80>
ServerName www.truemajority.org
DocumentRoot /var/www/html/truemajority/
AddHandler mod_python .py
AddHandler python-program .py
PythonHandler mod_python.publisher
PythonDebug on
</VirtualHost>
python.conf contains
PythonPath "['/usr/lib/python2.3']"
LoadModule python_module modules/mod_python.so
mod_python is located in /usr/lib/python2.3 as shown by:
[root at www python2.3]# find / -name psp.py
/usr/lib/python2.3.old/site-packages/mod_python/psp.py
/usr/lib/python2.3/site-packages/mod_python/psp.py
/usr/src/redhat/BUILD/mod_python-3.1.4/dist/build/lib.linux-i686-2.3/mod_python/psp.py
/usr/src/redhat/BUILD/mod_python-3.1.4/lib/python/mod_python/psp.py
[root at www python2.3]#
The actual mod_python.so file is here:
[root at www www]# find / -name mod_python.so
/usr/lib/httpd/modules/mod_python.so
I suspect there is some configuration issue, but I can't determine what it is. Should mod_python.so be somewhere else?
Can anyone advise me?
Thanks!
-Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20050603/bb890bf7/attachment.html
|