Changes between Version 1 and Version 2 of TracInstall
- Timestamp:
- 11/17/04 15:27:55 (20 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracInstall
v1 v2 3 3 The Trac web-based project management tool is implemented as a server 4 4 side cgi-program. Trac is written in the Python programming language 5 and store it's data in a sqlite database.5 and uses SQLite as an embedded database. For HTML rendering, Trac uses the Clearsilver template system. 6 6 7 == Dependencies ==8 7 9 The following dependencies have to be installed: 8 == Requirements == 9 10 To install Trac, the following software packages must be installed: 10 11 11 12 * [http://www.python.org/ Python], version >= 2.1. 12 * [http://subversion.tigris.org/ subversion], version >= 0.37. 13 * [http://pysqlite.sf.net/ pysqlite], version >= 0.4.3 (>= 0.5 for better performance) 14 * [http://clearsilver.net/ ClearSilver], version >= 0.9.3 15 * A CGI-capable web server (only tested with Apache) 13 * Please keep in mind, that for RPM-based systems you will also need python-devel and python-xml packages. 14 * [http://subversion.tigris.org/ Subversion], version >= 0.37. (>=1.0.1 recommended) 15 * [http://subversion.tigris.org/ Subversion Python bindings]. 16 * [http://pysqlite.sf.net/ PySQLite], version >= 0.4.3 (>= 0.5 for better performance) 17 * [http://clearsilver.net/ Clearsilver], version >= 0.9.3 18 * A CGI-capable web server (we QA-test on [http://httpd.apache.org/ Apache2] ) 16 19 17 20 == Installing Trac == 18 21 {{{ 19 22 $ python ./setup.py install 20 23 }}} 21 24 22 25 This will byte-compile the python source code and install it in the {{{site-packages}}} directory 23 of your python installation. The directories {{{templates}}}, {{{htdocs}}} and {{{wiki-default}}} 24 will be copied into $prefix/share/trac/ . 26 of your python installation. The directories {{{cgi-bin}}}, {{{templates}}}, {{{htdocs}}} and {{{wiki-default}}} are all copied to $prefix/share/trac/ . 25 27 26 == Initializing the database == 28 The script will also install the [wiki:TracAdmin trac-admin] command-line tool, used to create and maintain project 29 environments. Trac-admin is the ''command center'' of Trac. 27 30 28 Trac stores wiki pages, tickets and other information in a sqlite database. 29 Sqlite databases are just ordinary files on the hard drive, no database server 30 is required. 31 '''Note:''' you'll need root permissions or equivalent for this step. 31 32 32 A new trac database can be created like this: 33 For more information on installing Trac on specific platforms, see: 34 35 * TracOnOsx 36 * TracOnMandrakelinux 37 * TracOnGentoo 38 * TracOnFreeBsd 39 * TracOnNetBsd 40 * TracOnDebian 41 * TracOnWindows 42 * TracOnRedhat 43 44 === Advanced Users === 45 To install Trac in a different location, and other advanced installation options, run: 46 {{{ 47 $ python ./setup.py --help 48 }}} 49 50 == Creating a Project Environment == 51 52 ''Trac Environment'' is the backend storage format where Trac stores 53 information like wiki pages, tickets, reports, settings, etc. 54 A Trac environment consist of a directory containing an SQLite database, 55 human-readable configuration file, log-files and attachments. 56 57 A new Trac environment is created with {{{trac-admin}}}: 33 58 34 59 {{{ 35 $ trac-admin /path/to/mydatabase.db initdb 60 $ trac-admin /path/to/projectenv initenv 36 61 }}} 62 '''Note:''' The web server user need write permission to the environment 63 directory and all the files inside. 37 64 38 NOTE: The database file have to be located in a directory where the web server 39 user has write permission to both the file and the directory. 40 41 {{{[wiki:TracAdmin trac-admin]}}} will ask you where your subversion repository is located and 65 [wiki:TracAdmin trac-admin] will ask you where your subversion repository is located and 42 66 where it can find the trac templates directory (the default value should be fine). 43 67 44 68 == Configuring Apache == 45 69 46 copy (or symlink) "{{{trac/cgi-bin/trac.cgi}}}" to47 you web servers {{{/cgi-bin/}}} directory. Of course you canconfigure apache48 to use the "{{{trac/cgi-bin/}}}" directory directly if you like .70 Copy (or symlink) "{{{trac/cgi-bin/trac.cgi}}}" to 71 you web servers {{{/cgi-bin/}}} directory. You can also configure apache 72 to use the "{{{trac/cgi-bin/}}}" directory directly if you like, it's a matter of taste. 49 73 50 Finally adjust the filenames and add this config snippet to your web server:74 Finally edit the apache config and add this config snippet, with filenams edited to match your installation: 51 75 52 76 {{{ 53 Alias /trac/ "/where/you/put/trac/htdocs/" 77 Alias /trac/ "/usr/share/trac/htdocs/" #or where you installed the trac docs 78 #You have to allow people to read the files in htdocs 79 <Directory "/usr/share/trac/htdocs/"> 80 Options Indexes MultiViews 81 AllowOverride None 82 Order allow,deny 83 Allow from all 84 </Directory> 85 86 54 87 # Trac need to know where the database is located 55 88 <Location "/cgi-bin/trac.cgi"> 56 SetEnv TRAC_ DB "/somewhere/myproject.db"89 SetEnv TRAC_ENV "/path/to/projectenv" 57 90 </Location> 58 91 59 92 # You need this to allow users to authenticate 93 # trac.htpasswd can be created with 94 # cmd 'htpasswd -c trac.htpasswd' (UNIX) 95 # do 'man htpasswd' to see all the options 60 96 <Location "/cgi-bin/trac.cgi/login"> 61 97 AuthType Basic … … 66 102 }}} 67 103 68 == What next? == 104 '''Note:''' When creating a new environment, {{{trac-admin}}} will print a config snippet customized for your project. 105 106 == Using Trac == 69 107 70 108 You should now have a working Trac installation at: … … 73 111 74 112 There you should be able to browse your subversion repository, create tickets, 75 view the timeline etc. Keep in mind that anonymous users (before logging in) 76 are only able to see/use a subset of all the features provided by Trac. 77 Please read TracPermissions on how to grant additional privileges to authenticated users. 113 view the timeline etc. Keep in mind that anonymous users (not logged in) 114 can only access a restricted subset of all Trac features. 78 115 79 Enjoy! 116 Please continue to TracPermissions to learn how to grant additional privileges to authenticated users. 80 117 118 For further user-documentation, see TracGuide. 81 119 82 See also: TracGuide, TracOnNetBsd, TracOnOsx 120 ''Enjoy!'' 121 122 ---- 123 See also: TracGuide, TracPermissions, TracOnFreeBsd, TracOnNetBsd, TracOnOsx, TracOnMandrakelinux, TracOnDebian, TracOnGentoo