3 | | There is a patch to Trac 0.8.1 available adding support for the [http://www.fastcgi.com/ FastCGI] interface. Like TracModPython, this allows trac to remain resident, and is faster than external CGI interfaces which must start a new process for each page view. However, unlike mod_python, it is able to support [http://httpd.apache.org/docs/suexec.html SuEXEC]. Additionaly, it is supported by much wider variety of webservers. |
| 3 | There is a patch against r1342 of Trac trunk available adding support for the [http://www.fastcgi.com/ FastCGI] interface. Like TracModPython, this allows trac to remain resident, and is faster than external CGI interfaces which must start a new process for each page view. However, unlike mod_python, it is able to support [http://httpd.apache.org/docs/suexec.html SuEXEC]. Additionally, it is supported by much wider variety of webservers. |
27 | | Configure ScriptAlias or similr options as described in TracInstall, but calling cgi-bin/trac.fcgi instead of cgi-bin/trac.cgi |
| 27 | Configure ScriptAlias or similar options as described in TracInstall, but calling cgi-bin/trac.fcgi instead of cgi-bin/trac.cgi |
| 28 | |
| 29 | == Simple Lighttpd Configuration == |
| 30 | {{{ |
| 31 | lighttpd a secure, fast, compliant and very flexible web-server which has been optimized for high-performance |
| 32 | environments. It has a very low memory footprint compared to other webservers and takes care of cpu-load. |
| 33 | }}} |
| 34 | |
| 35 | The FastCGI front-end was developed primarily for use with alternative webservers, such as [http://www.lighttpd.net/ lighttpd]. To use TracFastCgi with lighttpd, add the following to your lighttpd.conf: |
| 36 | {{{ |
| 37 | fastcgi.server = ("trac.fcgi" => ( "trac.fcgi" => ( "socket" => "/tmp/trac-fastcgi.socket", |
| 38 | "bin-path" => "/path/to/cgi-bin/trac.fcgi", |
| 39 | "bin-environment" => ("TRAC_ENV" => "/path/to/env/trac") |
| 40 | ) |
| 41 | ) |
| 42 | ) |
| 43 | alias.url = ( "/cgi-bin/" => "/path/to/cgi-bin/", "/trac/" => "/usr/share/trac/htdocs/") |
| 44 | url.rewrite-final = ("^/trac(.*)" => "/cgi-bin/trac.fcgi$1", "^/trac/?$" => "/trac/timeline/") |
| 45 | }}} |
| 46 | |
| 47 | Note that you will need to add a new entry to ''fastcgi.server'' for each separate Trac instance that you wish to run. |
| 48 | |
| 49 | Relaunch lighttpd, and browse to http://''server''/trac/ to access Trac. |