python - Cant load modules/mod_wsgi.so into server; technologies=Django1.8 + Apache + mod_wsgi -


on kubuntu 14.04 configuring django project(virtual env) run in xampp using mod_wsgi in python3.4

so installed mod_wsgi python3 command

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

after enabled using command

sudo a2enmod wsgi 

in httpd.conf things have added 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 granted </files> </directory> 

as per solution have commented following code

#<directory />  #allowoverride none #require denied #</directory> 

the exact error getting is

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

now per loadmodule says module should under modules/mod_wsgi.so cant find mod_wsgi.so in modules folder under path /opt/lampp/modules/

when type locate mod_wsgi.so gives output

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

and when add loadmodule wsgi_module /usr/lib/apache2/modules/mod_wsgi.so file gives error

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

so, what's problem. thanks


Comments