Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 webmasters.stackexchange.com Jul 16 '11 at 11:46

This question came from our site for pro webmasters.

1 Answer 1

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

 
discard

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