[mod_python] [SPAM] mod_python.so is so garbled

mario curiel mario at avepublishing.com
Mon Jun 18 01:06:12 EDT 2007


I got the error in apachectl -k start:

httpd: Syntax error on line 54 of /Local/Library/Webserver/ 
Configuration/httpd.conf: API module structure ´python_module´ in  
file /System/Library/Apache/Modules/mod_python.so is so garbled -  
perhaps this is not an Apache module DSO?

In the computer has Mac OSX 10.4.9,
MAC Pro with intel processors,
python 2.5.1
apache sever 2.2.4 (unix)

a)installation of mod_python-3.3.1:

-configure --with-apxs=/Library/Apache2/bin/apxs --with-fex=/usr/bin/ 
flex
make
make install


also I tried with

b)
make install_dso
make install_py_lib

in both cases (a and b) the last line of the install is the  
installation of the mod_python-3-3.1/py2.5.egg-info:
writing /Library/Frameworks/Python.framework/verons/2.5/lib/python2.5/ 
site-packages/mod_python-3-3.1/py2.5.egg-info


I added the lines to the httpd.conf:
the lines 54-56 :

LoadModule python-module /System/Library/Apache2/Modules/mod_python.so

AddModule mod_python.c

then I run apachectl -k start and the error appears:

Syntax error on line 54 of /Local/Library/Webserver/Configuration/ 
httpd.conf: API module structure ´python_module´ in file /System/ 
Library/Apache/Modules/mod_python.so is so garbled - perhaps this is  
not an Apache module DSO?


how to correct it?

thanks a lot

Alberto


More information about the Mod_python mailing list