Trac with FastCGI

Since version 0.9, Trac supports being run through the FastCGI interface. Like mod_python, this allows Trac to remain resident, and is faster than external CGI interfaces which must start a new process for each request. However, unlike mod_python, it is able to support SuEXEC. Additionally, it is supported by much wider variety of web servers.

Simple Apache configuration

# Enable fastcgi for .fcgi files
# (If you're using a distro package for mod_fcgi, something like
# this is probably already present)
<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 you can serve multiple Trac projects in a directory like:

FastCgiConfig -initial-env TRAC_ENV_PARENT_DIR=/parent/dir/of/projects

Configure ScriptAlias or similar options as described in TracCgi, but calling trac.fcgi instead of trac.cgi.

Simple Lighttpd Configuration

The FastCGI front-end was developed primarily for use with alternative webservers, such as lighttpd.

lighttpd is a secure, fast, compliant and very flexible web-server that has been optimized for high-performance environments. It has a very low memory footprint compared to other web servers and takes care of CPU load.

For using trac.fcgi with lighttpd add the following to your lighttpd.conf:

fastcgi.server = ("/trac" =>
                   ("trac" =>
                     ("socket" => "/tmp/trac-fastcgi.sock",
                      "bin-path" => "/path/to/cgi-bin/trac.fcgi",
                      "check-local" => "disable",
                      "bin-environment" =>
                        ("TRAC_ENV" => "/path/to/projenv")
                     )
                   )
                 )

Note that you will need to add a new entry to fastcgi.server for each separate Trac instance that you wish to run. Alternatively, you may use the TRAC_ENV_PARENT_DIR variable instead of TRAC_ENV as described above.

Other important information like this updated TracInstall page, and this are useful for non-fastcgi specific installation aspects.

Relaunch lighttpd, and browse to http://yourhost.example.org/trac to access Trac.


See also TracCgi, TracModPython, TracInstall, TracGuide

Also please read related information about acne, balding, bloating, bowel, breast augmentation, breast enhancement, breast enlargement, breast enhance, breasts, cellulite, colitis, constipation, diarrhea, diet, ejaculation, fat loss, fibromyalgia, hair loss, hair growth, alopecia, baldness, provillus, heartburn, heartworm, hemorrhoids, hgh, hoodia, hypothyroidism, ibs, insomnia, menopause, neuralgia, no smoking, osteoarthritis, osteoporosis, pain relief, pheromone, pimple, quit smoking, rheurmatism, sleep aids, sleep apnea, sleep disorder, smoking, stop smoking, thyroid, weight, wrinkle, skin treatment, skin care, skin disorder, skin disease, skin cream, human growth hormone, anti aging, hormone, acanthosis, blackheads, hickey, inflammatory disease, rosacea, skin condition, whiteheads, zits, tendonitis, complexion, crinkle, scar treatment, callus, mesotherapy, endermologie, liposuction, adipose tissue, fatty tissue, flab, mons pubis, revitol, arthritis, back pain, cartilage, chronic pain, depression, sciatica, shingles, stiff joints, stiffness, prostate, prostatitis, drug testing, drug-screening, drug tests, drug detox, drug addiction, drug rehab, detoxification, drug rehabilitation and rapid detox.
Also information about Arabia, Belize, China, Denmark, Greenland, Iceland, Iran, Lithuania, Nicaragua, Palestine, Sweden, Cameroon, Chad, Georgia, Guyana, Iraq, Mali, Nauru, Norway, Panama, Samoa, United kingdom, Britain, Comoros, Dominica, Ecuador, France, Gambia, Laos, Libya, Netherlands, Romania, Suriname, Azerbaijan, Bolivia, Burundi, Mauritania, New zealand, Nicaragua, Puerto rico, Romania, Slovakia, Thailand, Vanuatu, Austria, Brazil, Cambodia, Cuba, Cyprus, Egypt, France, Georgia, Korea, Namibia, Suriname, Belarus, Caledonia, Cambodia, Congo, Iraq, Malawi, Nepal, Nigeria, Sweden, Ukraine, Yemen, Colombia, Cuba, Finland, Guatemala, Hungary, Ireland, Nauru, Qatar, Serbia and Syria still available for you.
Read more about whole world: Benin, Bermuda, Bhutan, Bolivia, Brunei, Cameroon, Colombia, Costa rica, Croatia, Cuba, Dominica, Ecuador, Estonia, Ethiopia, Finland, Ghana, Guinea, Honduras, Hungary, India, Iran, Israel, Jordan, Latvia, Libya, Macedonia, Malawi, Malta, Mexico, Micronesia, Moldova, Monaco, Myanmar, Namibia, Nauru, Nicaragua, Puerto rico, Russia, Singapore, Slovenia, Somalia, Sudan, Suriname, Syria, Tanzania, Tobago, Trinidad, Turkey, Uganda, Vanuatu.