Changes between Version 2 and Version 3 of TracModPython2.7
- Timestamp:
- Dec 13, 2007, 7:42:18 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracModPython2.7
v2 v3 3 3 TracModPython setup is for Apache 2, but it may be possible to work with Apache 1.3. 4 4 5 The instructions below have worked on MacOS 10.46 7 5 == Installing mod_python == 8 6 9 The instruction below workfor:7 These instructions below have worked for: 10 8 * the Apache installation that comes with MacOS 10.4 11 9 * Python 2.4.3 installed using Fink … … 67 65 </Location> 68 66 }}} 69 Of course, use your own values for {{{/projects/myproject}}} and {{{/var/trac/myproject}}}. {{{TracUriRoot}}} may not be necessary .67 Of course, use your own values for {{{/projects/myproject}}} and {{{/var/trac/myproject}}}. {{{TracUriRoot}}} may not be necessary; if you remove it, you will need to modify the patch below. 70 68 71 69 Restart Apache after each configuration change. 72 70 73 == Patching and testingTrac ==71 == Patching Trac == 74 72 75 At this stage, opening http://localhost/projects/myproject in your browser will give you an error 500. You can look in the error_logfile: it is likely a Python exception, because the {{{trac.web.modpython_frontend}}} code tries to use APIs from mod_python that are different in 3.3.73 At this stage, opening http://localhost/projects/myproject in your browser will likely return an error 500. You can look in the {{{error_log}}} file: it is likely a Python exception, because the {{{trac.web.modpython_frontend}}} code tries to use APIs from mod_python that are different in 3.3. 76 74 77 75 Here's a simple patch for {{{trac/web/modpython_frontend.py}}}. It's just a hack, but it does the job: … … 140 138 try: 141 139 }}} 140 141 == Known issues with these instructions == 142 143 * The patch removes a few functionalities (such as setting up the PYTHON_EGG_CACHE): if you need them, you will need to modify the patch. 144 145 * There may be a character set issue (the non-ascii chars may not be working properly). It is probably easy to fix. 146 147 * In my setup, the performance was not improved by moving to {{{mod_python}}}, but it is likely an issue with the database access.