Edgewall Software

Changes between Version 21 and Version 22 of TracOnWindows/Advanced


Ignore:
Timestamp:
Mar 14, 2014, 10:54:49 AM (10 years ago)
Author:
anonymous
Comment:

Added script adjustments required for mod_wsgi on windows

Legend:

Unmodified
Added
Removed
Modified
  • TracOnWindows/Advanced

    v21 v22  
    4242
    4343First, you need to integrate [http://code.google.com/p/modwsgi mod_wsgi] in your Apache installation. There are   [http://code.google.com/p/modwsgi/wiki/DownloadTheSoftware#Windows_Binary_Downloads pre-compiled binaries] available for download. Choose the right one depending on the version of Apache and Python you're running. Then follow the [http://code.google.com/p/modwsgi/wiki/InstallationOnWindows installation instructions] for this module, and the [[TracModWSGI]] installations instructions. The resulting configuration (from the words of the `mod_wsgi` author) is supposed to be more efficient than one using `mod_python`.
     44
     45Adjustments to the paths included in the `.wsgi` script must also be made. The Trac Environment must point to the same path as was specified with `Trac-admin path/to/env initenv`. The Python Egg cache can be found in `%AppData%` on Windows. Example values follow:
     46{{{
     47os.environ['TRAC_ENV'] = 'C:\\TracEnvironment\\'
     48os.environ['PYTHON_EGG_CACHE'] = 'C:\\Users\\Administrator\\AppData\\Roaming\\Python-Eggs\\trac-1.0-py2.7-win32.egg-tmp\\trac\\'
     49}}}
     50
     51Note that back-slashes need to be escaped in python strings.
    4452
    4553==== Apache and `mod_python` ====