Edgewall Software

Changes between Version 73 and Version 74 of TracModPython


Ignore:
Timestamp:
Aug 9, 2006, 11:31:13 PM (18 years ago)
Author:
jonka750 [at] student.liu.se
Comment:

Suggestion how to solve php-sqlite3 problem

Legend:

Unmodified
Added
Removed
Modified
  • TracModPython

    v73 v74  
    125125'''''The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.'''''
    126126
    127 And you get the following entries in your Apache error log:
     1271. And you get the following entries in your Apache error log:
    128128
    129129
     
    138138
    139139
     1402. And you get the following entries in your Apache error log:
     141
     142
     143{{{
     144...
     145...PythonHandler trac.web.modpython_frontend:   File "/lib/python2.4/site-packages/trac/db.py", line 211, in _rollback_on_error\n    return function(self, *args, **kwargs)
     146...PythonHandler trac.web.modpython_frontend: OperationalError: unsupported file format
     147}}}
     148
     149It's probably due to that you have a mod_php module in apache with SQLite support compiled into it. Unless one configures mod_php with "--without-sqlite" it will be compiled with PHP's internal SQLite-support, which is SQLite 2.x. This will confuse apache when Trac, and mod_python, dynamically tries to load another version of the SQLite library. Most probably the same version the SQLite database is constructed by, why the SQLite 2.x version included in mod_php gives the above error.
     150Solution is either to unload mod_php or to compile mod_php without sqlite-support.
    140151
    141152=== Form submission problems ===