Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.
$ /etc/init.d/httpd restart

Starting httpd: httpd: 
Syntax error on line 205 of /etc/httpd/conf/httpd.conf: 
Cannot load /etc/httpd/modules/mod_wsgi.so into server: 
/etc/httpd/modules/mod_wsgi.so: cannot open shared object file: 
No such file or directory

file: httpd.conf

..
205: LoadModule wsgi_module modules/mod_wsgi.so

Any ideas in how can I correct this error or how to share the file: mod_wsgi.so, in order to be loaded and used by apache?

share|improve this question

migrated from stackoverflow.com Aug 24 '12 at 4:59

This question came from our site for professional and enthusiast programmers.

2 Answers 2

up vote 1 down vote accepted

This may be for the following problems #

  • Your copy of mod_wsgi is compiler against a different version of python than what you have.
  • Your copy of libpython shared object file isn't in apache's library path

Following links may help you #

share|improve this answer
    
It is unlikely to be either. The error suggests that the mod_wsgi.so file simply does not exist. –  Graham Dumpleton Aug 24 '12 at 2:48
    
Yes, I agree with @GrahamDumpleton Sir, and for further i have shared the links –  Mahbubur R Aaman Aug 24 '12 at 2:54

The error says that:

/etc/httpd/modules/mod_wsgi.so

does not exist.

Run:

ls -las /etc/httpd/modules/mod_wsgi.so

to prove whether it does or does not. If it doesn't then install mod_wsgi.

If it does exist, then validate if version of Python it is compiled against exists and/or is findable.

http://code.google.com/p/modwsgi/wiki/CheckingYourInstallation#Python_Shared_Library

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.