help with apache + mod_python on mac os x

pnrdnz at gmail.com pnrdnz at gmail.com
Fri Feb 1 16:47:02 EST 2008


Hi,
I am new on everything about web development. I did many things to get the
error at the end.
My system has Apache 1.3 by default. I could install Apache 2.2 with no
problem. I had to change all binaries in /usr/bin and /usr/sbin to new
apache binaries. All ok. System came with python 2.3.1. I removed everything
related to 2.3.1 and installed python 2.5.1.
Then compiled mod_python successfully with parameters: ./configure
--apxs=/usr/sbin/apxs --python=/usr/bin/python
make
sudo make install
sudo make install_dso
$ python -V
Python 2.5.1
$ strings /usr/local/apache2/modules/mod_python.so =>
python_init
mod_python/3.3.1
2.5.1
$ env |grep PATH
PATH=/Library/Frameworks/Python.framework/Versions/Current/bin:/bin:/sbin:/usr/bin:/usr/sbin

$ sudo apachectl start
httpd: Syntax error on line 54 of /usr/local/apache2/conf/httpd.conf: Cannot
load /usr/local/apache2/modules/mod_python.so into server: Library not
loaded: /System/Library/Frameworks/Python.framework/Versions/2.3/Python\n
Referenced from: /usr/local/apache2/modules/mod_python.so\n  Reason: image
not found
/usr/sbin/apachectl start: httpd could not be started


How is it possible that LoadModule still seek at path Versions/2.3 ?

Regards,
Deniz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080201/bef0ac48/attachment.html>


More information about the Python-list mailing list