Changes between Version 14 and Version 15 of TracOnDebianSarge
- Timestamp:
- Aug 31, 2005, 5:45:59 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracOnDebianSarge
v14 v15 19 19 Whether the above steps to get Edgewall's version instead of Debian's were followed or not, installing Trac should be as simple as installing the '''trac''' package. 20 20 21 == Debian Sarge 3.1 (stable)==22 If you have Debian Sarge 3.1 you can directly start from this line, after you've installed Apache2. From a basic installation of the final 3.1 stable, you'll need to install apache2, subversion, trac, and libapache2-svn.21 == Setting up Subversion and Trac == 22 From a basic installation of Sarge, you'll need to install apache2, subversion, trac, and libapache2-svn. If you have previously installed some portion of these, adapt as needed. 23 23 24 24 === Prerequisites === … … 31 31 }}} 32 32 33 * Getting Subversion working: 33 === Getting Subversion working === 34 34 35 35 To create a Subversion project at '''/var/svn/project''', issue these commands to get SVN up and running: 36 36 37 _Note:_As of this writing, the default Subversion package uses the BDB filesystem; if this is acceptable, feel free to omit the extra argument to '''svnadmin create'''.37 ''Note:'' As of this writing, the default Subversion package uses the BDB filesystem; if this is acceptable, feel free to omit the extra argument to '''svnadmin create'''. 38 38 39 39 {{{ … … 49 49 }}} 50 50 51 Add the following to '''/etc/apache2/sites-available/default''': 51 Add the following to '''/etc/apache2/sites-available/default''': 52 52 53 {{{ 53 54 #SVN dir … … 62 63 </Location> 63 64 }}} 64 Fix permissions to the repository, added user passwords, and restart apache2: 65 66 Fix permissions to the repository: 65 67 {{{ 66 68 $ find /var/svn/project -type f -exec chmod 660 {} \; … … 68 70 $ chown -R root.www-data /var/svn/project 69 71 }}} 70 Enable installed apache modules 72 73 Enable installed apache modules: 71 74 {{{ 72 75 $ a2enmod dav 73 76 $ a2enmod dav_fs 74 77 }}} 75 Add Subversion users. Note the different syntax for creating the first user from creating each additional user. 78 79 Add Subversion users. Note the different syntax for creating the first user from creating each additional user. 76 80 {{{ 77 81 cd /etc/apache2 … … 79 83 htpasswd2 svn.passwd user2 (you'll be prompted for the password) 80 84 }}} 81 Restart Apache2. 85 86 Restart Apache2. 82 87 83 88 {{{ … … 87 92 Go to !http://servername.foo.com/svn/project to see the empty directories as imported. Do not move on to the next step until this works correctly! 88 93 89 * Getting Trac running: 94 === Getting Trac running: === 90 95 91 These instructions will install a trac environment at '''/var/trac/project''', without using the mod_python extentions. Initialize the Trac environment with the following commands: 96 These instructions will install a trac environment at '''/var/trac/project''', without using the mod_python extentions. Initialize the Trac environment with the following commands: 97 92 98 {{{ 93 99 $ mkdir /var/trac … … 96 102 $ find /var/trac/project -type d -exec chmod 2770 {} \; 97 103 }}} 98 The '''trac-admin''' command above will prompt you to enter the project name, the path to the trac environment, and the path to the Trac templates directory; then it printed out a bunch of stuff.99 104 100 Next, edit '''/etc/apache2/sites-available/default'''. Comment out the existing {{{ScriptAlias}}} and {{{<Directory "/usr/lib/cgi-bin">}}} directives. To install trac at a URL like !http://servername.foo.com/proj , add this at the end: 105 The '''trac-admin''' command above will prompt you to enter the project name, the path to the trac environment, and the path to the Trac templates directory; then it printed out a bunch of stuff. 106 107 Next, edit '''/etc/apache2/sites-available/default'''. Comment out the existing {{{ScriptAlias}}} and {{{<Directory "/usr/lib/cgi-bin">}}} directives. To install trac at a URL like !http://servername.foo.com/proj , add this at the end: 108 101 109 {{{ 102 110 Alias /trac "/usr/share/trac/htdocs" … … 121 129 </Location> 122 130 }}} 123 Providing /etc/apache2/svn.passwd in the space above will allow you to use the same usernames and passwords in both Subversion and Trac. If you choose to authenticate, seperately, add Trac users, and restart Apache: 131 132 Providing '''/etc/apache2/svn.passwd''' in the space above will allow you to use the same usernames and passwords in both Subversion and Trac. 133 134 If you choose to authenticate seperately, add Trac users, and restart Apache: 124 135 {{{ 125 136 $ cd /var/www … … 128 139 $ apache2 -k restart 129 140 }}} 130 Finally, test by going to !http://servername.foo.com/proj/ 141 142 Finally, test by going to !http://servername.foo.com/proj/