73 | | Here, the script is in a subdirectory of the Trac environment. In order to let Apache run the script, access to the directory in which the script resides is opened up to all of Apache. Additionally, the `WSGIApplicationGroup` directive ensures that Trac is always run in the first Python interpreter created by mod_wsgi; this is necessary because the Subversion Python bindings, which are used by Trac, don't always work in other sub-interpreters and may cause requests to hang or cause Apache to crash as a result. After adding this configuration, restart Apache, and then it should work. |
| 73 | Here, the script is in a subdirectory of the Trac environment. |
| 74 | |
| 75 | If you followed the directions [http://trac.edgewall.org/wiki/TracInstall#cgi-bin Generating the Trac cgi-bin directory], your Apache configuration file should look like following: |
| 76 | |
| 77 | {{{ |
| 78 | WSGIScriptAlias /trac /usr/share/trac/cgi-bin/trac.wsgi # or trac.fcgi |
| 79 | |
| 80 | <Directory /usr/share/trac/cgi-bin> |
| 81 | WSGIApplicationGroup %{GLOBAL} |
| 82 | Order deny,allow |
| 83 | Allow from all |
| 84 | </Directory> |
| 85 | }}} |
| 86 | |
| 87 | In order to let Apache run the script, access to the directory in which the script resides is opened up to all of Apache. Additionally, the `WSGIApplicationGroup` directive ensures that Trac is always run in the first Python interpreter created by mod_wsgi; this is necessary because the Subversion Python bindings, which are used by Trac, don't always work in other sub-interpreters and may cause requests to hang or cause Apache to crash as a result. After adding this configuration, restart Apache, and then it should work. |