Changes between Version 6 and Version 7 of TracInstall
- Timestamp:
- Feb 18, 2004, 10:19:56 PM (20 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracInstall
v6 v7 10 10 11 11 * [http://www.python.org/ Python], version >= 2.1. 12 * [http://subversion.tigris.org/ subversion], version >= 0. 29.12 * [http://subversion.tigris.org/ subversion], version >= 0.37. 13 13 * [http://pysqlite.sf.net/ pysqlite], version >= 0.4.3 14 14 * [http://clearsilver.net/ ClearSilver], version >= 0.9.3 … … 17 17 == Installing Trac == 18 18 {{{ 19 $ python ./setup.py build20 19 $ python ./setup.py install 21 20 }}} 21 22 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 22 26 == Initializing the database == 23 27 … … 28 32 A new trac database can be created like this: 29 33 30 {{{$ trac_admin.py /path/to/mydatabase.db initdb}}} 34 {{{ 35 $ trac-admin /path/to/mydatabase.db initdb 36 }}} 31 37 32 38 NOTE: The database file have to be located in a directory where the web server 33 39 user has write permission to both the file and the directory. 34 40 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.py /path/to/mydatabase.db config list}}} 40 41 Most settings should be okay, 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.py /path/to/mydatabase.db config set <name> <value>}}} 41 {{{trac-admin}}} will ask you where your subversion repository is located and 42 where it can find the trac templates directory (the default value should be fine). 49 43 50 44 == Configuring Apache == 51 45 52 copy "{{{trac/cgi-bin/trac.cgi}}}" to46 copy (or symlink) "{{{trac/cgi-bin/trac.cgi}}}" to 53 47 you web servers {{{/cgi-bin/}}} directory. Of course you can configure apache 54 48 to use the "{{{trac/cgi-bin/}}}" directory directly if you like. … … 60 54 # Trac need to know where the database is located 61 55 <Location "/cgi-bin/trac.cgi"> 62 56 SetEnv TRAC_DB "/somewhere/myproject.db" 63 57 </Location> 64 58 65 # You need this to let usersauthenticate59 # You need this to allow users to authenticate 66 60 <Location "/cgi-bin/trac.cgi/login"> 67 68 69 70 61 AuthType Basic 62 AuthName "trac" 63 AuthUserFile /somewhere/trac.htpasswd 64 Require valid-user 71 65 </location> 72 73 66 }}} 74 67