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 need to have both PHP and Pyramid available on our web server. We're currently running Apache with mod_php on a CentOS-based VPS but we're now looking into developing our website using Pyramid which is a web framework for Python. However, we need to keep PHP for our forums which is at /forums. Is this possible, how?

share|improve this question

migrated from Jul 16 '11 at 11:46

This question came from our site for pro webmasters.

Install modwsgi. You can then serve applications using both Python and PHP from the same Apache server.

You'd then need to configure Apache's virtual hosts to serve multiple sites. There's some advice in this answer that relates to running modwsgi and mod_php under the same Apache server; it recommends running modwsgi in daemon mode.

share|improve this answer

Your Answer


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