1. Install mod-wsgi for Apache2
2. Commented code in Apache.conf
sudo apt-get install libapache2-mod-wsgi
The following commented code seems to screw up restarting of apache
Just get rid of them.
WSGISocketPrefix /path/to/socket/sock #must be readable and writable by apache WSGIPythonHome /usr/local #must be readable by apache WSGIPythonEggs /var/python/eggs #must be readable and writable by apache
3. WSGI script in documentation
As documented in http://wiki.osqa.net/display/docs/Setting+Up+OSQA+for+Apache
That pipe screws things up. I'm not exactly familar with python so maybe it's deprecated in Python 2.6? Anyways just get rid of it.
os.environ['DJANGO_SETTINGS_MODULE'|'DJANGO_SETTINGS_MODULE'] = 'osqa.settings'
4. Table migration
os.environ['DJANGO_SETTINGS_MODULE'] = 'osqa.settings'
Apparently if you followed the recommendation to use South for migration you'll soon find that it FAILS. Yikes! Search their Q&A (meta) provides an answer.
./manage.py syncdb --all ./manage.py migrate --fake