Edgewall Software

Changes between Version 1 and Version 2 of TracOnRHEL


Ignore:
Timestamp:
Jul 5, 2007, 3:47:49 AM (17 years ago)
Author:
nkadel@…
Comment:

Provide more RHEL specific details: correct numbering of listed components.

Legend:

Unmodified
Added
Removed
Modified
  • TracOnRHEL

    v1 v2  
    551) 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
    66
    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:
     72) 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:
    88
    99{{{
     
    4747   PythonHandler trac.web.modpython_frontend
    4848   # "/var/www/svn/foobar" is the folder you gave to trac-admin initenv earlier
    49    PythonOption TracEnv /srv/trac/foobar
     49   PythonOption TracEnv /var/www/trac/foobar
    5050   # "/trac" is the same as the Location above
    5151   PythonOption TracUriRoot /trac
     
    6464}}}
    6565
    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
     68The 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
     70There 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
    6773
    6874You will need to tell Apache to reload configuration after editing trac.conf:
     
    8591== SELinux ==
    8692
    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.
     93RHEL 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.
    8894
    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.
     95If 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.
    9096
    9197{{{
     
    94100}}}
    95101
    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:
     102If 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}}}
    97103
    98104{{{
     
    101107}}}
    102108
    103 to the file {{{/etc/selinux/targeted/contexts/files/filecontexts.local}}}. You may need to create this file if it is not already present.
     109You may need to create this file if it is not already present: it's not present by default.