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 understand server is multithreaded which theoretically would be a problem with php fastcgi in general. But would it be possible? has anyone tried it and can please share the idea/experience. Honestly I don't know where to start at all on configuring for such a setup.

would the php-fpm be more reasonable solution to this?

I am thinking that it may be possible similar to nginx to send request to php-fpm from with proper config.

share|improve this question
up vote 2 down vote accepted

CherryPy is built and designed for one specific purpose: serving dynamic content written in python.

While you could conceivably send an http request to a separate FastCGI process via python's urllib, then feed that string data back as a response to the request that came in to Cherry... there's really no reason to do that, and no circumstance where it becomes a good idea.

share|improve this answer
I think you are right. I would have to setup the php pages on another server and direct requests to it somehow possibly using another server to map separate url pattern to cherrypy or php as the case maybe. thanks again for your insight – Vangel May 24 '11 at 3:38

You probably want to set up a web server as proxy. Let it decide which requests should be routed to a PHP-module and which ones should be routed to the Python/WSGI application.

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.