Changes between Version 20 and Version 21 of TracOnRhel4
- Timestamp:
- Jun 29, 2006, 5:45:18 AM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracOnRhel4
v20 v21 68 68 Templates directory [/usr/share/trac/templates]> ''Enter to accept Default'' 69 69 }}} 70 ---------------------------------------------------------------------71 Project environment for 'projectA' created.72 70 73 71 ''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.'' … … 91 89 * `wiki-macros` - Environment-specific [wiki:WikiMacros Wiki macros]. 92 90 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.'' 94 92 95 93 == Apache Configuration == … … 99 97 100 98 {{{ 101 <Location / foobar>99 <Location /projectA> 102 100 SetHandler mod_python 103 101 PythonHandler trac.web.modpython_frontend 104 PythonOption TracEnv / srv/trac/foobar105 PythonOption TracUriRoot / foobar102 PythonOption TracEnv /opt/trac/projectA 103 PythonOption TracUriRoot /projectA 106 104 </Location> 107 <Location "/ foobar/login">105 <Location "/projectA/login"> 108 106 AuthType Basic 109 107 AuthName "trac" 110 AuthUserFile / src/trac/trac.htpasswd108 AuthUserFile /opt/trac/projectA.htpasswd 111 109 Require valid-user 112 110 </Location> 113 111 }}} 114 112 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). 113 The 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 115 We 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 }}} 116 120 117 121 You will need to restart apache after editing trac.conf: 118 119 122 {{{ 120 123 $ /sbin/service httpd restart … … 124 127 125 128 If 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/trac131 $ sudo chown -R apache /srv/svn132 }}}