Changes between Version 2 and Version 3 of TracCgi
- Timestamp:
- Jun 18, 2017, 8:54:22 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracCgi
v2 v3 1 1 = Installing Trac as CGI 2 [[TracGuideToc]] 3 [[PageOutline]] 2 4 3 5 {{{#!div class=important 4 6 ''Please note that using Trac via CGI is the slowest deployment method available. It is slower than [TracModPython mod_python], [TracFastCgi FastCGI] and even [trac:TracOnWindowsIisAjp IIS/AJP] on Windows.'' 5 7 }}} 6 8 7 CGI script is the entrypoint that web-server calls when a web-request to an application is made. To generate the `trac.cgi` script run: 8 {{{#!sh 9 trac-admin /path/to/env deploy /path/to/www/trac 10 }}} 11 `trac.cgi` will be in the `cgi-bin` folder inside the given path. ''Make sure it is executable by your web server''. This command also copies `static resource` files to a `htdocs` directory of a given destination. 9 CGI script is the entrypoint that web-server calls when a web-request to an application is made. The `trac.cgi` script can be created using the `trac-admin <env> deploy <dir>` command which automatically substitutes the required paths, see TracInstall#cgi-bin. Make sure the script is executable by your web server. 12 10 13 11 == Apache web-server configuration … … 19 17 20 18 To make Trac available at `http://yourhost.example.org/trac` add `ScriptAlias` directive to Apache configuration file, changing `trac.cgi` path to match your installation: 21 {{{#! sh19 {{{#!apache 22 20 ScriptAlias /trac /path/to/www/trac/cgi-bin/trac.cgi 23 21 }}}