Version 1 (modified by 19 years ago) ( diff ) | ,
---|
This page documents the 1.4 (latest stable) release. Documentation for other releases can be found here.
Trac and FastCGI
There is a patch to Trac 0.8.1 available adding support for the 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 SuEXEC. Additionaly, it is supported by much wider variety of webservers.
The patch
Simple configuration
# Enable fastcgi for .fcgi files # if using a distro package for mod_fcgi, something like this is probably already done <IfModule mod_fastcgi.c> AddHandler fastcgi-script .fcgi FastCgiIpcDir /var/lib/apache2/fastcgi </IfModule> LoadModule fastcgi_module /usr/lib/apache2/modules/mod_fastcgi.so
You can either setup the TRAC_ENV as an overall default:
FastCgiConfig -initial-env TRAC_ENV=/path/to/env/trac
Or NOT VERIFIED you should be able to do it per-directory as described in TracInstall for normal CGIs.
Configure ScriptAlias or similr options as described in TracInstall, but calling cgi-bin/trac.fcgi instead of cgi-bin/trac.cgi
See also TracGuide, TracInstall, TracMultipleProjects