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".



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to