A question can only have one accepted answer. Are you sure you want to replace the current answer with this one?
×Changed your mind?
You previously marked this answer as accepted. Are you sure you want to unaccept it?
installing both php and django in apache on ubuntu 12.04
Posted April 30, 20137k views
I have a ubuntu 12.04 droplet that is associated with one domain name. I already have a LAMP stack configured and am serving a php app at some location like www.domain.com/php/application/
I have been recently trying out django now and wish to deploy a home page at the same domain at www.domain.com. So is it possible for me to be running both python and php on the same server with python at www.domain.com and php at a sub url of the same domain or at a sub-domain such as php.domain.com?
I would deeply appreciate a solution to this problem. thanks.
mod_wsgi is a simple and easy to setup tool that serves python web apps from Apache server. It is also one of the recommended ways of getting Django into production. This article covers the steps required to installing an setup mod_wsgi with Apache.