PyPy + PHP on one web server

I am going to create a web server from scratch, mainly for writing webapps with Python. Looking at alternatives to Apache + mod_wsgi, it seems that pypy plays very well with almost everything that I intend to use for my applications. Unable to play with PyPy correctly, I believe that this is a great opportunity to use it, since I do not need a server to be bulletproof.

However, there are some PHP applications that I would like to run on a web server for administrative purposes (e.g. PHPPgAdmin). Is there an elegant solution that allows me to use PyPy in a PHP compatible web server like Apache? Or will I have to run CherryPy / Paste or one of the other WSGI servers with Apache and mod_wsgi on a separate port to provide administrative services?

+4
source share
2 answers

You can run your PyPy applications with mod_proxy and statically use static content with Apache (or even better use nginx). In addition to CherryPy, gunicorn and tornado work great on PyPy.

+5
source

I know that mod_wsgi does not work with mod_php

I highly recommend you by running PHP and Python applications at the CGI level.

PHP 5.x runs on CGI, for python there is flup, which allows you to run WSGI applications in CGI.

Tamer

0
source

All Articles