Edgewall Software

Changes between Version 14 and Version 15 of Ubuntu-11.10


Ignore:
Timestamp:
Dec 20, 2015, 3:32:47 PM (8 years ago)
Author:
figaro
Comment:

Cosmetic changes

Legend:

Unmodified
Added
Removed
Modified
  • Ubuntu-11.10

    v14 v15  
    1 How to install Trac 0.12 on ubuntu 11.10 machine with apache2 using wsgi. (everytime I use vim you can use any editor you want (nano, gedit..))
     1= How to install Trac 0.12 on Ubuntu 11.10 with Apache2 using WSGI
    22
    3 '''Install trac''' (and usefull plugins) from repository:
     3{{{#!div class="system-message"
     4'''Notice''': These instructions are incomplete. See http://robertbasic.com/blog/trac-on-ubuntu for more detailed instructions.
     5}}}
    46
    5 {{{
     7Every time I use vim you can use any editor you want, such as nano or gedit.
     8
     9'''Install Trac''' (and useful plugins) from repository:
     10
     11{{{#!sh
    612sudo apt-get install trac trac-accountmanager trac-graphviz trac-icalviewplugin trac-mastertickets trac-wysiwyg trac-wikitablemacro trac-tags trac-customfieldadmin trac-datefieldplugin
    713}}}
    814
    9 If you're going to use sqlite for db (as I do) install python-sqlite:
     15If you're going to use sqlite for database, then install python-sqlite:
    1016
    11 {{{
     17{{{#!sh
    1218sudo apt-get install sqlite3 python-sqlite
    1319}}}
    1420
     21'''Install sendmail''' (if not installed already):
    1522
    16 '''install sendmail''' (if not installed already):
    17 
    18 {{{
     23{{{#!sh
    1924sudo apt-get install sendmail
    2025}}}
    2126
    22 '''add trac user:'''
     27'''Add Trac user:'''
    2328
    24 {{{
     29{{{#!sh
    2530sudo adduser --system --shell /bin/sh --gecos 'trac project managment' --group --disabled-password --home /var/trac trac
    2631}}}
    2732
    28 '''add www-data to trac group''' so apache can access trac files
     33'''Add www-data to Trac group''' so Apache can access Trac files
    2934
    30 {{{
     35{{{#!sh
    3136sudo adduser www-data trac
    3237}}}
    3338
     39'''Login as Trac user''' start bash and swich to homedir:
    3440
    35 '''login as trac user''' start bash and swich to homedir:
    36 
    37 {{{
     41{{{#!sh
    3842sudo su trac
    3943bash
     
    4145}}}
    4246
    43 '''make directory for all projects and create new project'''
     47'''Make directory for all projects and create new project'''
    4448
    45 {{{
     49{{{#!sh
    4650mkdir projects
    4751cd projects
     
    5155and finish instalation
    5256
    53 '''change permissions so group can write/read/execute'''
     57'''Change permissions so group can write/read/execute'''
    5458
    55 {{{
     59{{{#!sh
    5660chmod 0775 . -R
    5761}}}
    5862
    59 You can add as many projects as you want. And even later, all you have to do create new project, deploy it and you're set.
     63You can add as many projects as you want. And even later, all you have to do to create a new project, deploy it and you're set.
    6064
    61 '''back to your user'''.
    62 pressing CTRL+d twice should get you back.
     65'''Back to your user'''.
     66pressing Ctrl-D twice should get you back.
    6367
    64 now we'll configure apache
     68Now we'll configure Apache.
    6569
    66 Open apache apache site file what you want to use for trac (default should be fine). In my case I have Virtualhost for subdomain trac.
     70Open apache apache site file what you want to use for Trac (default should be fine). In my case I have Virtualhost for subdomain Trac.
    6771
    68 {{{
     72{{{#!sh
    6973vim /etc/apache2/sites-enabled/trac
    7074}}}
     75
    7176and looks like:
    7277
    73 {{{
     78{{{#!apache
    7479<VirtualHost *>
    7580  ServerName trac.domain.my
     
    97102}}}
    98103
    99 WSGIScriptAlias does all the magic. it gets project name from url and redirects to trac.wsgi in that project.
    100 If you're not running trac sites as subdomain but as folder in your documentroot (i.e. domain.ur/trac/myproject) replace
    101 {{{
     104WSGIScriptAlias does all the magic. It gets its project name from url and redirects to trac.wsgi in that project.
     105If you're not running Trac sites as a subdomain but as a folder in your documentroot (i.e. `domain.ur/trac/myproject`) replace:
     106{{{#!sh
    102107^/([^/]+)
    103108}}}
    104 line with
    105 {{{
     109
     110with:
     111{{{#!sh
    106112^/trac/([^/]+)
    107113}}}
    108 (there's just added 'trac/'). And make sure that /var/trac/projects is in DocumentRoot.
     114(there's just added 'trac/'). And make sure that `/var/trac/projects` is in DocumentRoot.
    109115
    110 '''reload apache configuration'''
     116'''Reload apache configuration'''
    111117
    112 {{{
     118{{{#!sh
    113119sudo service apache2 reload
    114120}}}
    115 
    116 You should be done
    117 
    118 (Comment: These instructions are relatively incomplete. I found http://robertbasic.com/blog/trac-on-ubuntu to offer more detailed instructions)