I can not upload modules / mod _wsgi.so to the server; Technology = Django1.8 + Apache + mod_wsgi

On kubuntu 14.04. Configuring a django project (virtual env) to run in xampp using mod_wsgi in python3.4

so for this I installed mod_wsgi for python3 with the command

sudo apt-get install libapache2-mod-wsgi-py3

then turned it on with the command

sudo a2enmod wsgi

in httpd.conf which I added as follows

LoadModule wsgi_module modules/mod_wsgi.so
WSGIScriptAlias / /opt/lampp/htdocs/parth/virtualenvironments/python3.4.3/django_1.8.1_Projects/trial/trial/wsgi.py
WSGIPythonPath /opt/lampp/htdocs/parth/virtualenvironments:/opt/lampp/htdocs/parth/virtualenvironments/python3.4.3/lib/python3.4/site-packages
<Directory /opt/lampp/htdocs/parth/virtualenvironments/python3.4.3/django_1.8.1_Projects/trial/trial>
<Files wsgi.py>
Require all granted
</Files>
</Directory>

according to some solution, I commented on the following code

#<Directory />
 #AllowOverride none
#Require all denied
#</Directory>

The exact error I get is

httpd: syntax error on line 158 of the file /opt/lampp/etc/httpd.conf: cannot load the modules / mod _wsgi.so in the server: /opt/lampp/modules/mod_wsgi.so: cannot open the shared object file: no such a file or directory

, modules/mod_wsgi.so mod_wsgi.so /opt/lampp/modules/

locate mod_wsgi.so ,

/usr/lib/apache2/modules/mod_wsgi.so
/usr/lib/apache2/modules/mod_wsgi.so-2.7

LoadModule wsgi_module /usr/lib/apache2/modules/mod_wsgi.so , ,

httpd: Syntax error on line 158 of /opt/lampp/etc/httpd.conf: Cannot load /usr/lib/apache2/modules/mod_wsgi.so into server: /usr/lib/x86_64-linux-gnu/libpython3.4m.so.1.0: undefined symbol: XML_SetHashSalt

, .

+4

All Articles