Changes between Version 31 and Version 32 of TracOnRedhat
- Timestamp:
- Oct 26, 2015, 8:28:28 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracOnRedhat
v31 v32 1 [[PageOutline]] 2 = Installing Trac on Red Hat Linux = 3 4 '''WARNING: please note that those instructions were written for Trac 0.9. If you want to install Trac 0.10, please start with the generic TracInstall instructions. In particular note that the versions of the dependent packages indicated here are way obsolete.''' 1 [[PageOutline(2-5,Contents,pullout)]] 2 3 = Installing Trac on Red Hat Linux 4 5 '''WARNING''': Please note that these instructions were written for Trac 0.9. If you want to install Trac 0.10, please start with the generic TracInstall instructions. In particular note that the versions of the dependent packages indicated here are obsolete. 5 6 6 7 Succesful installs were reported on the these flavours of Red Hat: … … 10 11 * [wiki:TracOnRhel3 Red Hat Enterprise Linux 3 (RHEL3)] 11 12 12 ---- 13 14 == Packages Needed & Preparation == 13 == Packages Needed and Preparation 14 15 15 The following are the packages needed to install Trac 0.9.3 successfully: 16 16 * clearsilver-0.9.3.tar.gz … … 24 24 * trac-0.9.3.tar.gz 25 25 26 You need Python-2.3.5 because the version in Red Hat Linux 9 is Python-2.2.2-26 27 After obtaining the packages, put all the packages in /usr/local/RH9 directory28 (You need to create RH9 directory yourself) 26 You need Python-2.3.5 because the version in Red Hat Linux 9 is Python-2.2.2-26. 27 After obtaining the packages, put all the packages in `/usr/local/RH9 directory`. 28 You need to create RH9 directory yourself. 29 29 30 30 You must add the following line to the "/etc/ld.so.conf" file: 31 {{{ 31 {{{#!sh 32 32 /usr/local/lib 33 33 }}} 34 34 35 == Installation ==36 37 === Install Python ===38 {{{ 39 #!sh35 == Installation 36 37 === Install Python 38 39 {{{#!sh 40 40 $ cd /usr/local/RH9 41 41 $ tar xjf Python-2.3.5.tar.bz2 … … 47 47 }}} 48 48 49 === Install Apache ===50 {{{ 51 #!sh49 === Install Apache 50 51 {{{#!sh 52 52 $ cd /usr/local/RH9 53 53 $ tar xjf httpd-2.0.52.tar.bz2 … … 59 59 }}} 60 60 61 === Install SWIG ===62 {{{ 63 #!sh61 === Install SWIG 62 63 {{{#!sh 64 64 $ cd /usr/local/RH9 65 65 $ tar xzf swig-1.3.21.tar.gz … … 73 73 }}} 74 74 75 76 77 === Install Subversion === 78 {{{ 79 #!sh 75 === Install Subversion 76 77 {{{#!sh 80 78 $ cd /usr/local/RH9 81 79 $ tar xzf subversion-1.3.0.tar.gz … … 91 89 }}} 92 90 93 94 95 === Install Sqlite === 96 {{{ 97 #!sh 91 === Install Sqlite 92 93 {{{#!sh 98 94 $ cd /usr/local/RH9 99 95 $ tar xzf sqlite-2.8.16.tar.gz … … 105 101 }}} 106 102 107 108 109 === Install SilverCity === 110 {{{ 111 #!sh 103 === Install SilverCity 104 105 {{{#!sh 112 106 $ cd /usr/local/RH9 113 107 $ tar xzf SilverCity-0.9.5.tar.gz … … 118 112 }}} 119 113 120 121 === Install ClearSilver === 122 {{{ 123 #!sh 114 === Install ClearSilver 115 116 {{{#!sh 124 117 $ cd /usr/local/RH9 125 118 $ tar xzf clearsilver-0.9.3.tar.gz … … 133 126 }}} 134 127 135 136 === Install PySqlite === 137 {{{ 138 #!sh 128 === Install PySqlite 129 130 {{{#!sh 139 131 $ cd /usr/local/RH9 140 132 $ tar xzf pysqlite-1.0.1.tar.gz … … 145 137 }}} 146 138 147 148 149 === Install Trac === 150 {{{ 151 #!sh 139 === Install Trac 140 141 {{{#!sh 152 142 $ cd /usr/local/RH9 153 143 $ tar xzf trac-0.9.3.tar.gz … … 158 148 }}} 159 149 160 161 === Finalize Installation === 162 163 ==== Fix libsvn paths ==== 150 === Finalize Installation 151 152 ==== Fix libsvn paths 153 164 154 This will create symbolic a link for then libsvn library to the Python 2.3 library 165 {{{ 166 #!sh 155 {{{#!sh 167 156 $ cd /usr/local/lib/python2.3/site-packages 168 157 $ ln -s /usr/local/lib/svn-python svn-python … … 172 161 }}} 173 162 174 ==== Create the Subversion repository ====175 {{{ 176 #!sh163 ==== Create the Subversion repository 164 165 {{{#!sh 177 166 $ svnadmin create --fs-type=fsfs /var/svn 178 167 }}} 179 168 180 ==== Create the Trac environment ==== 169 ==== Create the Trac environment 170 181 171 You will see the following message below and follow what my options showed: 182 {{{ 183 #!sh 172 {{{#!sh 184 173 $ trac-admin /var/trac initenv 185 174 /usr/local/lib/python2.3/site-packages/libsvn/core.py:5: RuntimeWarning: Python C API version mismatch for module _core: This Python has API version 1012, module _core has version 1011. … … 243 232 }}} 244 233 245 == Configuration == 246 === Configuring Apache === 234 == Configuration 235 236 === Configuring Apache 237 247 238 Add the following section into your "/usr/local/apache/conf/httpd.conf" file 248 {{{ 239 {{{#!apache 249 240 Alias /trac "/usr/local/share/trac/htdocs/" 250 241 <Location "/cgi-bin/trac.cgi"> … … 261 252 }}} 262 253 263 === Configuring passwords === 254 === Configuring passwords 255 264 256 Create the "trac.htpasswd" file 265 {{{ 266 #!sh 257 {{{#!sh 267 258 $ cd /var/trac/conf 268 259 $ /usr/local/apache2/bin/htpasswd -c htpasswd admin … … 271 262 You can add more users by using: {{{/usr/local/apache2/bin/htpasswd htpasswd username}}} 272 263 273 === Configuring file permissions === 264 === Configuring file permissions 265 274 266 Change the permissions on the Trac environment so Apache has read/write access to the trac.db file 275 {{{ 276 #!sh 267 {{{#!sh 277 268 $ chmod -Rv a+rw /var/trac 278 269 }}} 279 270 280 === Copy trac.cgi === 271 === Copy trac.cgi 272 281 273 Copy {{{trac.cgi}}} to the directory {{{/usr/local/apache2/cgi-bin}}} 282 {{{ 283 #!sh 274 {{{#!sh 284 275 $ cd /usr/local/apache2/cgi-bin 285 276 $ cp /usr/local/share/trac/cgi-bin/trac.cgi . 286 277 }}} 287 278 288 289 == Congratulations == 279 == Congratulations 280 290 281 Start Apache and point your web browser at "localhost/cgi-bin/trac.cgi" 291 {{{ 292 #!sh 282 {{{#!sh 293 283 $ /usr/local/apache2/bin/httpd 294 284 }}}