Edgewall Software

Changes between Version 31 and Version 32 of TracOnRedhat


Ignore:
Timestamp:
Oct 26, 2015, 8:28:28 PM (4 years ago)
Author:
figaro
Comment:

Cosmetic changes

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.
    56
    67Succesful installs were reported on the these flavours of Red Hat:
     
    1011 * [wiki:TracOnRhel3 Red Hat Enterprise Linux 3 (RHEL3)]
    1112
    12 ----
    13 
    14 == Packages Needed & Preparation ==
     13== Packages Needed and Preparation
     14
    1515The following are the packages needed to install Trac 0.9.3 successfully:
    1616 * clearsilver-0.9.3.tar.gz
     
    2424 * trac-0.9.3.tar.gz
    2525
    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)
     26You need Python-2.3.5 because the version in Red Hat Linux 9 is Python-2.2.2-26.
     27After obtaining the packages, put all the packages in `/usr/local/RH9 directory`.
     28You need to create RH9 directory yourself.
    2929
    3030You must add the following line to the "/etc/ld.so.conf" file:
    31 {{{
     31{{{#!sh
    3232/usr/local/lib
    3333}}}
    3434
    35 == Installation ==
    36 
    37 === Install Python ===
    38 {{{
    39 #!sh
     35== Installation
     36
     37=== Install Python
     38
     39{{{#!sh
    4040$ cd /usr/local/RH9
    4141$ tar xjf Python-2.3.5.tar.bz2
     
    4747}}}
    4848
    49 === Install Apache ===
    50 {{{
    51 #!sh
     49=== Install Apache
     50
     51{{{#!sh
    5252$ cd /usr/local/RH9
    5353$ tar xjf httpd-2.0.52.tar.bz2
     
    5959}}}
    6060
    61 === Install SWIG ===
    62 {{{
    63 #!sh
     61=== Install SWIG
     62
     63{{{#!sh
    6464$ cd /usr/local/RH9
    6565$ tar xzf swig-1.3.21.tar.gz
     
    7373}}}
    7474
    75 
    76 
    77 === Install Subversion ===
    78 {{{
    79 #!sh
     75=== Install Subversion
     76
     77{{{#!sh
    8078$ cd /usr/local/RH9
    8179$ tar xzf subversion-1.3.0.tar.gz
     
    9189}}}
    9290
    93 
    94 
    95 === Install Sqlite ===
    96 {{{
    97 #!sh
     91=== Install Sqlite
     92
     93{{{#!sh
    9894$ cd /usr/local/RH9
    9995$ tar xzf sqlite-2.8.16.tar.gz
     
    105101}}}
    106102
    107 
    108 
    109 === Install SilverCity ===
    110 {{{
    111 #!sh
     103=== Install SilverCity
     104
     105{{{#!sh
    112106$ cd /usr/local/RH9
    113107$ tar xzf SilverCity-0.9.5.tar.gz
     
    118112}}}
    119113
    120 
    121 === Install ClearSilver ===
    122 {{{
    123 #!sh
     114=== Install ClearSilver
     115
     116{{{#!sh
    124117$ cd /usr/local/RH9
    125118$ tar xzf clearsilver-0.9.3.tar.gz
     
    133126}}}
    134127
    135 
    136 === Install PySqlite ===
    137 {{{
    138 #!sh
     128=== Install PySqlite
     129
     130{{{#!sh
    139131$ cd /usr/local/RH9
    140132$ tar xzf pysqlite-1.0.1.tar.gz
     
    145137}}}
    146138
    147 
    148 
    149 === Install Trac ===
    150 {{{
    151 #!sh
     139=== Install Trac
     140
     141{{{#!sh
    152142$ cd /usr/local/RH9
    153143$ tar xzf trac-0.9.3.tar.gz
     
    158148}}}
    159149
    160 
    161 === Finalize Installation ===
    162 
    163 ==== Fix libsvn paths ====
     150=== Finalize Installation
     151
     152==== Fix libsvn paths
     153
    164154This will create symbolic a link for then libsvn library to the Python 2.3 library
    165 {{{
    166 #!sh
     155{{{#!sh
    167156$ cd /usr/local/lib/python2.3/site-packages
    168157$ ln -s /usr/local/lib/svn-python svn-python
     
    172161}}}
    173162
    174 ==== Create the Subversion repository ====
    175 {{{
    176 #!sh
     163==== Create the Subversion repository
     164
     165{{{#!sh
    177166$ svnadmin create --fs-type=fsfs /var/svn
    178167}}}
    179168
    180 ==== Create the Trac environment ====
     169==== Create the Trac environment
     170
    181171You will see the following message below and follow what my options showed:
    182 {{{
    183 #!sh
     172{{{#!sh
    184173$ trac-admin /var/trac initenv
    185174/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.
     
    243232}}}
    244233
    245 == Configuration ==
    246 ===  Configuring Apache ===
     234== Configuration
     235
     236===  Configuring Apache
     237
    247238Add the following section into your "/usr/local/apache/conf/httpd.conf" file
    248 {{{
     239{{{#!apache
    249240Alias /trac "/usr/local/share/trac/htdocs/"
    250241<Location "/cgi-bin/trac.cgi">
     
    261252}}}
    262253
    263 === Configuring passwords ===
     254=== Configuring passwords
     255
    264256Create the "trac.htpasswd" file
    265 {{{
    266 #!sh
     257{{{#!sh
    267258$ cd /var/trac/conf
    268259$ /usr/local/apache2/bin/htpasswd -c htpasswd admin
     
    271262You can add more users by using: {{{/usr/local/apache2/bin/htpasswd htpasswd username}}}
    272263
    273 === Configuring file permissions ===
     264=== Configuring file permissions
     265
    274266Change the permissions on the Trac environment so Apache has read/write access to the trac.db file
    275 {{{
    276 #!sh
     267{{{#!sh
    277268$ chmod -Rv a+rw /var/trac
    278269}}}
    279270
    280 === Copy trac.cgi ===
     271=== Copy trac.cgi
     272
    281273Copy {{{trac.cgi}}} to the directory {{{/usr/local/apache2/cgi-bin}}}
    282 {{{
    283 #!sh
     274{{{#!sh
    284275$ cd /usr/local/apache2/cgi-bin
    285276$ cp /usr/local/share/trac/cgi-bin/trac.cgi .
    286277}}}
    287278
    288 
    289 == Congratulations ==
     279== Congratulations
     280
    290281Start Apache and point your web browser at "localhost/cgi-bin/trac.cgi"
    291 {{{
    292 #!sh
     282{{{#!sh
    293283$ /usr/local/apache2/bin/httpd
    294284}}}