Edgewall Software

Changes between Version 2 and Version 3 of TracOnArchLinux


Ignore:
Timestamp:
Jun 25, 2007, 5:57:10 PM (17 years ago)
Author:
dlin.tw@…
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • TracOnArchLinux

    v2 v3  
    1313=== install depend packages from binary ===
    1414{{{
    15 pacman -S mod_python python-pysqlite
     15pacman -S mod_python python-pysqlite subversion
    1616}}}
    1717=== Download trac from binary ===
     
    5050edit /etc/httpd/conf/httpd.conf, append following line
    5151{{{
    52 LoadModule python_module /usr/lib/apache/mod_python.so
     52LoadModule python_module modules/mod_python.so
    5353}}}
    5454
     
    6060Tips: you can check it by http://your_server_ip/server-info after following config
    6161{{{
    62 edit /etc/httpd/conf/httpd.conf uncomment following line
     62edit /etc/httpd/conf/httpd.conf, uncomment following line
    6363Include /etc/httpd/conf/extra/httpd-info.conf
    6464
    65 edit /etc/httpd/conf/extra/httpd-info.conf modify the "Allow from" to your client ip address
     65edit /etc/httpd/conf/extra/httpd-info.conf, modify the "Allow from" to your client ip address
    6666}}}
    6767
    6868== setup subversion for each project ==
     69{{{
    6970mkdir -p $SROOT/$PRJ
    7071mkdir /tmp/$PRJ
     
    7677rm -rf /tmp/$PRJ
    7778svn ls -v file://$SROOT/$PRJ   # check it
    78 
     79}}}
    7980== setup trac db for each project ==
    8081mkdir -p $TROOT
     
    8889trac-admin $TROOT/$PRJ initenv $PRJ sqlite:db/trac.db svn $SROOT/$PRJ /usr/share/trac/templates
    8990}}}
    90 
     91edit $TROOT/$PRJ/conf/trac.ini
     92{{{
     93[header_logo]
     94link = http://your_server_ip/prjs
     95[logging]
     96log_type = file    <-- we need check log to figure out problems
     97[project]
     98url = http://your_server_ip/prjs/project1  <-- change to $PRJ
     99}}}
    91100== configure apache ==
    92101{{{
     
    98107edit /etc/httpd/conf/extra/httpd-vhosts.conf, append following lines
    99108<VirtualHost *:80>
    100     ServerAdmin dlin@mail.taifex.com.tw
    101     DocumentRoot /home/trac/
    102     ServerName 192.168.13.203
     109    ServerAdmin your_name@email.address
     110    DocumentRoot /home/trac/  # <- change to $TROOT
     111    ServerName your_server_ip
    103112    ErrorLog /var/log/httpd/trac.error_log
    104113    CustomLog /var/log/httpd/trac.access_log common
     
    112121}}}
    113122
     123to be continue...