Edgewall Software

Changes between Version 6 and Version 7 of TracInstall


Ignore:
Timestamp:
Feb 18, 2004, 10:19:56 PM (20 years ago)
Author:
Jonas Borgström
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • TracInstall

    v6 v7  
    1010
    1111 * [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.
    1313 * [http://pysqlite.sf.net/ pysqlite], version >= 0.4.3
    1414 * [http://clearsilver.net/ ClearSilver], version >= 0.9.3
     
    1717== Installing Trac ==
    1818{{{
    19         $ python ./setup.py build
    2019        $ python ./setup.py install
    2120}}}
     21
     22This will byte-compile the python source code and install it in the {{{site-packages}}} directory
     23of your python installation. The directories {{{templates}}}, {{{htdocs}}} and {{{wiki-default}}}
     24will be copied into $prefix/share/trac/ .
     25
    2226== Initializing the database ==
    2327
     
    2832A new trac database can be created like this:
    2933
    30  {{{$ trac_admin.py /path/to/mydatabase.db initdb}}}
     34{{{
     35        $ trac-admin /path/to/mydatabase.db initdb
     36}}}
    3137
    3238NOTE: The database file have to be located in a directory where the web server
    3339user has write permission to both the file and the directory.
    3440
    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
     42where it can find the trac templates directory (the default value should be fine).
    4943
    5044== Configuring Apache ==
    5145
    52 copy "{{{trac/cgi-bin/trac.cgi}}}" to
     46copy (or symlink) "{{{trac/cgi-bin/trac.cgi}}}" to
    5347you web servers {{{/cgi-bin/}}} directory. Of course you can configure apache
    5448to use the "{{{trac/cgi-bin/}}}" directory directly if you like.
     
    6054# Trac need to know where the database is located
    6155<Location "/cgi-bin/trac.cgi">
    62   SetEnv TRAC_DB "/somewhere/myproject.db"
     56        SetEnv TRAC_DB "/somewhere/myproject.db"
    6357</Location>
    6458
    65 # You need this to let users authenticate
     59# You need this to allow users to authenticate
    6660<Location "/cgi-bin/trac.cgi/login">
    67   AuthType Basic
    68   AuthName "trac"
    69   AuthUserFile /somewhere/trac.htpasswd
    70   Require valid-user
     61        AuthType Basic
     62        AuthName "trac"
     63        AuthUserFile /somewhere/trac.htpasswd
     64        Require valid-user
    7165</location>
    72 
    7366}}}
    7467