| 1 | = Trac Installation Guide = |
| 2 | |
| 3 | The Trac web-based project management tool is implemented as a server |
| 4 | side cgi-program. Trac is written in the Python programming language |
| 5 | and store it's data in a sqlite database. |
| 6 | |
| 7 | == Dependencies == |
| 8 | |
| 9 | The following dependencies have to be installed: |
| 10 | |
| 11 | * [http://www.python.org/ Python], version >= 2.1. |
| 12 | * [http://subversion.tigris.org/ subversion], version >= 0.29. |
| 13 | * [http://pysqlite.sf.net/ pysqlite], version >= 0.4.3 |
| 14 | * [http://clearsilver.net/ ClearSilver], version >= 0.9.3 |
| 15 | * A CGI-capable webserver (only tested with Apache) |
| 16 | |
| 17 | == Installing Trac == |
| 18 | |
| 19 | $ python ./setup.py build |
| 20 | $ python ./setup.py install |
| 21 | |
| 22 | == Initializing the database == |
| 23 | |
| 24 | Trac stores wiki pages, tickes and other information in a sqlite database. |
| 25 | Sqlite databases ar just ordinary files on the harddrive, no database server |
| 26 | is required. |
| 27 | |
| 28 | A new trac database can be created like this: |
| 29 | |
| 30 | $ trac_admin /path/to/mydatabase.db initdb |
| 31 | |
| 32 | NOTE: The database file have to be located in a directory where the webserver |
| 33 | user has write permission to both the file and the directory. |
| 34 | |
| 35 | This creates a new database using default values. Some settings still need |
| 36 | to be modified to get your Trac installation up and running. The following |
| 37 | command will display the trac configuration: |
| 38 | |
| 39 | $ trac_admin /path/to/mydatabase.db config view |
| 40 | |
| 41 | Most settings should be okey, but you have to verify that these settings |
| 42 | are correct: |
| 43 | * general.repository_dir. This should be the path to the svn repository. |
| 44 | * general.templates_dir. This should be the path to the trac template directory. |
| 45 | |
| 46 | A config value is modified like this: |
| 47 | |
| 48 | $ trac_admin /path/to/mydatabase.db config set <name> <value> |
| 49 | |
| 50 | == Configuring Apache == |
| 51 | |
| 52 | FIXME |