Mobile app version of vmapp.org
Login or Join
Becky754

: How to Install OSQA Q and A application in Apache How to Install OSQA Q and A application in Apache Server. I have mod_python installed but still I am not able to run OSQA. I could not

@Becky754

Posted in: #SiteDeployment #WebPlatformInstaller

How to Install OSQA Q and A application in Apache Server. I have mod_python installed but still I am not able to run OSQA. I could not find the easy instruction to install it.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Becky754

1 Comments

Sorted by latest first Latest Oldest Best

 

@Odierno851

OSQA is a Django application, so first you will need to install Django. You may also need to install other dependencies of the project. (I tried it and had to install html5lib, for example) Also, I would strongly recommend uninstalling mod_python (unless you really need it for something else) and installing mod_wsgi instead, since as far as I know mod_python is deprecated and on its way to being completely unmaintained.

Once you have mod_wsgi installed and enabled in the Apache configuration, you'll need to use the WSGIScriptAlias directive to enable OSQA.


When you check out OSQA from SVN, you'll have a directory named trunk which contains a file called osqa.wsgi.dist. Move that trunk directory to a location of your choice, probably in the same place you store other website files.
Make sure all files in trunk (or whatever you renamed it to) are readable by the web server. (They probably already are)
Read through the file settings_local.py.dist and alter it to suit your needs. You'll at least need to provide a database name and database engine.
Rename settings_local.py.dist to settings_local.py.
Rename osqa.wsgi.dist to osqa.wsgi.
In your Apache configuration file, inside the virtual host from which you want OSQA to be served, add the following snippet (modified as described below, of course):

<IfModule wsgi_module>
WSGIScriptAlias /osqa /var/www/www.example.com/osqa.wsgi
</IfModule>


Here /osqa should be the URL path under which you want OSQA to be available (it could be / if you like), and /var/www/www.example.com/osqa.wsgi should be replaced with the full path to the file osqa.wsgi (the one you renamed in the previous step).
Check your Apache configuration and if everything is OK, reload Apache. You should be able to access OSQA at your chosen URL. If anything goes wrong, the error message should give you the information you need to fix it.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme