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 some python scripts with my PHP-based application. I don't want to install Django; just mod_wsgi, so Apache can execute my python scripts as well as the rest of my PHP site. How do I configure Apache to do this?

share|improve this question

migrated from Jun 18 '11 at 4:26

This question came from our site for professional and enthusiast programmers.

Agree with Jim. – Phliplip Jun 18 '11 at 0:03

Getting Apache to use wsgi is as simple as making sure you have availible and using a LoadModule directive.

However, you have to realize that WSGI is not a framework, and using it to write a script will not be anywhere near as simple as using php. If you don't want to use Django, I would recommend using some framework. Perhaps Flask

share|improve this answer

By following the documentation. Start with:

share|improve this answer

Your Answer


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