
Install SVN + Trac + TracWebAdmin
Hello everybody!
Today I will tell you how to correctly and without crap install a bunch of SVN + Trac + TracWebAdmin.
In principle, there are a lot of manuals for installing SVN + Trac and they all offer different methods - I decided to introduce one of them. The main goal of this topic is to install the TracWebAdmin plugin - after digging around in the internet I did not find any FULL mana for installing this feature. Also this topic is a logical continuation of my previous topic Installing and Configuring Apache2 + PHP5 + MySQL + XDebug & Eclipse + PDT + XDebug in Ubuntu 7.10 .
Let's start with ...
2. Turn on the python module:
2. Add yourself (your Ubuntu username) to the svn group:
3. Add apache to the svn group:
4. Create a folder for the future repository:
5. Create a repository:
6. Change permissions to the folder for access to users from the svn group:
7. We allow the group and the owner to write:
8. Create a password to access the folder with the repository, which will later be used by apache:
9. Now create a rule for Apache to access the svn repository: 10. Restart the apache: 11. SVN is installed! It is available at localhost / svn
2. Create an environment for Trac to work with SVN:
3. Change the rights to the folder with trac:
4. Create a password for admin access to the folder with trac, which will later be used by apache 'em:
5. Let's create a rule for Apache to access trac: 6. Trac is installed! It is available at localhost / trac
1. Add yourself to the trac admins:
yoreeq do not hit hard, plz;)
The Trac + SVN installation was taken from here: habrahabr.ru/post/20525
UPD [03/18/2012]: The article was updated in order to keep up with the times :)
Today I will tell you how to correctly and without crap install a bunch of SVN + Trac + TracWebAdmin.
Why is all this ...?
Imagine a situation: you have a project that is under development. Scripts contain thousands of lines of code. Permanent saving, backup of files, removal of code fragments, and insertion of new ones force precise control over the source code of the project so as not to lose the already existing and verified. You have to write in a text file or on paper the stages of development and testing of individual parts of the system, it is even possible to write file versions. Perhaps this is convenient ... but not for long - there are moments when it becomes physically impossible to manually control the code because of its size. This is where SVN version control comes in. You can start familiarization here: ru.wikipedia.org/wiki/SVN. And Trac is just a convenient web interface for even more convenient control over your project. Consideration of Trac can be started from here: en.wikipedia.org/wiki/TracIn principle, there are a lot of manuals for installing SVN + Trac and they all offer different methods - I decided to introduce one of them. The main goal of this topic is to install the TracWebAdmin plugin - after digging around in the internet I did not find any FULL mana for installing this feature. Also this topic is a logical continuation of my previous topic Installing and Configuring Apache2 + PHP5 + MySQL + XDebug & Eclipse + PDT + XDebug in Ubuntu 7.10 .
Let's start with ...
Install Subversion and Trac
1. Put trac, python and subversion:# apt-get install trac libapache2-svn subversion python-subversion libapache2-mod-python
2. Turn on the python module:
# a2enmod python
Configure Subversion
1. Create a group to work with SVN:# groupadd svn
2. Add yourself (your Ubuntu username) to the svn group:
# usermod -a -G svn имя_пользователя
3. Add apache to the svn group:
# usermod -a -G svn www-data
4. Create a folder for the future repository:
# mkdir /var/svn
5. Create a repository:
# svnadmin create /var/svn
6. Change permissions to the folder for access to users from the svn group:
# chown -R www-data:svn /var/svn
7. We allow the group and the owner to write:
# chmod -R g+ws /var/svn
8. Create a password to access the folder with the repository, which will later be used by apache:
# htpasswd -c -m /etc/apache2/svn.htpasswd имя_пользователя
9. Now create a rule for Apache to access the svn repository: 10. Restart the apache: 11. SVN is installed! It is available at localhost / svn
# nano /etc/apache2/conf.d/svn
DAV svn
SVNPath /var/svn
AuthType Basic
AuthName "SVN Repo"
AuthUserFile /etc/apache2/svn.htpasswd
Require valid-user
# service apache2 restart
Configure Trac
1. Create a folder for Trac:# mkdir /var/trac
2. Create an environment for Trac to work with SVN:
# trac-admin /var/trac initenv
3. Change the rights to the folder with trac:
# chown -R www-data:svn /var/trac; chmod -R g+ws /var/trac
4. Create a password for admin access to the folder with trac, which will later be used by apache 'em:
# htpasswd -c -m /etc/apache2/trac.htpasswd имя_пользователя
5. Let's create a rule for Apache to access trac: 6. Trac is installed! It is available at localhost / trac
# nano /etc/apache2/conf.d/trac
AuthType Basic
AuthName "Projects"
AuthUserFile /etc/apache2/trac.htpasswd
Require valid-user
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnv /var/trac
PythonOption TracUriRoot /trac
Installing the TracWebAdmin Plugin
Starting with Trac version 0.11, the TracWebAdmin plugin is integrated into the kernel and no additional gestures are required for installation. Now the stable version is considered 0.12.1. Add yourself to the trac admins:
# trac-admin /var/trac permission add имя_пользователя TRAC_ADMIN
yoreeq do not hit hard, plz;)
The Trac + SVN installation was taken from here: habrahabr.ru/post/20525
UPD [03/18/2012]: The article was updated in order to keep up with the times :)