Talk:Trac
From Gentoo Linux Wiki
Contents |
[edit] config file in modules.d
Why to put my config file in modules.d folder or httpd.conf? I think although i don't use vhost I can take a seperately vhosts.conf file, do I?
/etc/apache2/vhosts.d/02_trac_vhost.conf
[edit] XSL and CSS for Subversion
- This step should be performed BEFORE "Installing each instance of Trac".
- Un-gzip /usr/share/doc/subversion-<version>/svnindex.xsl.gz and svnindex.css.gz into /usr/share/webapps/trac/<version>/
- edit /usr/share/webapps/trac/<version>/svnindex.xsl so that the path to the css file is "../trac/svnindex.css".
- Voila - beautiful output!
- Would be nice to include this step in the main article, which, btw, was very helpful and applied without changes (IIRC) also to my installation of trac 0.8.4.
(Wolfgang Groiss - groiss AT m2n.at)
[edit] ImportError: No module named svn
- you may also need to add
<Location "/cgi-bin/trac.cgi"> SetEnv PYTHONPATH "/usr/lib/svn-python/" </Location>
to your httpd.conf, as it complained about "no module named svm" to me.
(puremourning benj AT puremourning fot co dot uk)
[edit] Without time, article creator. :(
There's a lot of bugs in this howto, pay very attention in action to make a great configuration. A bit of experience in apache with mod_rewrite is good for make a lot of greats configurations fully automated. If I have some time I'll return to finish this article. If you need a great solution with trac/svn/apache/gentoo/ I have made a great solution, please contact me.
shingonoide (a t ) gmail ( d o t ) com
[edit] Thank you for trying,but..
.. this howto isnt very helpfull :( its not easy to understand what file to edit, and what the given examples mean. could someone finish or rewrite this howto?
[edit] I will finish the article.
In the time of this article I was using gentoo and I was want to help but I had some problems.
For now I want to revise and finish the article...
And I do this until end of July.
any help? shingonoide (at) gmail (dot) com
[edit] I'm updating something
Despite the problems, I think this article is still quite useful. I upgraded the version-related information, and I'll try to fix some things as soon as I have some time. I have no experience with mod_python however (I use mod_fastcgi), so if somebody could update that section (which is still at the 0.8.x version of trac) it would be great...
Mifiele.
[edit] Using FastCGI: migration from mod_fastcgi to mod_fcgid
As mod_fastcgi has been masked beginning of January 2007 [1], mod_fcgid should now be used instead. I'm currently upgrading my trac server to use mod_fcgid. I have found a working configuration but I'm not sure it is the best way to do it.
Here is what I've done, following some indications I found on the net [2] [3]
- emerge -C mod_fastcgi
- emerge -av mod_fcgid
- replace "-D FASTCGI" by "-D FCGID" in /etc/conf.d/apache2
- add " .fcgi" at the end of the AddHandler line in /etc/apache2/modules.d/20_mod_fcgid.conf
- add the line "DefaultInitEnv TRAC_ENV_PARENT_DIR /var/trac/" in /etc/apache2/modules.d/20_mod_fcgid.conf (just below the AddHandler line)
- remove the FastCgiServer line from my apache configuration
If you want that I update the FastCGI section of the howto just let me know. I'll do it if I find some time.
References:
- [1] http://permalink.gmane.org/gmane.linux.gentoo.devel/45167
- [2] http://trac.edgewall.org/wiki/TracFastCgi
- [3] http://wiki.rubyonrails.com/rails/pages/HowToUseOracleWithFastCGI
--Bdz 08:29, 21 January 2007 (UTC)
[edit] Edited for Clarification
Added some notes to clarify that multiple instances aren't necessary to host multiple trac projects on the same host, along with some example apache directives for configuration in this case. A few minor edits to grammar to help make things easier to comprehend.
--Nick 16:49, 23 March 2007 (UTC)
