mod_python.so is garbled mod_python.so is garbled

blbmdsmith blbmdsmith at comcast.net
Wed Dec 13 18:18:16 EST 2006


Has anyone seen the following error while starting httpd:

Starting httpd: httpd: Syntax error on line 54 of
/usr/local/apache2/conf/httpd.conf: API module structure
`python_module' in file /usr/local/apache/modules/mod_python.so is
garbled - perhaps this is not an Apache module DSO

I am running python2.5 with apache server 2.2.3, using
mod_python-3.2.10
I ran mod_python configure ----with-apxs= /usr/local/apache/bin/apxs
--with-python=/usr/bin/python

I have configured httpd.conf with the follwing lines:

LoadModule python_module /usr/local/apache/modules/mod_python.so

<Directory /var/www/html/python>
    AllowOverride FileInfo
    AddHandler mod_python .py
    PythonHandler mptest
    PythonDebug On
</Directory>

Thanks,
Bill

I have posted the same message on the mod_python group.  Is this a
better group to post his message?




More information about the Python-list mailing list