I was wondering is it possible to run apache with mod_wsgi and mod_php running together to serve python and php pages?
If so were can I find info on doing this?
The only thing I can think of is that a request can only be handled by one module or the other so you can't mix PHP and WSGI code. That means that if you use
Theoretically, if you can get mod_php to work as an Apache Filter, your python app could output an appropriate PHP content-type header (
Otherwise, just set both up following their directions: mod_wsgi, mod_php5. If your distribution provides packages for apache, mod_php and mod_wsgi, use them and skip the compiling steps unless you really need to. If your distribution provides
Yes you can mix then. See recipes towards end of section:
Specfically, the AddHandler/mod_rewrite/WSGI script fixup method.
This will allow a PHP site pages to take precedence with any URLs for which no PHP or static resources falling through to Python WSGI application.