Changes between Version 4 and Version 5 of TracPlugins
- Timestamp:
- Nov 4, 2008, 9:55:19 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracPlugins
v4 v5 71 71 72 72 ==== Enabling the plugin ==== 73 Unlike plugins installed per-environment, you'll have to explicitly enable globally installed plugins via [wiki:TracIni trac.ini]. This is done in the `[components]` section of the configuration file, for example:73 Unlike plugins installed per-environment, you'll have to explicitly enable globally installed plugins via [wiki:TracIni trac.ini]. This also applies to plugins installed in the path specified in the `[inherit] plugins_dir` configuration option. This is done in the `[components]` section of the configuration file, for example: 74 74 {{{ 75 75 [components] … … 120 120 SetHandler mod_python 121 121 ... 122 SetEnvPYTHON_EGG_CACHE /path/to/dir122 PythonOption PYTHON_EGG_CACHE /path/to/dir 123 123 </Location> 124 124 }}} 125 125 126 ''Note: this requires the `mod_env` module''126 ''Note: SetEnv requires the `mod_env` module which needs to be activated for Apache. In this case the SetEnv directive can also be used in the `mod_python` Location block.'' 127 127 128 128 For [wiki:TracFastCgi FastCGI], you'll need to `-initial-env` option, or whatever is provided by your web server for setting environment variables. 129 129 130 ''Note: that if you already use -initial-env to set the project directory for either a single project or parent you will need to add atleast one environment variable inside trac.fcgi as expressed in the example on [wiki:TracFastCgi TracFastCgi]. 130 ''Note: that if you already use -initial-env to set the project directory for either a single project or parent you will need to add an additional -initial-env directive to the FastCgiConfig directive. I.e. 131 132 {{{ 133 FastCgiConfig -initial-env TRAC_ENV=/var/lib/trac -initial-env PYTHON_EGG_CACHE=/var/lib/trac/plugin-cache 134 }}} 131 135 132 136 === About hook scripts === … … 152 156 153 157 === Is the plugin enabled? === 158 154 159 155 160 If you install a plugin globally (i.e. ''not'' inside the `plugins` directory of the Trac project environment) you will have to explicitly enable it in [TracIni trac.ini]. Make sure that: