[Answered ]-Mod_wsgi, django, apache: failed to load "mod_wsgi.so" module in httpd.conf

2👍

Your copy of mod_wsgi is compiled against a different version of python than what you have. Looks like it’s looking for python version 2.5. If you run python -V on your system, see what version(s) you have installed and try to find a mod_wsgi built against that version (python will output something like 2.7.3, which would be python 2.7).

It’s either that or your copy of libpython2.5.so isn’t in apache’s library path. you could try and symlink it to one of the lib directories in apache’s library path, or you can add the directory where your libpython2.5.so resides and add that to apache’s library path. This serverfault question has a few answers that might help you set that up.

another good reference:
Python executable not finding libpython shared library

Leave a comment