Hi all,

> Have you made any try on Python 2.5 together with mod_python?

I'll reply to myself here, since I finally got mod_python to work with
Python 2.5!

Here's how I did it:
--------------------------

Installed Python 2.5.1 from the DMG package.

Set up paths in my ~/.profile:
export PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:
${PATH}"
export PYTHONHOME=/Library/Frameworks/Python.framework/Versions/2.5/

Downloaded mod_python 3.3.1 from: 
http://httpd.apache.org/modules/python-download.cgi

Ran
$ sudo ./configure --with-apxs=/opt/local/apache2/bin/apxs --with-
python=/Library/Frameworks/Python.framework/Versions/2.5/bin/python
$ sudo make
$ sudo make install

This installed a new mod_python in:
/opt/local/apache2/modules/mod_python.so

And it installed mod_python packages in the right python directory
this time:
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-
packages/mod_python/

Enabled mod_python in /opt/local/apache2/conf/httpd.conf (I had that
done before, for the python 2.4 version):
LoadModule python_module modules/mod_python.so

Restarted Apache:
sudo /opt/local/apache2/bin/apachectl -k restart

And saw this notice in the Apache error_log:
[notice] Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8e DAV/2
mod_python/3.3.1 Python/2.5.1 configured -- resuming normal operations

------------------

Phew! My two-week nightmare seems to be over and I can resume to
normal operations, running the same versions of Django parts on my
MacBook as on the Ubuntu server: Python 2.5.1, Apache 2.2.6,
PostgreSQL 8.2, mod_python 3.3.1, psycopg2-2.0.5.1, docutils-0.5,
together with our favorite web application framework, Django of
course!

Thanks for your kind support,
Ulf


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to