Does anyone have a code snippet to install Askbot into Passenger?
I'm on Dreamhost and can't really edit
httpd.conf, like manual suggests.
OSQA has a
passenger_wsgi.py, for instance - I'd like to have one like that. And I don't even know Python, not saying Django.
edit: maybe it's just my configuration broken. I have:
~/mysite.com/askbotand forum directory to
import sys,os INTERP = "/home/mysite/local/bin/python" if sys.executable != INTERP: os.execl(INTERP, INTERP, *sys.argv) sys.path.append("/home/mysite/mysite.com/") sys.path.append("/home/mysite/mysite.com/askbot/forum") os.environ['DJANGO_SETTINGS_MODULE'] = 'askbot.settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler()
The site just dies. In httpd's
error.log I get things like:
[Fri Jun 24 14:24:53 2011] [error] [client xx.xx.xx.xx] Premature end of script headers:
I think that simply renaming django.wsgi (or copying) to passenger_wsgi.py should do the trick.
Looking at the manuals for passenger and wsgi - I do not see anything passenger-specific in those files.
edit: there is no
askbot/forum in askbot. If your
settings.py is in mysite.com, then instead of your
Askbot actually has it's own slightly different version of
askbot/setup_templates that should just work regardless of your specific paths (well in your case you need a custom line to replace the python interpreter).
Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.create your Q&A site
Asked: 2011-06-24 16:21:02 -0500
Seen: 124 times
Last updated: Jun 24 '11