Configuration
1. Create Server Folder(s)
sudo mkdir /server sudo mkdir /server/svn sudo mkdir /server/trac
2. Some permissions changes and an apache restart are now needed:
sudo chown -R www-data /server/svn/ sudo chown -R www-data /server/trac/ sudo /etc/init.d/apache2 restart
3. Open the dav_svn.conf from /etc/apache2/mods-available/
sudo gedit /etc/apache2/mods-available/dav_svn.conf
For SVN edit/uncomment the line as show below from the dav_svn.conf file on the mods-available
<Location /svn>
# Uncomment this to enable the repository,
DAV svn
# Set this to the path to your repository
SVNParentPath /server/svn
</Location>
For Trac Configuration you need to put the following lines after the svn conf settings on dav_svn.conf file.
Alias /trac /server/trac <Location /trac> SetHandler mod_python PythonInterpreter main_interpreter PythonHandler trac.web.modpython_frontend PythonOption TracEnvParentDir /server/trac PythonOption TracUriRoot /trac </Location>
4. Create a SVN Repository for the test project “projectOne”
sudo svnadmin create /server/svn/projectOne
5. Create a Trac environment for the project “projectOne”
sudo trac-admin /server/trac/projectOne initenv
The terminal will ask the Project Name. Give a name which is to identify the repository projectOne
Please enter the name of your project. This name will be used in page titles and descriptions. Project Name [My Project]> ProjectOne
After that the Terminal will ask for the Database option and Repository type please press “Enter” key for each question.
Database connection string [sqlite:db/trac.db]> Repository type [svn]>
The Last and important question is the svn repository path to the project. Enter the svn path to that project, here in example /server/svn/projectOne
Path to repository [/path/to/repos]> /server/svn/projectOne
Finally you will get
The latest documentation can also always be found on the project
website:
http://trac.edgewall.org/
Congratulations!
Check the localhost
Check the localhost, by open your web browser and type “localhost”.
Check SVN from the URL.
And you can check the SVN path with your project name, like: http://localhost/svn/projectOne. Showing the current svn revision ie 0.
Check Trac from the URL.
The final step is to test the Trac configuration with SVN.
Finally you made the Trac SVN system for your Project Management purpose. For more details on Trac & SVN please wait a while.







Pingback: Trac & SVN Part 2 – How to Install SVN Trac on Ubuntu. | TutorBoy.com