Follow this thread... http://www.modpython.org/pipermail/mod_python/2008-December/025871.html
They have a solution. It is not a web2py problem. Massimo On Apr 15, 9:33 am, stefan <dataweb.m...@gmail.com> wrote: > Hello, > > Trying to get web2py to work with mod_wsgi but still no > luck.http://myIP/welcome/default/indexshows Internal error and the issued > ticket number/link. > > My current setup is: > > Apache/2.2.3 (CentOS_x64) DAV/2 mod_wsgi/2.4 Python/2.5.4 PHP/5.1.6 > mod_ssl/2.2.3 OpenSSL/0.9.8e-fips-rhel5 > > Python 2.5.4 was installed from source with: > ./configure --with-threads --enable-shared --enable-sqlite3 > > mod_wsgi was installed from source with: > ./configure --with-apxs=/usr/sbin/apxs --with-python=/usr/local/bin/ > python2.5 > > and declared in httpd.conf: > LoadModule wsgi_module modules/mod_wsgi.so > > The command "import sqlite3" in Python shows no error whatsoever. > > Apache runs as apache:apache; web2py location is chowned to > apache:web2py. > storage.db is created as expected, but it's size is 0 bytes (is this > normal?). > > The vhost settings are: > > WSGISocketPrefix run/wsgi > NameVirtualHost *:80 > <VirtualHost *:80> > ServerSignature on > ServerName web2py.mydomain.com > DocumentRoot /opt/web2py/applications/ > > #Alias / /opt/web2py/applications/ > > WSGIScriptAlias / /opt/web2py/wsgihandler.py > WSGIDaemonProcess web2py user=apache group=web2py \ > home=/opt/web2py/ \ > processes=10 maximum-requests=5000 > > <Location "/admin"> > SSLRequireSSL > </Location> > > <LocationMatch ".(/[\w_]*/appadmin/.*)"> > SSLRequireSSL > </LocationMatch> > > ### static files do not need WSGI > <LocationMatch ".(/[\w_]*/static/.*)"> > Order allow,deny > Allow from all > </LocationMatch> > > ### everything else goes over WSGI > <Location "/"> > Order deny,allow > Allow from all > WSGIProcessGroup web2py > </Location> > > LogFormat "%h %l %u %t \"%r\" %>s %b" common > CustomLog logs/000-access-log common > > ErrorLog logs/000-error-log > TransferLog logs/000-access-log > LogLevel info > </VirtualHost> > > Here is the ticket content: > > Traceback (most recent call last): > File "/opt/wwwlibs/web2py/gluon/restricted.py", line 98, in > restricted > exec ccode in environment > File "/opt/wwwlibs/web2py/applications/welcome/models/db.py", line > 9, in <module> > db = SQLDB('sqlite://storage.db') # if not, use SQLite or other > DB > File "/opt/wwwlibs/web2py/gluon/sql.py", line 649, in __init__ > self._pool_connection(lambda : \ > File "/opt/wwwlibs/web2py/gluon/sql.py", line 607, in > _pool_connection > self._connection = f() > File "/opt/wwwlibs/web2py/gluon/sql.py", line 650, in <lambda> > sqlite3.Connection(dbpath)) > SystemError: NULL result without error in PyObject_Call > > Thank you for your time. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---