Installing OSQA on WebFaction

compared with
Current by Clay Carpenter
on Nov 30, 2010 21:54.

(show comment)
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (3)

View Page History

h4. Creating Your Application
Now go to the [control panel|https://panel.webfaction.com/app_/list] and create a new Webfaction application with a "Type:" of "Django 1.2.3 (mod_wsgi 3.2/Python 2.6)". Name it "osqa_server". Note the port number assigned to the mod_wsgi application. We will call it PORT_NUMBER.

Note: You can also get everything up and running using Django 1.2.1 (mod_wsgi 3.2/Python 2.6), which are the latest versions.

h4. Creating a Website
Next, you will need to go to [this list|https://panel.webfaction.com/site/list] in the Webfaction control panel and create a new Webfaction website which will associate the subdomain with the new osqa_server application. We will call the website "SITENAME" and set it to use the osqa_server application for the site's root location - "/".
Open the Apache configuration file, found in {{/home/USER_NAME/webapps/SITE_NAME/apache2/conf/httpd.conf}}. Find the line where {{WSGIScriptAlias}} is defined and update it to point to the {{osqa.wsgi}} script in your OSQA installation directory. The declaration should look like this:

{code:borderStyle:=none}
WSGIScriptAlias / /home/USER_NAME/webapps/SITE_NAME/PATH_TO_OSQA/osqa.wsgi
{code}