Changes between Version 3 and Version 4 of TracCgi


Ignore:
Timestamp:
03/14/20 12:14:06 (5 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracCgi

    v3 v4  
    11= Installing Trac as CGI
     2[[TracGuideToc]]
     3[[PageOutline]]
    24
    35{{{#!div class=important
    4   ''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.''
     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.''
    57}}}
    68
    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.
     9CGI 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.
    1210
    1311== Apache web-server configuration
     
    1917
    2018To 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 {{{#!sh
     19{{{#!apache
    2220ScriptAlias /trac /path/to/www/trac/cgi-bin/trac.cgi
    2321}}}