Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 currently have a Django site working at , I would like to deploy an additional PHP site to the same server at

My current httpd.conf (from DjangoFoo) :

<Directory "/home/ec2-user/cinepass/media">
   Order deny,allow
   Allow from all

<Directory "/home/ec2-user/cinepass/cinepass">
    AllowOverride All
    Order deny,allow
    Allow from all

Alias /media/ /home/ec2-user/cinepass/media/
ErrorLog "logs/"
CustomLog "logs/" common

# mod_wsgi configuration is here
# we are running as user/group 'deamon', if you don't have those you need to change or create.
WSGIDaemonProcess cinepass python-path=/home/ec2-user/cinepass:/home/ec2-user/cinepass/venv/lib/python2.6/site-packages user=daemon group=daemon processes=2 threads=25
WSGIProcessGroup cinepass
# this is our WSGI file.
WSGIScriptAlias / /home/ec2-user/cinepass/cinepass/

My current :

import os, sys

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "")
os.environ['PYTHON_EGG_CACHE'] = '/tmp'

from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()

How would I edit my Apache configuration so that I can also run a php site at ?

share|improve this question

Install and activate the PHP module. Point the DocumentRoot for the mobile site the the directory that contains your PHP files and that's it.

We run a server with several php sites and a site with Django. It was far more complicated to get Django working that it was PHP.

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.