Changes between Version 102 and Version 103 of TracOnUbuntu
- Timestamp:
- Dec 20, 2015, 3:48:45 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracOnUbuntu
v102 v103 1 [[PageOutline(2-5,Contents,pullout)]] 2 1 3 = Trac on Ubuntu 2 [[PageOutline]]3 4 4 5 {{{#!div class=important 5 '''Help wanted:''' The various Ubuntu specific install docs should be cleaned and merged where that makes sense...6 '''Help wanted:''' The various Ubuntu specific installation documents should be cleaned and merged where that makes sense. 6 7 }}} 7 8 8 9 * Back to TracInstallPlatforms 9 * TracInstall - See this before reading any distrospecific tutorial10 * TracInstall - Read this before following any distribution specific tutorial 10 11 11 12 12 13 '''Note:''' It is always best practice to use the latest [wiki:WikiStart stable version] of Trac. 13 14 14 ||= tutorial =||= Ubuntu Version =||= Trac Version =||= Apache =||= VCS =||= Database =||15 ||= Tutorial =||= Ubuntu Version =||= Trac Version =||= Apache =||= VCS =||= Database =|| 15 16 || [wiki:Ubuntu-11.10 Ubuntu-11.10] || 11.10 || 0.12 || Mod_WSGI || ? || ? || 16 || [wiki:Ubuntu-11.04-Subversion Ubuntu-10.04-Subversion] || 10.04 || 0.12 || Mod_Python || Subversion || MySQL ||17 || [wiki:Ubuntu-10.04-Bazaar] || 10.04 || 0.12 || Mod_WSGI || Bazaar || MySQL ||18 || [wiki:Ubuntu-10.04.03-Git] || 10.04.03 || 0.11 || Mod_Python || Git || MySQL ||19 || [https://help.ubuntu.com/community/Trac ubuntu Help] || ?|| ?|| Mod_Python || ?|| SQLite||20 || [wiki:0.11/TracOnUbuntu] || 8.04 || 0.11 || Mod_Python || Subversion || SQLite ||21 || TracUbuntuMultipleProjects || 8.04 || 0.11 || Mod_Python || Subversion || SQLite ||22 || TracFeisty || 7.04 || ? || Mod_Python || Subversion || SQLite||23 || TracInstallUbuntu || ? || 0.11.5 || Mod_Python || ?|| SQLite||24 || [https://help.ubuntu.com/community/UbuntuTracHowto Ubuntu-Trac] || ? || ?|| Mod_Python || Subversion || SQLite||17 || [wiki:Ubuntu-11.04-Subversion Ubuntu-10.04-Subversion] || 10.04 || 0.12 || Mod_Python || Subversion || MySQL || 18 || [wiki:Ubuntu-10.04-Bazaar] || 10.04 || 0.12 || Mod_WSGI || Bazaar || MySQL || 19 || [wiki:Ubuntu-10.04.03-Git] || 10.04.03 || 0.11 || Mod_Python || Git || MySQL || 20 || [https://help.ubuntu.com/community/Trac Ubuntu Help] || ? || ? || Mod_Python || ? || SQLite || 21 || [wiki:0.11/TracOnUbuntu] || 8.04 || 0.11 || Mod_Python || Subversion || SQLite || 22 || TracUbuntuMultipleProjects || 8.04 || 0.11 || Mod_Python || Subversion || SQLite || 23 || TracFeisty || 7.04 || ? || Mod_Python || Subversion || SQLite || 24 || TracInstallUbuntu || ? || 0.11.5 || Mod_Python || ? || SQLite || 25 || [https://help.ubuntu.com/community/UbuntuTracHowto Ubuntu-Trac] || ? || ? || Mod_Python || Subversion || SQLite || 25 26 26 '''D B:''' Most tutorials do not say the database they are using. I assume the defaultis SQLite.27 '''Database:''' Most tutorials do not state the database they are using. The default database is SQLite. 27 28 28 29 == Installing Trac on Ubuntu 29 This is a short recipe to install and configure a virtual `Apache2` host with `Trac` 30 31 This is a short recipe to install and configure a virtual Apache2 host with Trac. 30 32 31 33 === Which Ubuntu packages are needed 34 32 35 The typical procedure to install Trac under Ubuntu with its default dependencies (default - chosen by apt) is: 33 36 {{{#!sh … … 35 38 apt-get install trac 36 39 }}} 37 Ensure that the python version matches the Trac latest, otherwise apt will install an older Trac version which matches the older version of python that you have installed. Also take into account that `python-babel` should be always installed before `trac` if you wish to later configure internationalisation.38 40 39 ==== Upgrade python packages 40 Ubuntu pre-packaged python resources are not always the newest; you may consider to upgrade them with `easy_install` or `pip` 41 - Upgrade with `easy_install` 41 Ensure that the Python version matches the Trac latest, otherwise apt will install an older Trac version which matches the older version of Python that you have installed. Also take into account that `python-babel` should be always installed before `trac`, if you wish to later configure internationalisation. 42 43 ==== Upgrade Python packages 44 45 Ubuntu pre-packaged Python resources are not always the newest; you may consider to upgrade them with `easy_install` or `pip`. 46 47 - Upgrade with `easy_install`: 42 48 {{{#!sh 43 49 easy_install Babel 44 50 easy_install Trac 45 51 }}} 46 - Upgrade with `pip` (another python installer, namely `python-pip`) 52 53 - Upgrade with `pip` (another Python installer, namely `python-pip`): 47 54 {{{#!sh 48 55 apt-get install python-pip … … 52 59 53 60 === Configuring a virtual host 54 Here is a sample virtual host configuration running under `apache2` (one file) with minimal, "entry level" settings. 61 62 Here is a sample virtual host configuration running under `apache2` (one file) with minimal, entry-level settings. 55 63 The config file should be created at the `apache2` known place for site configs (see below), and then the configured site can be "enabled" to run. 56 64 57 The following considerations used within this config , yours may vary, so adjust them below appropriately at your own65 The following considerations used within this config. Yours may vary, so adjust them below accordingly: 58 66 - `trac.local` is a hostname of virtual host 59 67 - `/var/local/trac` is a directory (Trac project) at that host 60 68 - `/var/local/trac/.htpasswd` is a password file created with `htpasswd` utility 61 - `ru_RU.UTF8` is a locale ident 69 - `ru_RU.UTF8` is a locale identifier 70 62 71 ==== Prepare configuration 63 First you need to 72 73 First you need to: 64 74 - create directory for Trac project and change its access permissions to that under which `apache2` runs (`www-data` in most cases) 65 75 - initialize `Trac` environment within that directory 66 76 - create `apache2` htpasswd entry for authorized web user access within this directory 67 - add to Trac this authorized web user with administrative privileges over Trac 77 - add to Trac this authorized web user with administrative privileges over Trac: 68 78 {{{#!sh 69 79 mkdir -p /var/local/trac … … 74 84 chmod -R 775 /var/local/trac 75 85 }}} 86 76 87 Create config file with any text editor (`vi` in this example): 77 88 {{{#!sh 78 89 vi /etc/apache2/sites-available/trac.conf 79 90 }}} 80 Enter the following copy-paste into this file: 81 {{{#!text/html 91 92 Enter the following into this file: 93 {{{#!apache 82 94 <VirtualHost *:80> 83 95 ServerName trac.local … … 90 102 PythonOption TracUriRoot / 91 103 PythonOption TracEnv /var/local/trac 92 104 # PythonOption TracEnvIndexTemplate /var/local/trac/templates/index-template.html 93 105 PythonOption TracLocale en_US.UTF8 94 106 PythonOption PYTHON_EGG_CACHE /tmp … … 106 118 107 119 ==== Enable prepared configuration 120 108 121 {{{#!sh 109 122 sudo apt-get install libapache2-mod-python