Edgewall Software

Changes between Version 20 and Version 21 of TracOnRhel4


Ignore:
Timestamp:
Jun 29, 2006, 5:45:18 AM (18 years ago)
Author:
anonymous
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • TracOnRhel4

    v20 v21  
    6868Templates directory [/usr/share/trac/templates]> ''Enter to accept Default''
    6969}}}
    70 ---------------------------------------------------------------------
    71 Project environment for 'projectA' created.
    7270
    7371''Note: The web server user will require file system write permission to the environment directory and all the files inside. Please remember to set the appropriate permissions. The same applies to the Subversion repository Trac is eventually using, although Trac will only require read access as long as you're not using the BDB file system.''
     
    9189 * `wiki-macros` - Environment-specific [wiki:WikiMacros Wiki macros].
    9290
    93   '''Note: don't confuse a Trac environment directory with the Source Code Repository directory. It happens that the above structure is loosely modelled after the Subversion repository directory structure, but they are not and ''must not'' be located at the same place.'''
     91''Note: don't confuse a Trac environment directory with the Source Code Repository directory. It happens that the above structure is loosely modelled after the Subversion repository directory structure, but they are not and must not be located at the same place.''
    9492
    9593== Apache Configuration ==
     
    9997
    10098{{{
    101  <Location /foobar>
     99 <Location /projectA>
    102100   SetHandler mod_python
    103101   PythonHandler trac.web.modpython_frontend
    104    PythonOption TracEnv /srv/trac/foobar
    105    PythonOption TracUriRoot /foobar
     102   PythonOption TracEnv /opt/trac/projectA
     103   PythonOption TracUriRoot /projectA
    106104 </Location>
    107  <Location "/foobar/login">
     105 <Location "/projectA/login">
    108106   AuthType Basic
    109107   AuthName "trac"
    110    AuthUserFile /src/trac/trac.htpasswd
     108   AuthUserFile /opt/trac/projectA.htpasswd
    111109   Require valid-user
    112110 </Location>
    113111}}}
    114112
    115 The example above assumes you have a trac project environment setup in ''/srv/trac/foobar/'' directory, described in step 2 and a htpasswd file in /src/trac/trac.htpasswd for authentication purposes (see also wiki:TracModPython).
     113The example above assumes you have a trac project environment setup in ''/opt/trac/projectA/'' directory and a htpasswd file in /opt/trac/projectA.htpasswd for authentication purposes (see also wiki:TracModPython).
     114
     115We also need to give the apache user ownership of the trac environment and subversion repository
     116{{{
     117 $ chown -R root:webserv /opt/trac
     118 $ chown -R root:webserv /opt/subversion/repos
     119}}}
    116120
    117121You will need to restart apache after editing trac.conf:
    118 
    119122{{{
    120123  $ /sbin/service httpd restart
     
    124127
    125128If you're installing any trac plugins, keep in mind that RHEL4 ships with Python 2.3. You can also find a python-setuptools rpm at http://install.linux.ncsu.edu/pub/yum/CLS/CLSTools.EL4/repodata/index.html
    126 
    127 Now make it owned by apache:
    128 
    129 {{{
    130  $ sudo chown -R apache /srv/trac
    131  $ sudo chown -R apache /srv/svn
    132 }}}