Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm working on setting up Trac to use wsgi, and am running into trouble getting mod_wsgi working. I downloaded and installed mod_sgi.

[box]# apachectl configtest

httpd: Syntax error on line 214 of /etc/httpd/conf/httpd.conf: Can't locate API module structure `mod_wsgi' in file /etc/httpd/modules/mod_wsgi.so: /etc/httpd/modules/mod_wsgi.so: undefined symbol: mod_wsgi

Line 214 of httpd.conf:

LoadModule mod_wsgi modules/mod_wsgi.so

Here is mod_wsgi.so as found on the filesystem:

[box]# locate mod_wsgi.so
/usr/lib64/httpd/modules/mod_wsgi.so

What might I be overlooking?

share|improve this question

The line:

LoadModule mod_wsgi modules/mod_wsgi.so

is wrong. It should have been:

LoadModule wsgi_module modules/mod_wsgi.so

Upgrading itself should not have made any difference.

share|improve this answer
up vote 0 down vote accepted

This particular problem was solved by installing python26-mod_wsgi.so.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.