Changes between Version 14 and Version 15 of TracInstall
- Timestamp:
- Mar 23, 2004, 8:43:55 AM (20 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracInstall
v14 v15 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 == Prerequisites == 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://subversion.tigris.org/ Subversion], version >= 0.37. (>=1.0.1 recommended) 14 * [http://subversion.tigris.org/ Subversion Python bindings]. 13 15 * [http://pysqlite.sf.net/ pysqlite], version >= 0.4.3 (>= 0.5 for better performance) 14 * [http://clearsilver.net/ Clear Silver], version >= 0.9.315 * A CGI-capable web server ( only tested with Apache)16 * [http://clearsilver.net/ Clearsilver], version >= 0.9.3 17 * A CGI-capable web server (we QA-test on [http://httpd.apache.org/ Apache2] ) 16 18 17 19 == Installing Trac == … … 21 23 22 24 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/ . 25 of your python installation. The directories {{{cgi-bin}}}, {{{templates}}}, {{{htdocs}}} and {{{wiki-default}}} are all copied to $prefix/share/trac/ . 25 26 26 == Initializing the database == 27 The script will also install the [wiki:TracAdmin trac-admin] command-line tool, used to create and maintain project databases. Trac-admin is the ''command center'' of Trac. 27 28 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. 29 === Advanced Users === 30 To install Trac in a different location, and other advanced installation options, run: 31 {{{ 32 $ python ./setup.py --help 33 }}} 31 34 32 A new trac database can be created like this: 35 == Creating a Project Database == 36 37 Trac stores wiki pages, tickets and all other information in a single embedded SQLite database. 38 SQLite databases are stored as a single ordinary file on your filesystem, no separate database server 39 or environment is required. 40 41 A new trac database is created with {{{trac-admin}}}: 33 42 34 43 {{{ 35 44 $ trac-admin /path/to/mydatabase.db initdb 36 45 }}} 37 38 NOTE: The database file have to be located in a directory where the web server 46 '''Note:''' The database file have to be located in a directory where the web server 39 47 user has write permission to both the file and the directory. 40 48 … … 44 52 == Configuring Apache == 45 53 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 .54 Copy (or symlink) "{{{trac/cgi-bin/trac.cgi}}}" to 55 you web servers {{{/cgi-bin/}}} directory. You can also configure apache 56 to use the "{{{trac/cgi-bin/}}}" directory directly if you like, it's a matter of taste. 49 57 50 Finally adjust the filenames and add this config snippet to your web server:58 Finally edit the apache config and add this config snippet, with filenams edited to match your installation: 51 59 52 60 {{{ … … 66 74 }}} 67 75 68 == What next? == 76 '''Note:''' When creating a new database, {{{trac-admin}}} will print a config snippet customized for your project. 77 78 == Using Trac == 69 79 70 80 You should now have a working Trac installation at: … … 73 83 74 84 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. 85 view the timeline etc. Keep in mind that anonymous users (not logged in) 86 can only access a restricted subset of all Trac features. 78 87 79 Enjoy! 88 Please continue to TracPermissions to learn how to grant additional privileges to authenticated users. 89 90 For further user-documentation, see TracGuide. 91 92 ''Enjoy!'' 80 93 81 94 ---- 82 See also: TracGuide, Trac OnNetBsd, TracOnOsx95 See also: TracGuide, TracPermissions, TracOnNetBsd, TracOnOsx