[Pkg-trac-devel] Bug#507018: Bug#507018: trac does not include cgi-bin
Steve B
s at pictorii.com
Thu Nov 27 13:48:41 UTC 2008
On 28/11/2008, at 12:35 AM, Vincent Caron wrote:
> Shu Ning Bian wrote:
>>
>> cgi-bin/ directory (http://trac.edgewall.org/browser/trunk/cgi-bin)
>> is missing
>> from the trac install. This makes it difficult to deploy trac using
>> CGI or
>> fast CGI.
>
> It is not supposed to be distribued, cgi/fcgi scripts are actually
> generated as part of the "trac-admin <trac> deploy ..." command.
>
> I thought it was not handy, until I had troubles with my FastCGI
> setup where maintaing a per-vhost environment variable (think
> TRAC_ENV) would not work with Lenny's fcgid. Since I was using a
> unique, generic .fcgi script, it would be reused for different Trac
> instances without its environment being updated (obviously, it's
> only set once when the .fcgi instance starts, then serve thousands
> of requests with the same env). Conclusion: you really need a
> distinct .fcgi script per Trac instance. I tried hard links to re-
> use a generic one but adding "trac-admin ... deploy" was very easy
> to add in my setup scripts.
>
> The "deployed" scripts also properly set a trac-local egg cache
> path which is a good idea to avoid strange quircks with some plugins.
>
> All in one it's the recommended way and served me well. I think the
> Trac Apache doc is the culprit, it does not clearly mention "trac-
> admin deploy" and suggest that the .fcgi script simply "exists".
Ah, fair enough. You are correct I had thought the *cgi scripts simply
"exists" due to the trac apache/fast-cgi documentation. I am happy for
the bug to be closed.
Thank you for your time and assistance Mr. Caron,
Steve
More information about the Pkg-trac-devel
mailing list