Changes between Version 6 and Version 7 of TracOnRHEL
- Timestamp:
- Feb 9, 2011, 5:29:37 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracOnRHEL
v6 v7 3 3 Installing Trac On RHEL 4 (and higher), is easy with Yum. 4 4 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 5 1. If you haven't already installed Yum, do so as appropriate for your operating system. 6 1. 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. 7 1. Run the following command in a terminal window: 11 8 {{{ 12 9 $ 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: 18 13 {{{ 19 14 $ sudo yum install mod_python 20 15 }}} 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'': 16 1. 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'': 25 18 {{{ 26 19 $ sudo mkdir -p /var/www/svn/foobar 27 20 $ sudo svnadmin create --fs-type fsfs /var/www/svn/foobar 28 21 }}} 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: 31 23 {{{ 32 24 $ sudo mkdir -p /var/www/trac 33 25 }}} 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'' 36 27 {{{ 37 28 $ sudo trac-admin /var/www/trac/foobar initenv 38 29 }}} 39 40 Now make it owned by apache: 30 a. Now make it owned by apache: 41 31 {{{ 42 32 $ sudo chown -R apache:apache /var/www/trac/foobar 43 33 $ sudo chown -R apache:apache /var/www/svn/foobar 44 34 }}} 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 35 1. 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): 49 36 {{{ 50 37 # The Location is the part after the host (http://example.com<Location>) that