Edgewall Software

Changes between Version 6 and Version 7 of TracOnRHEL


Ignore:
Timestamp:
Feb 9, 2011, 5:29:37 PM (13 years ago)
Author:
valentin@…
Comment:

do it wikied !

Legend:

Unmodified
Added
Removed
Modified
  • TracOnRHEL

    v6 v7  
    33Installing Trac On RHEL 4 (and higher), is easy with Yum.
    44
    5 1) If you haven't already installed Yum, do so as appropriate for your operating system.
    6 
    7 2) If you haven't registered the RPMforge repository with your installation of Yum, look at [http://rpm.pbone.net] and install the rpmforge-release package for your particular version of RHEL.
    8 
    9 3) Run the following command in a terminal window:
    10 
     51. If you haven't already installed Yum, do so as appropriate for your operating system.
     61. If you haven't registered the RPMforge repository with your installation of Yum, look at [http://rpm.pbone.net] and install the rpmforge-release package for your particular version of RHEL.
     71. Run the following command in a terminal window:
    118{{{
    129  $ sudo yum install trac
    13 }}}
    14 
    15 Yum will take care of all dependencies on which the Trac package depends (including the python-clearsilver package) and will fetch and install them for you automatically.
    16 
    17 Note: With the current (0.11.5) version in RPMforge the mod_python dependency is missing, so if you haven't already installed mod_python you also need to do:
     10}}}
     11 Yum will take care of all dependencies on which the Trac package depends (including the python-clearsilver package) and will fetch and install them for you automatically.
     12 Note: With the current (0.11.5) version in RPMforge the mod_python dependency is missing, so if you haven't already installed mod_python you also need to do:
    1813{{{
    1914  $ sudo yum install mod_python
    2015}}}
    21  
    22 4) Create a new project environment. An environment is basically a directory that contains a human-readable configuration file and various other files and directories.
    23 
    24 Create a subversion repository if you don't already have one, for example in ''/srv/svn'':
     161. Create a new project environment. An environment is basically a directory that contains a human-readable configuration file and various other files and directories.
     17 a. Create a subversion repository if you don't already have one, for example in ''/srv/svn'':
    2518{{{
    2619 $ sudo mkdir -p /var/www/svn/foobar
    2720 $ sudo svnadmin create  --fs-type fsfs /var/www/svn/foobar
    2821}}}
    29 
    30 Next you need to decide where to store your trac project and create the directory, for example in the new directory /srv/trac:
     22 a. Next you need to decide where to store your trac project and create the directory, for example in the new directory /srv/trac:
    3123{{{
    3224 $ sudo mkdir -p  /var/www/trac
    3325}}}
    34 
    35 Then create a new environment using [wiki:TracAdmin trac-admin], as in this example for project ''foobar''
     26 a. Then create a new environment using [wiki:TracAdmin trac-admin], as in this example for project ''foobar''
    3627{{{
    3728 $ sudo trac-admin /var/www/trac/foobar initenv
    3829}}}
    39 
    40 Now make it owned by apache:
     30 a. Now make it owned by apache:
    4131{{{
    4232 $ sudo chown -R apache:apache /var/www/trac/foobar
    4333 $ sudo chown -R apache:apache /var/www/svn/foobar
    4434}}}
    45 
    46 5) Next, you need to edit the file ''/etc/httpd/conf.d/trac.conf'' to point to your new project
    47 environment, as in this example (using mod_python):
    48 
     351. Next, you need to edit the file ''/etc/httpd/conf.d/trac.conf'' to point to your new project environment, as in this example (using mod_python):
    4936{{{
    5037# The Location is the part after the host (http://example.com<Location>) that