Edgewall Software

Changes between Version 2 and Version 3 of TracModPython2.7


Ignore:
Timestamp:
Dec 13, 2007, 7:42:18 PM (16 years ago)
Author:
fg@…
Comment:

cosmetic

Legend:

Unmodified
Added
Removed
Modified
  • TracModPython2.7

    v2 v3  
    33TracModPython setup is for Apache 2, but it may be possible to work with Apache 1.3.
    44
    5 The instructions below have worked on MacOS 10.4
    6 
    75== Installing mod_python ==
    86
    9 The instruction below work for:
     7These instructions below have worked for:
    108  * the Apache installation that comes with MacOS 10.4
    119  * Python 2.4.3 installed using Fink
     
    6765</Location>
    6866}}}
    69 Of course, use your own values for {{{/projects/myproject}}} and {{{/var/trac/myproject}}}. {{{TracUriRoot}}} may not be necessary.
     67Of 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.
    7068
    7169Restart Apache after each configuration change.
    7270
    73 == Patching and testing Trac ==
     71== Patching Trac ==
    7472
    75 At this stage, opening http://localhost/projects/myproject in your browser will give you 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.
     73At 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.
    7674
    7775Here's a simple patch for {{{trac/web/modpython_frontend.py}}}. It's just a hack, but it does the job:
     
    140138         try:
    141139}}}
     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.