Hi, i had successfully installed osqa on my local ubuntu computer and made some changes to it. Now i am having problems with deploying it on the centOS server. The syncdb command runs successfully but i can't access the vhost (getting 500 error). This is the error in the log file:

[Fri Jul 29 03:31:08 2011] [error] [client 172.16.137.176] mod_wsgi (pid=4303): Exception occurred processing WSGI script '/var/www/osqa/osqa-server/osqa.wsgi'.
[Fri Jul 29 03:31:08 2011] [error] [client 172.16.137.176] Traceback (most recent call last):
[Fri Jul 29 03:31:08 2011] [error] [client 172.16.137.176]   File "/opt/python27/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 250, in __call__
[Fri Jul 29 03:31:08 2011] [error] [client 172.16.137.176]     self.load_middleware()
[Fri Jul 29 03:31:08 2011] [error] [client 172.16.137.176]   File "/opt/python27/lib/python2.7/site-packages/django/core/handlers/base.py", line 47, in load_middleware
[Fri Jul 29 03:31:08 2011] [error] [client 172.16.137.176]     raise exceptions.ImproperlyConfigured('Error importing middleware %s: "%s"' % (mw_module, e))
[Fri Jul 29 03:31:08 2011] [error] [client 172.16.137.176] ImproperlyConfigured: Error importing middleware forum.middleware.extended_user: "No module named markdown"
[Fri Jul 29 03:31:08 2011] [error] [client 172.16.137.176] mod_wsgi (pid=4303): Exception occurred processing WSGI script '/var/www/osqa/osqa-server/osqa.wsgi'.
[Fri Jul 29 03:31:08 2011] [error] [client 172.16.137.176] Traceback (most recent call last):
[Fri Jul 29 03:31:08 2011] [error] [client 172.16.137.176]   File "/opt/python27/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 250, in __call__
[Fri Jul 29 03:31:08 2011] [error] [client 172.16.137.176]     self.load_middleware()
[Fri Jul 29 03:31:08 2011] [error] [client 172.16.137.176]   File "/opt/python27/lib/python2.7/site-packages/django/core/handlers/base.py", line 47, in load_middleware
[Fri Jul 29 03:31:08 2011] [error] [client 172.16.137.176]     raise exceptions.ImproperlyConfigured('Error importing middleware %s: "%s"' % (mw_module, e))
[Fri Jul 29 03:31:08 2011] [error] [client 172.16.137.176] ImproperlyConfigured: Error importing middleware forum.middleware.extended_user: "No module named markdown"

I have installed markdown, mysql-python etc (following the steps outlined here). I tried 'import markdown' in Python interactive shell and it works fine. I googled around and i think i have to set the search directories to the directory where the egg files are located. I did this in osqa-server/osqa.wsgi but this does not seem to solve the problem.

Any help will be appreciated.

asked 29 Jul '11, 03:49

Balaji's gravatar image

Balaji
2013613
accept rate: 66%

edited 29 Jul '11, 08:28

Andrew_S's gravatar image

Andrew_S ♦
5.6k45674


You'll need to get your Python path right. Please can you post your osqa.wsgi? And search previous questions for wsgi - this sort of problem happens quite often. And have a look at the wsgi file in the bitnami stack, if there is one, to compare against yours.

link

answered 29 Jul '11, 08:29

Andrew_S's gravatar image

Andrew_S ♦
5.6k45674
accept rate: 21%

1

Thanks! I have a few leads and am working on it. Will let you know if it works out.

(29 Jul '11, 08:42) Balaji

I used http://www.activestate.com/activepython and running 2.7 without any issues. centOS

(30 Jul '11, 12:28) zerobandwidth

Here you go - @bitnami to the rescue! (I'm just gonna start deploying this answer to every "I'm having trouble installing" question, until we find one where it doesn't work)

Bitnami just released a (completely free of charge) BitNami Stack for OSQA: http://bitnami.org/stack/osqa It includes everything that you need to install OSQA and is available as a native installer for Linux, Windows and OS X, as well as in the form of a virtual appliance / virtual machine (with Ubuntu or OpenSUSE) or as an AMI (Amazon Machine Image) for Amazon.

@bitnami says: "We built this package because we're using OSQA ourselves and wanted to make it easier for others to deploy."

link

answered 29 Jul '11, 04:45

Andrew_S's gravatar image

Andrew_S ♦
5.6k45674
accept rate: 21%

Thanks for your help! I am using MySQL while the stack uses something else. Also i have made quite some changes to osqa and have spent the last 4-5 days trying to get it working on centOS. So, I am hesitant to start all over again. Is there no ways of fixing the error? Please help.

(29 Jul '11, 06:00) Balaji
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×45
×25
×8
×7

Asked: 29 Jul '11, 03:49

Seen: 454 times

Last updated: 30 Jul '11, 12:28

powered by OSQA