Changes between Version 6 and Version 7 of TracInstall


Ignore:
Timestamp:
Mar 10, 2016, 11:15:09 AM (22 months ago)
Author:
trac
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • TracInstall

    v6 v7  
    134134
    135135{{{#!div style="border: 1pt dotted; margin: 1em"
    136 **Setuptools Warning:** If the version of your setuptools is in the range 5.4 through 5.6, the environment variable `PKG_RESOURCES_CACHE_ZIP_MANIFESTS` must be set in order to avoid significant performance degradation. More information may be found in the sections on [#RunningtheStandaloneServer Running The Standalone Server] and [#RunningTraconaWebServer Running Trac on a Web Server].
     136**Setuptools Warning:** If the version of your setuptools is in the range 5.4 through 5.6, the environment variable `PKG_RESOURCES_CACHE_ZIP_MANIFESTS` must be set in order to avoid significant performance degradation. More information may be found in [#DeployingTrac Deploying Trac].
    137137}}}
    138138
     
    248248== Deploying Trac
    249249
     250{{{#!div style="border: 1pt dotted; margin: 1em"
     251**Setuptools Warning:** If the version of your setuptools is in the range 5.4 through 5.6, the environment variable `PKG_RESOURCES_CACHE_ZIP_MANIFESTS` must be set in order to avoid significant performance degradation.
     252
     253If running `tracd`, the environment variable can be set system-wide or for just the user that runs the `tracd` process. There are several ways to accomplish this in addition to what is discussed here, and depending on the distribution of your OS.
     254
     255To be effective system-wide a shell script with the `export` statement may be added to `/etc/profile.d`. To be effective for a user session the `export` statement may be added to `~/.profile`.
     256{{{#!sh
     257export PKG_RESOURCES_CACHE_ZIP_MANIFESTS=1
     258}}}
     259
     260Alternatively, the variable can be set in the shell before executing `tracd`:
     261{{{#!sh
     262$ PKG_RESOURCES_CACHE_ZIP_MANIFESTS=1 tracd --port 8000 /path/to/myproject
     263}}}
     264
     265If running the Apache web server, !Ubuntu/Debian users should add the `export` statement to `/etc/apache2/envvars`. !RedHat/CentOS/Fedora should can add the `export` statement to `/etc/sysconfig/httpd`.
     266}}}
     267
    250268=== Running the Standalone Server
    251269
     
    258276{{{#!sh
    259277$ tracd -s --port 8000 /path/to/myproject
    260 }}}
    261 
    262 {{{#!div style="border: 1pt dotted; margin: 1em"
    263 **Setuptools Warning:** If the version of your setuptools is in the range 5.4 through 5.6, the environment variable `PKG_RESOURCES_CACHE_ZIP_MANIFESTS` must be set in order to avoid significant performance degradation. The environment variable can be set system-wide, or for just the user that runs the `tracd` process. There are several ways to accomplish this in addition to what is discussed here, and depending on the distribution of your OS.
    264 
    265 To be effective system-wide a shell script with the `export` statement may be added to `/etc/profile.d`.  !Ubuntu/Debian users can add the `export` statement to `/etc/apache2/envvars`. !RedHat/CentOS/Fedora users can add the `export` statement to `/etc/sysconfig/httpd`. To be effective for a user session the `export` statement may be added to `~/.profile`.
    266 {{{#!sh
    267 export PKG_RESOURCES_CACHE_ZIP_MANIFESTS=1
    268 }}}
    269 
    270 Alternatively, the variable can be set in the shell before executing `tracd`:
    271 {{{#!sh
    272 $ PKG_RESOURCES_CACHE_ZIP_MANIFESTS=1 tracd --port 8000 /path/to/myproject
    273 }}}
    274278}}}
    275279
     
    278282Trac provides various options for connecting to a "real" web server:
    279283 - [TracFastCgi FastCGI]
    280  - [wiki:TracModWSGI mod_wsgi]
    281  - [TracModPython mod_python]
     284 - [wiki:TracModWSGI Apache with mod_wsgi]
     285 - [TracModPython Apache with mod_python]
    282286 - //[TracCgi CGI]: should not be used, as it degrades performance//
    283287
     
    327331
    328332<Directory "/path/to/www/trac/htdocs">
    329   Order allow,deny
    330   Allow from all
     333  # For Apache 2.2
     334  <IfModule !mod_authz_core.c>
     335    Order allow,deny
     336    Allow from all
     337  </IfModule>
     338  # For Apache 2.4
     339  <IfModule mod_authz_core.c>
     340    Require all granted
     341  </IfModule>
    331342</Directory>
    332343}}}
     
    346357
    347358<Directory "/path/to/projectenv/htdocs">
    348   Order allow,deny
    349   Allow from all
     359  # For Apache 2.2
     360  <IfModule !mod_authz_core.c>
     361    Order allow,deny
     362    Allow from all
     363  </IfModule>
     364  # For Apache 2.4
     365  <IfModule mod_authz_core.c>
     366    Require all granted
     367  </IfModule>
    350368</Directory>
    351369}}}