Edgewall Software

Changes between Version 14 and Version 15 of TracOnDebianSarge


Ignore:
Timestamp:
Aug 31, 2005, 5:45:59 PM (19 years ago)
Author:
jim@…
Comment:

More formatting changes

Legend:

Unmodified
Added
Removed
Modified
  • TracOnDebianSarge

    v14 v15  
    1919Whether 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.
    2020
    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 ==
     22From 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.
    2323
    2424=== Prerequisites ===
     
    3131}}}
    3232
    33  * Getting Subversion working:
     33=== Getting Subversion working ===
    3434
    35    To create a Subversion project at '''/var/svn/project''', issue these commands to get SVN up and running:
     35To create a Subversion project at '''/var/svn/project''', issue these commands to get SVN up and running:
    3636
    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'''.
    3838
    3939{{{
     
    4949}}}
    5050
    51    Add the following to '''/etc/apache2/sites-available/default''':
     51Add the following to '''/etc/apache2/sites-available/default''':
     52
    5253{{{
    5354#SVN dir
     
    6263</Location>
    6364}}}
    64    Fix permissions to the repository, added user passwords, and restart apache2:
     65
     66Fix permissions to the repository:
    6567{{{
    6668  $ find /var/svn/project -type f -exec chmod 660 {} \;
     
    6870  $ chown -R root.www-data /var/svn/project
    6971}}}
    70    Enable installed apache modules
     72
     73Enable installed apache modules:
    7174{{{
    7275  $ a2enmod dav
    7376  $ a2enmod dav_fs
    7477}}}
    75    Add Subversion users.  Note the different syntax for creating the first user from creating each additional user.
     78
     79Add Subversion users.  Note the different syntax for creating the first user from creating each additional user.
    7680{{{
    7781cd /etc/apache2
     
    7983htpasswd2 svn.passwd user2 (you'll be prompted for the password)
    8084}}}
    81    Restart Apache2.
     85
     86Restart Apache2.
    8287
    8388{{{
     
    8792Go 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!
    8893
    89  * Getting Trac running:
     94=== Getting Trac running: ===
    9095 
    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:
     96These 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
    9298{{{
    9399  $ mkdir /var/trac
     
    96102  $ find /var/trac/project -type d -exec chmod 2770 {} \;
    97103}}}
    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.
    99104
    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:
     105The '''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
     107Next, 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
    101109{{{
    102110Alias /trac "/usr/share/trac/htdocs"
     
    121129</Location>
    122130}}}
    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
     132Providing '''/etc/apache2/svn.passwd''' in the space above will allow you to use the same usernames and passwords in both Subversion and Trac. 
     133
     134If you choose to authenticate seperately, add Trac users, and restart Apache:
    124135{{{
    125136  $ cd /var/www
     
    128139  $ apache2 -k restart
    129140}}}
    130    Finally, test by going to !http://servername.foo.com/proj/
     141
     142Finally, test by going to !http://servername.foo.com/proj/