[Python-modules-team] Bug#619252: Acknowledgement (libapache2-mod-wsgi: Daemon mode broken when running mpm-itk)
Kristian Klette
klette at samfundet.no
Tue Mar 22 17:59:37 UTC 2011
Sorry for the lack of information, here is some more.
Steps to reproduce bug (on clean squeeze install):
# aptitude install apache2-mpm-itk libapache2-mod-wsgi
[snip]
/etc/apache2/sites-available/000-default:
<VirtualHost *:80>
ServerAdmin webmaster at localhost
DocumentRoot /var/www/foo
AssignUserID klette klette
WSGIDaemonProcess example.com processes=2 threads=15
WSGIProcessGroup example.com
WSGIScriptAlias /test /var/www/handler.wsgi
</VirtualHost>
/var/www/handler.wsgi: (owned by user klette)
!/usr/bin/python
def application(environ, start_response):
response_body = 'Hello Debian Bugs'
status = '200 OK'
response_headers = [('Content-Type', 'text/plain'),
('Content-Length', str(len(response_body)))]
start_response(status, response_headers)
return [response_body]
restart apache2.
Output in error.log:
[Tue Mar 22 18:55:41 2011] [error] [client 84.202.248.106]
(13)Permission denied: mod_wsgi (pid=11855): Unable to connect to WSGI
daemon process 'example.com' on '/var/run/apache2/wsgi.11811.0.1.sock'
after multiple attempts.
I hope this helps.
- Kristian
More information about the Python-modules-team
mailing list