468,484 Members | 2,146 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,484 developers. It's quick & easy.

mod_python.so is garbled mod_python.so is garbled

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?

Dec 14 '06 #1
1 1608

blbmdsmith wrote:
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?
The "mod_python" Google group doesn't get used. You should be
subscribing to and posting on the mod_python mailing list for best
chances of a response. Mailing list details are on the mod_python web
site.

Should you have perhaps used:

--with-apxs=/usr/local/apache2/bin/apxs

Ie., is the version of Apache you compiled for actually the version you
are running it with?

Do you have multiple versions of Apache installed on your system?

Graham

Dec 14 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by wolf | last post: by
2 posts views Thread by Robert J. Hansen | last post: by
reply views Thread by Python_it | last post: by
6 posts views Thread by Anthony L. | last post: by
1 post views Thread by treelife | last post: by
2 posts views Thread by exhuma.twn | last post: by
5 posts views Thread by m.banaouas | last post: by
3 posts views Thread by Michael | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by theflame83 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.