Version 79 (modified by anon, 6 years ago)

--

buy valium sports betting buy online celexa valium online buy cheap diazepam side effects of clomid buy vicodin rolex watches cialis online baccarat online cheap viagra lipitor recall baccarat vase phentermine online buy cialis lipitor recall buy ultram online hydroxycut with ephedrine casino games las vegas casino jobs buy didrex online casino gambling discount didrex gamble replica rolex viagra alternative lipitor side effects side effects of lipitor online texas holdem hydrocodone no prescription carisoprodol buying cheap fioricet sports gambling atenolol side effects free strip poker zyprexa attorney online sports gambling viagra buy hydrocodone buy alprazolam online celexa & discontinuation symptoms ephedrine diet pills casinos pachislo slot machines hydrocodone online cheap soma texas holdem strategy cheap phentermine hydrocodone online vicodin es hydrocodone online poker chips free poker online atenolol vicodin viagra bet slot machines viagra alternative fake rolex phentermine diazepam buy online buy cheap xenical xanax online atenolol propecia online casino gambling tramadol casino games las vegas casino rolex replicas meridia discount las vegas casinos buy viagra betting buy phentermine buy cheap fioricet buy ephedrine buy viagra rolex buy online fioricet buy soma cheap xanax online cheap tramadol poker chips replica rolex las vegas casinos poker chips blackjack strategy meridia side effects free poker strip poker viagra buy atenolol soma online online casinos free blackjack xanax xr sports betting online casino poker chips free slot machines online poker zyprexa side effects viagra buy viagra side effects of lipitor free poker hydrocodone online cheap viagra free strip poker herbal viagra sports betting odds viagra online sports betting casino games buy viagra buy xanax online buy vicodin online las vegas casino employment buy tramadol online poker online gambling online casino gambling side effects of zyprexa xanax buy hydrocodone online drug fioricet hydrocodone valium las vegas casino employment propecia online free poker buy xanax online texas holdem strategy buy xenical online bet uncut music videos buy cheap carisoprodol carisoprodol buy online online poker buy cheap fioricet clomid and twins casino strip poker valium online buy soma online hydrocodone online cheap soma buy carisoprodol texas holdem strategy acyclovir herbal viagra gambling buy celexa casinos fake rolex viagra alternative phentermine ambien didrex las vegas casinos internet gambling free texas holdem viagra alternative sports betting lipitor free poker free online slot machines cheap diazepam side effects of clomid atenolol buy cheap xenical blackjack ephedrine diet pills didrex cheap online vicodin viagra buy viagra online sports betting herbal viagra procter & gamble buy cheap fioricet buy hydrocodone online poker chips drug valtrex free texas holdem herbal viagra cheap cialis viagra cialis online does meridia work herbal viagra free strip poker buy viagra online casinos herbal viagra buy cialis generic lipitor dangers of ephedrine buy ultram ephedrine hcl online casino canada discount celexa buy online diazepam zyprexa side effects what does alprazolam look like hydrocodone no prescription football betting dangers of ephedrine viagra alternative rolex replica celexa & discontinuation symptoms fake rolex casino games online atenolol alprazolam pictures fake rolex hydroxycut with ephedrine carisoprodol cheap viagra order cialis poker gambling cheap cialis cheap cialis generic cialis casino games buy soma cheap online blackjack online poker blackjack tramadol cod viagra alternative clomid success online roulette side effects of lipitor herbal viagra generic lipitor rolex replica rolex replica ambien free strip poker rolex replica cheap viagra celexa & discontinuation symptoms antique slot machines texas holdem zyprexa side effects alprazolam online order cialis cheap viagra buy ultram online order cialis online casinos buy xanax rolex watches side effects of xanax buy online ultram buy cheap ultram discount phentermine sports betting odds online poker buy viagra hydrocodone ephedrine hcl buy celexa cheap cialis viagra alternative poker ephedrine hcl poker chips las vegas casinos online sports betting las vegas casinos hydrocodone online online poker free strip poker online poker alprazolam rolex replica poker valium online las vegas casino employment cheap viagra sports betting odds poker poker valium online football betting generic viagra online casino what does alprazolam look like phentermine 37 5mg tramadol cod rolex rolex cheap xenical generic cialis hydrocodone no prescription fake rolex

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

There are two FastCGI modules commonly available for Apache: mod_fastcgi and mod_fcgid. The FastCgiIpcDir and FastCgiConfig directives discussed below are mod_fastcgi directives; the DefaultInitEnv is a mod_fgcid directive.

For mod_fastcgi, add the following to an appropriate Apache configuration file:

# 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

Setting FastCgiIpcDir is optional if the default is suitable. Note that the LoadModule line must be after the IfModule group.

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

You can set up 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

But neither of these will work for mod_fcgid. A similar but partial solution for mod_fcgid is:

DefaultInitEnv TRAC_ENV /path/to/env/trac/

But this cannot be used in Directory or Location context, which makes it difficult to support multiple projects.

A better method which works for both of these modules (and for  lighttpd and CGI as well), because it involves no server configuration settings for environment variables, is to set one of the variables in trac.fcgi, e.g.:

import os
os.environ['TRAC_ENV'] = "/path/to/projectenv"

or

import os
os.environ['TRAC_ENV_PARENT_DIR'] = "/path/to/project/parent/dir"

Using this method, different projects can be supported by using different .fcgi scripts with different ScriptAliases, copying and appropriately renaming trac.fcgi and adding the above code to create each such script.

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, and you may set one of the two in trac.fcgi instead of in lighttpd.conf using bin-environment (as in the section above on Apache configuration).

For using two projects with lighttpd add the following to your lighttpd.conf:

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

Note that field values are different. If you prefer setting the environment variables in the .fcgi scripts, then copy/rename trac.fcgi, e.g., to first.fcgi and second.fcgi, and reference them in the above settings. Note that the above will result in different processes in any event, even if both are running from the same trac.fcgi script.