Edgewall Software

Changes between Version 10 and Version 11 of TracOnRhel4


Ignore:
Timestamp:
Jun 29, 2006, 4:58:29 AM (18 years ago)
Author:
anonymous
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • TracOnRhel4

    v10 v11  
    1717
    1818up2date will take care of all dependencies on which the Trac package depends (including the python-clearsilver package) and will fetch and install them for you automatically. For a full list of what it requires, see the RPM spec file at http://dag.wieers.com/packages/trac/trac.spec
     19
     20== Creating an Environment ==
     21
     22A new Trac environment is created using [wiki:TracAdmin trac-admin]:
     23{{{
     24$ trac-admin /path/to/projectenv initenv
     25}}}
     26
     27[wiki:TracAdmin trac-admin] will ask you for the name of the project, the
     28database connection string (explained below), and the type and the path
     29to your source code repository.
     30
     31  ''Note: The web server user will require file system write permission to
     32the environment directory and all the files inside. Please remember to set
     33the appropriate permissions. The same applies to the Subversion repository
     34Trac is eventually using, although Trac will only require read access as long
     35as you're not using the BDB file system.''
     36
     37== Database Connection Strings ==
     38
     39Since version 0.9, Trac supports both [http://sqlite.org/ SQLite] and
     40[http://www.postgresql.org/ PostgreSQL] as database backends.  The default
     41is to use SQLite, which is probably sufficient for most projects. The database file
     42is then stored in the environment directory, and can easily be
     43[wiki:TracBackup backed up] together with the rest of the environment.
     44
     45The connection string for an embedded SQLite database is:
     46{{{
     47sqlite:db/trac.db
     48}}}
     49
     50If you want to use PostgreSQL instead, you'll have to use a different
     51connection string. For example, to connect to a database on the same
     52machine called `trac`, that allows access to the user `johndoe` with
     53the password `letmein`, use:
     54{{{
     55postgres://johndoe:letmein@localhost/trac
     56}}}
     57
     58If PostgreSQL is running on a non-standard port (for example 9342), use:
     59{{{
     60postgres://johndoe:letmein@localhost:9342/trac
     61}}}
     62
     63Note that with PostgreSQL you will have to create the database before running
     64`trac-admin initenv`.
     65
     66And make sure PostgreSQl DB name is "trac". What worked for me:
     67And didn't work uppercase trac-user-name
     68{{{
     69sudo su - postgres -c createdb trac
     70sudo su - postgres -c psql trac
     71CREATE USER trac-user-name WITH PASSWORD 'trac-pass-name';
     72}}}
     73
     74== Source Code Repository ==
     75
     76You'll first have to provide the ''type'' of your repository (e.g. `svn` for Subversion,
     77which is the default), then the ''path'' where the repository is located.
     78
     79If you don't want to use Trac with a source code repository, simply leave the ''path'' empty
     80(the ''type'' information doesn't matter, then).
     81
     82For some systems, it is possible to specify not only the path to the repository,
     83but also a ''scope'' within the repository. Trac will then only show information
     84related to the files and changesets below that scope. The Subversion backend for
     85Trac supports this; for other types, check the corresponding plugin's documentation.
     86
     87Example of a configuration for a Subversion repository:
     88{{{
     89[trac]
     90repository_type = svn
     91repository_dir = /path/to/your/repository
     92}}}
     93
     94The configuration for a scoped Subversion repository would be:
     95{{{
     96[trac]
     97repository_type = svn
     98repository_dir = /path/to/your/repository/scope/within/repos
     99}}}
     100
     101== Directory Structure ==
     102
     103An environment directory will usually consist of the following files and directories:
     104
     105 * `README` - Brief description of the environment.
     106 * `VERSION` - Contains the environment version identifier.
     107 * `attachments` - Attachments to wiki pages and tickets are stored here.
     108 * `conf`
     109   * `trac.ini` - Main configuration file. See TracIni.
     110 * `db`
     111   * `trac.db` - The SQLite database (if you're using SQLite).
     112 * `plugins` - Environment-specific [wiki:TracPlugins plugins] (Python eggs)
     113 * `templates` - Custom environment-specific templates.
     114   * `site_css.cs` - Custom CSS rules.
     115   * `site_footer.cs` - Custom page footer.
     116   * `site_header.cs` - Custom page header.
     117 * `wiki-macros` - Environment-specific [wiki:WikiMacros Wiki macros].
     118
     119  '''Note: don't confuse a Trac environment directory with the Source Code Repository directory.
     120It happens that the above structure is loosely modelled after the Subversion repository directory
     121structure, but they are not and ''must not'' be located at the same place.'''
     122
     123----
     124See also: TracAdmin, TracBackup, TracIni, TracGuide
     125
     126
     127
     128
    19129
    201302) Create a new project environment. An environment is basically a directory that contains a human-readable configuration file and various other files and directories.