Edgewall Software

Changes between Version 10 and Version 11 of TracOnArchLinux


Ignore:
Timestamp:
Apr 21, 2018, 11:26:27 AM (6 years ago)
Author:
figaro
Comment:

Cosmetic changes

Legend:

Unmodified
Added
Removed
Modified
  • TracOnArchLinux

    v10 v11  
    1 {{{#!div style="background-color: #ffd; border:1px outset #ddc; font-size: 85%"
    2 {{{#!div style="text-align:center"
    3 
     1{{{#!div style="background-color: #ffd; border:1px outset #ddc;"
    42**Caveat: this page is not necessarily up to date...**
    5 
    6 }}}
    73
    84As a general advice for any ''platform specific'' installation guide like this one, you should first make sure that the tips given here are not out of date with respect to the generic instructions given in TracInstall and TracUpgrade.
    95The latter are documenting either the latest stable version of Trac, or the one about to be released (0.12 as of this writing).
    10 If you're planning to install an older version of Trac, have a look at the corresponding archived pages, for example:
    11  - [[0.11/TracInstall]] and [[0.11/TracUpgrade]]
    12  - [[0.10/TracInstall]] and [[0.10/TracUpgrade]]
     6If you're planning to install an older version of Trac, have a look at the corresponding archived pages, for example [[0.11/TracInstall]] and [[0.11/TracUpgrade]]
    137}}}
    148
    159[[PageOutline(2-3)]]
    16 = Installing Trac on !ArchLinux for Multiple Projects using Mod_Python =
    17 [http://www.archlinux.org ArchLinux] is powered by a simple and lightweight package management system. It is release by rolling binary system.  Keep update by command line '''pacman -Syu''' will get the most recent version.
    18 
    19 In following steps, I set these variable for simply input
     10
     11= Installing Trac on !ArchLinux for Multiple Projects using Mod_Python
     12
     13[http://www.archlinux.org ArchLinux] uses a lightweight package management system. It is released by a rolling binary system. Keep your Arch-Linux system up to date by command line '''pacman -Syu''', which will retrieve the most recent versions of your packages.
     14
     15In the following steps, set these variables:
    2016{{{
    2117TROOT=/home/trac  # put the multiple trac project's db
     
    2420}}}
    2521
    26 == install packages ==
    27 === install depend packages from binary ===
     22== Install packages
     23
     24=== Install depend packages from binary
     25
    2826{{{
    2927pacman -S mod_python python-pysqlite subversion
    3028}}}
    31 === Download trac from binary ===
    32 Trac is already on community repository, check /etc/pacman.conf, make sure uncomment the following.
    33 {{{
     29
     30=== Download Trac from binary
     31
     32Trac is already on community repository, check /etc/pacman.conf, make sure uncomment the following:
     33{{{#!ini
    3434[community]
    3535# Add your preferred servers here, they will be used first
     
    3939SUPFILES=(arch extra !unstable community !testing)
    4040
    41 download and install it
     41Download and install it:
     42
    4243{{{
    4344pacman -S trac
    4445}}}
    4546
    46 === or, build trac from source ===
    47 if want the newest version trac.
    48 
    49 edit the /etc/abs/abs.conf, unmark the community
     47=== Or, build Trac from source
     48
     49If you want the newest version Trac, edit the /etc/abs/abs.conf, unmark the community:
    5050{{{
    5151SUPFILES=(arch extra !unstable community !testing)
    5252}}}
    5353
    54 {{{
     54{{{#!sh
    5555cd /var/abs/community/network/trac
    5656vi PKGBUILD  # modify the version to the newest version
     
    6161}}}
    6262
    63 == configure mod_python and svn_dav ==
    64 edit /etc/httpd/conf/httpd.conf, append following line
    65 {{{
     63== Configure mod_python and svn_dav
     64
     65Edit /etc/httpd/conf/httpd.conf, append following line:
     66{{{#!apache
    6667LoadModule python_module           modules/mod_python.so
    6768LoadModule dav_svn_module          modules/mod_dav_svn.so
     
    6970}}}
    7071
    71 use following line to restart apache, check /var/log/httpd/error.log, if failed
    72 {{{
     72Use following line to restart Apache, check /var/log/httpd/error.log if failed:
     73{{{#!sh
    7374/etc/rc.d/httpd restart
    7475}}}
    7576
    76 Tips: you can check it by http://your_server_ip/server-info after following config
    77 {{{
    78 edit /etc/httpd/conf/httpd.conf, uncomment following line
    79 Include /etc/httpd/conf/extra/httpd-info.conf
    80 
    81 edit /etc/httpd/conf/extra/httpd-info.conf, modify the "Allow from" to your client ip address
    82 }}}
    83 
    84 == setup subversion for each project ==
    85 {{{
     77'''Tips''': you can check it by http://your_server_ip/server-info after applying the following configuration:
     78 * Edit /etc/httpd/conf/httpd.conf, uncomment following line: Include /etc/httpd/conf/extra/httpd-info.conf
     79 * Edit /etc/httpd/conf/extra/httpd-info.conf, modify the "Allow from" to your client's IP address
     80
     81== Setup subversion for each project
     82
     83{{{#!sh
    8684mkdir -p $SROOT/$PRJ
    8785mkdir /tmp/$PRJ
     
    9492svn ls -v file://$SROOT/$PRJ   # check it
    9593}}}
    96 == setup trac db for each project ==
     94
     95== Setup the Trac database for each project
     96
    9797mkdir -p $TROOT
    9898
    99 setup by interactive questions
    100 {{{
     99Setup by interactive questions:
     100{{{#!sh
    101101trac-admin $TROOT/$PRJ initenv
    102102}}}
    103 or, by command line parameters
    104 {{{
     103
     104Or, by command line parameters:
     105{{{#!sh
    105106trac-admin $TROOT/$PRJ initenv $PRJ sqlite:db/trac.db svn $SROOT/$PRJ /usr/share/trac/templates
    106107}}}
    107 edit $TROOT/$PRJ/conf/trac.ini
    108 {{{
     108
     109Edit your `trac.ini` file:
     110{{{#!ini
    109111[header_logo]
    110112link = http://your_server_ip/trac
    111113[logging]
    112 log_type = file    <-- we need check log to figure out problems
     114log_type = file    # we need check log to figure out problems
    113115[project]
    114 url = http://your_server_ip/trac/project1  <-- change to $PRJ
    115 }}}
    116 == authentication ==
    117 === create password file ===
    118 {{{
     116url = http://your_server_ip/trac/project1  # change to $PRJ
     117}}}
     118
     119== Authentication
     120
     121=== Create password file
     122
     123{{{#!sh
    119124htpasswd -c /home/trac/.htpasswd admin  # create 'admin' account
    120125htpasswd /home/trac/.htpasswd new_user  # append a 'new_user' account
    121126}}}
    122 === create access file ===
    123 sample /home/svn/.svn.access
     127
     128=== Create access file
     129
     130Sample /home/svn/.svn.access:
    124131{{{
    125132[/]
     
    130137}}}
    131138
    132 == configure apache ==
    133 {{{
     139== Configure Apache as the web server
     140
     141{{{#!apache
    134142chown -R http.http $SROOT $TROOT  # allow httpd's owner 'http' could read/write
    135143
     
    177185}}}
    178186
     187Then restart your web server:
    179188{{{
    180189/etc/rc.d/httpd restart
     
    182191apachectl -k start
    183192}}}
    184 Now, you should be able to access Trac at http://you_server_ip/trac/$PRJ
    185 
    186 == access via https(optional) ==
    187 via https will be safer, but it may be slower.
    188 {{{
     193
     194Now, you should be able to access Trac at `http://your_server_ip/trac/$PRJ`.
     195
     196== Access via https (optional)
     197
     198Data traffic via https will be safer, but it may be slower. To configure https, enter the following commands:
     199
     200{{{#!sh
    189201cd /etc/httpd/conf  # must change to this directory before doing the mod_ssl.txt
    190202more mod_ssl.txt
    191203}}}
    192  1. following the instructions in mod_ssl.txt to generate key files.
     204
     205 1. Follow the instructions in mod_ssl.txt to generate key files.
    193206 1. Add the the lines of httpd-vhosts.conf to /etc/httpd/conf/extra/httpd-ssl.conf.
    194  1. uncomment the include /etc/httpd/conf/extra/httpd-ssl.conf in /etc/httpd/conf/httpd.conf
    195  1. restart apache by /etc/rc.d/httpd restart
     207 1. Uncomment the include /etc/httpd/conf/extra/httpd-ssl.conf in /etc/httpd/conf/httpd.conf.
     208 1. Restart Apache by /etc/rc.d/httpd restart.