19๐
The error specifically indicates that mod_wsgi is not being loaded into Apache.
In what file is:
LoadModule wsgi_module libexec/httpd/mod_wsgi.so
Did you enable the mod_wsgi module with appropriate Linux distro management command so that it will be loaded if you used distro binary packages for mod_wsgi?
51๐
The problem is that mod_wsgi
is not installed properly.
Solution (using Apache 2):
-
install Apache:
$ sudo apt-get install apache2
-
install
libapache2-mod-wsgi
:$ sudo apt-get install libapache2-mod-wsgi
And this should work fine.
- [Django]-Efficient way to update multiple fields of Django model object
- [Django]-Multithreading for Python Django
- [Django]-Fields.E304 Reverse accessor clashes in Django
1๐
just to add, How I solved my problem
if you donโt know the location of the modules
just search for them
locate mod_alias.so
then you may get output like
/usr/lib/apache2/modules/mod_alias.so
then you can add that location in your config file
LoadModule alias_module /usr/lib/apache2/modules/mod_alias.so
- [Django]-Django REST Serializer Method Writable Field
- [Django]-Django prefetch_related id only
- [Django]-Unable to find a locale path to store translations for file __init__.py
1๐
I just encountered the very same issue on openSUSE 12.2, with apache 2.2.
Even if wsgi is installed, it is a good idea to check if it has been activated. What I mean is this:
#outputs a list of registered modules
/usr/sbin/httpd2 -M
If wsgi_module (shared)
does not appear, add wsgi
to the variable APACHE_MODULES
, inside the file /etc/sysconfig/apache2
This way I could avoid altogether the line LoadModule
from httpd.conf.
- [Django]-Separation of business logic and data access in django
- [Django]-How to display uploaded images in "Change List" page in Django Admin?
- [Django]-Using Django Managers vs. staticmethod on Model class directly