views:

66

answers:

2

Hi,

I tried hard to configure mod_wsgi for an pinax project. I followed the exact instructions from the site (pinaxproject.org), unfortunately, I always got the following error:

[Thu Aug 26 17:32:46 2010] [error] [client 173.48.119.55] (13)Permission denied: mod_wsgi (pid=26749): Unable to connect to WSGI daemon process 'www.mysiste.com-production' on '/etc/httpd/logs/wsgi.26745.0.1.sock' after multiple attempts.

here is the code:

LoadModule wsgi_module modules/mod_wsgi.so
<VirtualHost xx.xxx.xxx.xx:80> 
    ServerName mysite.com 
    ServerAlias www.mysite.com
    ServerAdmin [email protected]

   WSGIDaemonProcess www.mysite.com-production python-path=/usr/pinax/pinax-env/lib/python2.6/site-packages
   WSGIProcessGroup www.mysite.com-production
   WSGIScriptAlias / /usr/pinax/newsino/deploy/pinax.wsgi
   <Directory /usr/pinax/newsino/deploy>
      Order deny,allow
      Allow from all
   </Directory>

   Alias /robots.txt /srv/www/newsino/public_html/robots.txt
   Alias /favicon.ico /srv/www/newsino/public_html/favicon.ico
   Alias /images /srv/www/newsino/public_html/images
   Alias /static /srv/www/newsino/public_html/static

   ErrorLog /srv/www/newsino/logs/error.log
   CustomLog /srv/www/newsino/logs/access.log combined
</VirtualHost>
A: 

Read:

http://code.google.com/p/modwsgi/wiki/ConfigurationIssues#Location_Of_UNIX_Sockets

Setup WSGISocketPrefix directive as indicated.

Graham Dumpleton
A: 

yes, I did. the permission issue was gone, but new ones came in: middle ware and pysqlite2.....here is the log

ImproperlyConfigured: Error loading pysqlite2 module: No module named pysqlite2 [Thu Aug 26 19:14:04 2010] [error] [client 173.48.119.55] mod_wsgi (pid=27130): Exception occurred processing WSGI script '/usr/pinax/newsino/deploy/pinax.wsgi'. [Thu Aug 26 19:14:04 2010] [error] [client 173.48.119.55] Traceback (most recent call last): [Thu Aug 26 19:14:04 2010] [error] [client 173.48.119.55] File "/usr/pinax/pinax-env/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line 230, in call [Thu Aug 26 19:14:04 2010] [error] [client 173.48.119.55] self.load_middleware() [Thu Aug 26 19:14:04 2010] [error] [client 173.48.119.55] File "/usr/pinax/pinax-env/lib/python2.6/site-packages/django/core/handlers/base.py", line 39, in load_middleware [Thu Aug 26 19:14:04 2010] [error] [client 173.48.119.55] mod = import(mw_module, {}, {}, ['']) [Thu Aug 26 19:14:04 2010] [error] [client 173.48.119.55] File "/usr/pinax/pinax-env/lib/python2.6/site-packages/django_openid/consumer.py", line 14, in ? [Thu Aug 26 19:14:04 2010] [error] [client 173.48.119.55] from django.shortcuts import render_to_response [Thu Aug 26 19:14:04 2010] [error] [client 173.48.119.55] File "/usr/pinax/pinax-env/lib/python2.6/site-packages/django/shortcuts/init.py", line 9, in ? [Thu Aug 26 19:14:04 2010] [error] [client 173.48.119.55] from django.db.models.manager import Manager [Thu Aug 26 19:14:04 2010] [error] [client 173.48.119.55] File "/usr/pinax/pinax-env/lib/python2.6/site-packages/django/db/init.py", line 16, in ? [Thu Aug 26 19:14:04 2010] [error] [client 173.48.119.55] backend = import('%s%s.base' % (_import_path, settings.DATABASE_ENGINE), {}, {}, ['']) [Thu Aug 26 19:14:04 2010] [error] [client 173.48.119.55] File "/usr/pinax/pinax-env/lib/python2.6/site-packages/django/db/backends/sqlite3/base.py", line 28, in ? [Thu Aug 26 19:14:04 2010] [error] [client 173.48.119.55] raise ImproperlyConfigured, "Error loading %s module: %s" % (module, exc) [Thu Aug 26 19:14:04 2010] [error] [client 173.48.119.55] ImproperlyConfigured: Error loading pysqlite2 module: No module named pysqlite2

john
That should be relatively straightforward: install a module named pysqlite2. Alternatively, since the latest sqlite is sqlite3, figure out why your code is asking for sqlite2 instead of sqlite3.
hughdbrown