Edgewall Software

Changes between Version 4 and Version 5 of TracInstallUbuntu


Ignore:
Timestamp:
Dec 20, 2015, 3:53:12 PM (4 years ago)
Author:
figaro
Comment:

Cosmetic changes

Legend:

Unmodified
Added
Removed
Modified
  • TracInstallUbuntu

    v4 v5  
    1 Read [wiki:TracInstall] first for a general overview. This is a quick HOWTO specifically for Ubuntu users. I wrote these notes during an install on Ubuntu Hardy Heron.
     1= Installing Trac on Ubuntu
     2
     3This is a how-to specifically for Ubuntu users. I wrote these notes during an install on Ubuntu Hardy Heron, which is version 8.04.
     4Read [wiki:TracInstall] first for a general overview.
    25
    36I consulted:
    4 
    57* The Trac INSTALL file
    68* [wiki:TracInstall]
     
    911I ran the following commands as root:
    1012
    11 {{{
     13{{{#!sh
    1214cd /usr/local/src
    1315wget http://ftp.edgewall.com/pub/trac/Trac-0.11.5.tar.gz
     
    2527
    2628Now we need a folder the web server is allowed to write to in which to keep Trac's data. So we'll make that folder and then switch to the www-data user for the next few commands:
    27 {{{
     29{{{#!sh
    2830mkdir /usr/local/trac
    2931chown www-data.www-data /usr/local/trac
     
    3234trac-admin /usr/local/trac/environment initenv
    3335}}}
     36
    3437The trac-admin command will prompt you for various settings. You can accept the defaults, except for the Subversion repository, which you should set to /usr/local/trac/repository.
    35 {{{
     38{{{#!sh
    3639htpasswd -c /usr/local/trac/passwords.txt admin
    3740}}}
    38 Supply a password for an initial user. You can add more users later. Use the -c option only on the FIRST use of this command, as it creates the password file.
     41
     42Supply a password for an initial user. You can add more users later. Use the -c option only on the first use of this command, as it creates the password file.
    3943
    4044You will want the web admin panel available to the admin user so execute the following:
    41 {{{
     45{{{#!sh
    4246trac-admin /usr/local/trac/environment permission add admin TRAC_ADMIN
    4347}}}
    4448
    4549Now it's time to switch back to root to configure Apache. Type exit to log out of the www-data account and return to root. Now set up a virtual host for Trac. Let's say it will be called tractest. You can set it up by creating the file /etc/apache2/sites-available/tractest with the following contents:
    46 {{{
     50{{{#!apache
    4751<VirtualHost *>
    4852  ServerName tractest
     
    6670Now, link the site that is available to the list that will startup by default.
    6771
    68 {{{
     72{{{#!sh
    6973ln -s /etc/apache2/sites-available/tractest /etc/apache2/sites-enabled/002-tractest
    7074}}}
    7175
    7276Now, as root, signal Apache to reload its configuration and notice the new site:
    73 
    74 {{{
     77{{{#!sh
    7578invoke-rc.d apache2 reload
    7679}}}
     
    8184127.0.0.1 localhost tractest
    8285}}}
    83 You're ready to go. Visit http://tractest/ and you'll have access to trac. You can log in as the admin user when you click on the login button.
     86
     87Visit http://tractest/ and you'll have access to Trac. You can log in as the admin user, when you click on the login button.
    8488
    8589Of course basic authentication isn't the only option. Anything that is backwards-compatible with it should work, including mod_ldap, mod_shib, etc.