-For future reference-
Install SVN through Redhat repository or from the DVD.
- Create a data directory with subdirectories for svn and trac. ex. /data/svn and /data/trac
- Make sure that both data directories are owned by apache. 'chown -R apache: /data/{svn,trac}'
- Create a subversion repository in /data/svn. ex. /data/svn/test
Install the rpmforge repo to the server by using the appropriate rpm from http://dag.wieers.com/rpm/FAQ.php#B
- yum install trac
- Create a trac project with the same name as the repository. 'trac-admin /data/trac/test initenv'
Setup the apache configurations for subversion and trac
- edit /etc/httpd/conf.d/subversion.conf and add a Location for the repository. ex:
<Location /svn/test>
DAV svn
SVNPath /data/svn/test
AuthType Basic
AuthName "Authorization Realm"
AuthUserFile /data/svn/test/svnpasswd
Require valid-user
</Location>
- Setup the htpasswd file. 'htpasswd -c /data/svn/test/svnpasswd '
- edit /etc/httpd/conf.d/trac.conf and add a Location for the project
<Location /projects/test>
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnv /data/trac/test
PythonOption TracUriRoot /projects/test
</Location>
- Restart apache
The svn repo will be available through http:///svn/test
The trac project will be available through http:///projects/test
-chuck
thanks!
your post was extremely helpful. worked like a charm. in my case, i had to also install mod_python but you laid everything else out nicely.
many thanks!
-- an
Thanks for the reply.
Thanks for the reply.
This was very helpful to me.
This was very helpful to me. The only things I had to change were the permissions for the repository, making sure that Apache can read and write to the files (basically create the repository first, then change the permissions). I also had to fix the httpd.conf file a little. The modules "dav_module" and "dav_svn_module" needed to be uncommented. Other than that, great post!
Is this article useful?
I've been getting a couple of hits to this post in particular. If you found it useful, leave a comment and let me know.
-chuck
hello
very nice articles thank you...
ipekyolu nakliyat nakliyat