Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 have a problem running Django with mod_wsgi and Apache on CentOS.

Django runs on Python 2.5 or above but CentOS comes with Python 2.4. I can't just upgrade the default Python 2.4 because it breaks other services such as yum. I installed Python 2.7 into different directory.

I followed most of the tutorial and article about running Django with mod_wsgi but never able successfully run it.

Does any of you run Django on CentOS successfully? If so, how did you do it?

share|improve this question
This should be doable, but even an incredibly in-depth answer can't practically cover every issue you might have - which is why we like questions to cover a specific problem, instead of an entire subject. Can you edit your question to include specific issues or errors that you've run into, what steps you've tried, and what your config looks like now? – Shane Madden Jan 17 '12 at 20:46

Try virualenv. That should do it.

Here is a nice write up on virtualenv:

share|improve this answer
Using a virtual environment is not enough as mod_wsgi must be compiled against the correct Python version you want to use. You can't just tell it to use a virtual environment from a different Python version. – Graham Dumpleton Jan 23 '12 at 6:19

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.