Changes between Version 4 and Version 5 of TracInstallUbuntu
- Timestamp:
- Dec 20, 2015, 3:53:12 PM (8 years ago)
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 3 This is a how-to specifically for Ubuntu users. I wrote these notes during an install on Ubuntu Hardy Heron, which is version 8.04. 4 Read [wiki:TracInstall] first for a general overview. 2 5 3 6 I consulted: 4 5 7 * The Trac INSTALL file 6 8 * [wiki:TracInstall] … … 9 11 I ran the following commands as root: 10 12 11 {{{ 13 {{{#!sh 12 14 cd /usr/local/src 13 15 wget http://ftp.edgewall.com/pub/trac/Trac-0.11.5.tar.gz … … 25 27 26 28 Now 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 28 30 mkdir /usr/local/trac 29 31 chown www-data.www-data /usr/local/trac … … 32 34 trac-admin /usr/local/trac/environment initenv 33 35 }}} 36 34 37 The 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 36 39 htpasswd -c /usr/local/trac/passwords.txt admin 37 40 }}} 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 42 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. 39 43 40 44 You will want the web admin panel available to the admin user so execute the following: 41 {{{ 45 {{{#!sh 42 46 trac-admin /usr/local/trac/environment permission add admin TRAC_ADMIN 43 47 }}} 44 48 45 49 Now 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 47 51 <VirtualHost *> 48 52 ServerName tractest … … 66 70 Now, link the site that is available to the list that will startup by default. 67 71 68 {{{ 72 {{{#!sh 69 73 ln -s /etc/apache2/sites-available/tractest /etc/apache2/sites-enabled/002-tractest 70 74 }}} 71 75 72 76 Now, as root, signal Apache to reload its configuration and notice the new site: 73 74 {{{ 77 {{{#!sh 75 78 invoke-rc.d apache2 reload 76 79 }}} … … 81 84 127.0.0.1 localhost tractest 82 85 }}} 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 87 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. 84 88 85 89 Of course basic authentication isn't the only option. Anything that is backwards-compatible with it should work, including mod_ldap, mod_shib, etc.