Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to use Python 2.4 features in my Django apps running on CentOS 4.7. The default version of Python is 2.3 and I think it would be best not to try replace it. Is there a way to install a newer version of Python alongside and somehow tell Apache to use that for mod_python?

share|improve this question
up vote 4 down vote accepted

Yep, just build your own python and put it somewhere else (something like /opt or /usr/local). You'll need to rebuild mod_python, when you do you can specify the new python location.

./configure --with-python=/path/to/python2.4
share|improve this answer

Here is a good post about how what options to configure python with to install it into a different directory

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.