Changes between Version 1 and Version 2 of TracOnRHEL
- Timestamp:
- Jul 5, 2007, 3:47:49 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracOnRHEL
v1 v2 5 5 1) If you haven't already installed Yum and added access to the RPMforge repository, look at [http://rpm.pbone.net] and install the rpmforge-release package for your particular version of RHEL. Then 6 6 7 1) Verify you have configured Yum to use the rpmforge repository. An RPM to configure this is easily accessible from [http://rpm.pbone.net] Then run the following command in a terminal window:7 2) Verify you have configured Yum to use the rpmforge repository. An RPM to configure this is easily accessible from [http://rpm.pbone.net] Then run the following command in a terminal window: 8 8 9 9 {{{ … … 47 47 PythonHandler trac.web.modpython_frontend 48 48 # "/var/www/svn/foobar" is the folder you gave to trac-admin initenv earlier 49 PythonOption TracEnv / srv/trac/foobar49 PythonOption TracEnv /var/www/trac/foobar 50 50 # "/trac" is the same as the Location above 51 51 PythonOption TracUriRoot /trac … … 64 64 }}} 65 65 66 The example above assumes you have a trac project environment setup in ''/var/www/trac/foobar/'' directory, described in step 2 and an htpasswd file at /var/www/trac/foobar/conf/trac.htpasswd for authentication purposes (see also wiki:TracModPython (too generic)). 66 = Apache Authentication = 67 68 The example above assumes you have a trac project environment setup in ''/var/www/trac/foobar/'' directory, described in step 2 and an htpasswd file at /var/www/trac/foobar/conf/trac.htpasswd for authentication purposes (see also wiki:TracModPython (too generic)). 69 70 There are numerous other ways to authenticate users, but if you care about security ''do not'' use the same authentication for comand line Subversion clients as you do for Trac. This is because Subversion keeps its passwords for command lines locally, in your home directory, in clear text. 71 72 = Activating the web server 67 73 68 74 You will need to tell Apache to reload configuration after editing trac.conf: … … 85 91 == SELinux == 86 92 87 RHEL now ships with SELinux enabled by default. You need to make the Trac and Subversion directory accessible to the webserver. If you keep these contents under {{{/var/www/trac}}} and {{{/var/www/svn}}} to follow RedHat's standard for location of web contents, you don't need to do anything else.93 RHEL now ships with SELinux enabled by default. This means you need to make the Trac and Subversion directory accessible to the webserver. If you keep these contents under {{{/var/www/trac}}} and {{{/var/www/svn}}}, you don't need to do anything else. 88 94 89 But if you want an alternative location such as {{{/srv}}}, follow thiese guidelines and read the notes at [http://fedora.redhat.com/docs/selinux-apache-fc3/] for details.95 If you want an alternative location such as {{{/srv}}} or {{{opt}}}, and many installers have their own ideas about where these should go, follow thiese guidelines and read the notes at [http://fedora.redhat.com/docs/selinux-apache-fc3/] for details. 90 96 91 97 {{{ … … 94 100 }}} 95 101 96 If you put these under {{{/srv/www/trac}}} and {{{/srv/www/svn}}} instead, the {{{restorecon}}} command will know that these attributes should be preserved. Alternatively, you can teach {{{restorecon}}} about these two directories by adding the lines:102 If you put these under {{{/srv/www/trac}}} and {{{/srv/www/svn}}} instead, the {{{restorecon}}} command will know that these attributes should be preserved. Alternatively, you can teach {{{restorecon}}} about these two directories by adding these lines to the file {{{/etc/selinux/targeted/contexts/files/filecontexts.local}}} 97 103 98 104 {{{ … … 101 107 }}} 102 108 103 to the file {{{/etc/selinux/targeted/contexts/files/filecontexts.local}}}. You may need to create this file if it is not already present.109 You may need to create this file if it is not already present: it's not present by default.