it sounds like you might have a config problem or possibly a
Also note that during development, it is much easier to use paster
rather than apache since with apache you have to restart it every time
you change your code. Using paster significantly reduces the friction
in the development process.
Another resource that might tip you off to your problem is here:
I got it apache / mod_wsgi working, but with a couple of caveats:
a) i used modwsgideploy, a helper script, read about it here:
b) i use a mac - apache layout may be different for you in terms of
user apache runs as, and file layout
c) i use virtualenv
Below are the relevant portions of my config files. I have bad naming
conventions, I was just learning how to do it myself.
Hope this helps,
here is snippet from
httpd.conf which pulls in xexample.conf, which is the file that
contains the mod_wsgi 3.2 directives, among other things. most
important line is WSGIScriptAlias which is a python file for my web
That snippet will include this file xexample.conf which lives with
apache config files.
Here is /etc/apache2/other/xexample.conf
Alias /xexample/css /Users/jeff/src/.virtualenvs/xexample/xexample/public/css
Allow from all
WSGIDaemonProcess xexample threads=10 processes=3
Allow from all
i have a virtual env
Remember that the apache user has to own the folder
Here is /Users/jeff/src/.virtualenvs/xexample/apache/xexample.wsgi
Notice how the python libraries in my virtualenv are pulled in.
prev_sys_path = list(sys.path)
import os, sys
application = loadapp('config:/Users/jeff/src/.virtualenvs/xexample/development.ini')
after apache restart, pointing browser to http://localhost/xexample
loaded the home page of my app.