django - Unable to connect to WSGI daemon process 'sampleapp' -
i tried install django in ubuntu server , had 503 error in error.log apache2.conf is:
<virtualhost x.xxx.xxx.xxx:8080> serveralias www.samplesite.com serveradmin info@samplesite.com documentroot /var/www/sampleapp/ scriptalias /cgi-bin/ /var/www/sampleapp/cgi-bin/ alias /vstats/ /var/www/sampleapp/stats/ alias /error/ /var/www/sampleapp/document_error #suexecusergroup admin admin customlog /var/log/apache2/domains/sampleapp.ir.bytes bytes customlog /var/log/apache2/domains/sampleapp.ir.log combined errorlog /var/log/apache2/domains/sampleapp.ir.error.log wsgiprocessgroup sampleapp wsgiscriptalias /sampleapp /var/www/sampleapp/sampleapp/wsgi.py wsgidaemonprocess sampleapp python-path=/var/www/sampleapp:/var/www /sampleapp/envme/lib/python3.4/site-packages <directory /var/www/sampleapp/static/> require granted </directory> <directory /var/www/sampleapp/media/> require granted </directory> <directory /var/www/sampleapp/sampleapp/> <files wsgi.py> require granted </files> </directory> <directory /var/www/sampleapp/> allowoverride options +includes +indexes +execcgi order allow,deny allow </directory> </virtualhost>
and have error in error.log:
(13)permission denied: [client x.xxx.xx.xxx:59504] mod_wsgi (pid=26905): unable connect wsgi daemon process 'sampleapp' on '/var/run/apache2/wsgi.26899.0.1.sock' user uid=1005.
i lost 2 days trying solve it,
you can refer url,
http://code.google.com/p/modwsgi/wiki/configurationissues#location_of_unix_sockets
adding this,
wsgisocketprefix run/wsgi
will solve error. solution change socket files kept location apache user can read them.
Comments
Post a Comment