hej paolo,
I am on OS X as well, and I had problems with Apache and mod_python.
Turns out that my python (version 2.4.1 from fink) was the problem.

the following worked for me:

stop any apache that is currently running (fink or buildin)

install python 2.4.1 framework build from http://undefined.org/python/
(you might need to install the Tiger patch as well)

set /usr/local/bin as first in $PATH

install apache2:
curl -O http://www.apache.org/dist/httpd/httpd-2.0.55.tar.gz
tar xvfz httpd-2.0.55.tar.gz
cd httpd-2.0.55
./configure --enable-so --with-mpm=worker
make
sudo make install

install mod_python:
curl -O http://www.apache.org/dist/httpd/modpython/mod_python-3.1.4.tgz
tar xvfz mod_python-3.1.4.tgz
cd mod_python-3.1.4
./configure --with-apxs=/usr/local/apache2/bin/apxs
--with-python=/usr/local/bin/python
make
sudo make install

sudo edit /usr/local/apache2/conf/httpd.conf
>LoadModule python_module /usr/local/apache2/modules/mod_python.so

then follow the instructions here
http://www.djangoproject.com/documentation/modpython/ or
here http://cavedoni.com/2005/django-osx to configure django

then start the new apache2 install (check
/usr/local/apache2/logs/error_log)
sudo /usr/local/apache2/bin/apachectl start

well, this worked for me on 10.3 and 10.4
hope it helps
Frank

Afternoon wrote:
> On 1 Dec 2005, at 15:24, Paolo wrote:
>
> > Hi Afternoon, not only I have restarted Apache after building
> > mod_python (3.1.4), I also have updated it from version 2.0.54 to
> > 2.0.55, but nothing has changed.
>
> Hang on, it's coming back to me now (sorry, it was a long night).
>
> What platform are you building on? Where is your Python? I had to
> define PYTHONHOME = /usr/ in envopts for Apache because I'm running
> OS X and my Python is stock but my Apache comes from the Fink project.
>
> Is there any way that Apache might not be able to find Python such as
> this?
>
> ________________________________
> Afternoon, man about the Internet -- http://aftnn.org/

Reply via email to