Edgewall Software

Changes between Version 69 and Version 70 of TracEnvironment


Ignore:
Timestamp:
Mar 27, 2017, 10:24:20 PM (7 years ago)
Author:
Ryan J Ollos
Comment:

Minor edits.

Legend:

Unmodified
Added
Removed
Modified
  • TracEnvironment

    v69 v70  
    2727 - Non-ascii environment paths are not supported.
    2828
    29  - TracPlugins located in a [TracIni#inherit-section shared plugins folder] that is defined in an [TracIni#GlobalConfiguration inherited configuration] are not loaded during creation, and hence, if they need to create extra tables for example, you'll need to [TracUpgrade#UpgradetheTracEnvironment upgrade the environment]. Alternatively you can avoid the need to upgrade the environment by specifying a configuration file at the time the environment is created, using the `--config` option. See TracAdmin#FullCommandReference for more information.
     29 - TracPlugins located in a [TracIni#inherit-plugins_dir-option shared plugins folder] that is defined in an [TracIni#GlobalConfiguration inherited configuration] are not loaded during creation, and hence, if they need to create extra tables for example, you'll need to [TracUpgrade#UpgradetheTracEnvironment upgrade the environment]. Alternatively you can avoid the need to upgrade the environment by specifying a configuration file at the time the environment is created, using the `--config` option. See TracAdmin#FullCommandReference for more information.
    3030
    31 {{{#!div style="border: 1pt dotted; margin: 1em"
     31{{{#!div style="border: 1pt dotted; margin: 1em;"
    3232**Caveat:** don't confuse the //Trac environment directory// with the //source code repository directory//.
    3333
     
    3838== Database Connection Strings
    3939
    40 You will need to specify a database connection string at the time the environment is created. The default is SQLite, which is probably sufficient for most projects. The SQLite database file is stored in the environment directory, and can easily be [wiki:TracBackup backed up] together with the rest of the environment.
     40You will need to specify a database connection string at the time the environment is created. The default is SQLite, which is sufficient for most projects. The SQLite database file is stored in the environment directory, and can easily be [wiki:TracBackup backed up] together with the rest of the environment.
    4141
    4242Note that if the username or password of the connection string (if applicable) contains the `:`, `/` or `@` characters, they need to be URL encoded.
     
    7979}}}
    8080
    81 When running `createuser` you will be prompted for the password for the user 'tracuser'. This new user will not be a superuser, will not be allowed to create other databases and will not be allowed to create other roles. These privileges are not needed to run a Trac instance. If no password is desired for the user, simply remove the `-P` and `-E` options from the `createuser` command. Also note that the database should be created as UTF8. LATIN1 encoding causes errors, because of Trac's use of unicode. SQL_ASCII also seems to work.
     81When running `createuser` you will be prompted for the password for the `tracuser`. This new user will not be a superuser, will not be allowed to create other databases and will not be allowed to create other roles. These privileges are not needed to run a Trac instance. If no password is desired for the user, simply remove the `-P` and `-E` options from the `createuser` command. Also note that the database should be created as UTF8. LATIN1 encoding causes errors, because of Trac's use of unicode.
    8282
    8383Under some default configurations (Debian), run the `createuser` and `createdb` scripts as the `postgres` user:
     
    9494=== MySQL Connection String
    9595
    96 The format of the MySQL connection string is similar to those for PostgreSQL, with the `postgres` scheme being replaced by `mysql`. For example, to connect to a MySQL database on `localhost` named `trac` for user `johndoe` with password `letmein`:
     96The format of the MySQL connection string is similar to PostgreSQL, with the `postgres` scheme being replaced by `mysql`. For example, to connect to a MySQL database on `localhost` named `trac` for user `johndoe` with password `letmein`:
    9797{{{
    9898mysql://johndoe:letmein@localhost:3306/trac
     
    103103A single environment can be connected to more than one repository. However, by default Trac is not connected to any source code repository, and the ''Browse Source'' navigation item will not be displayed.
    104104
    105 There are many different ways to connect repositories to an environment, see TracRepositoryAdmin. A single repository can be specified when the environment is created by passing the optional arguments `repository_type` and `repository_dir` to the `initenv` command.
     105There are several ways to connect repositories to an environment, see TracRepositoryAdmin. A single repository can be specified when the environment is created by passing the optional arguments `repository_type` and `repository_dir` to the `initenv` command.
    106106
    107107== Directory Structure
     
    114114  * `attachments` - Attachments to wiki pages and tickets.
    115115 * `conf`
    116   * `trac.ini` - Main configuration file. See TracIni.
     116  * `trac.ini` - Main [TracIni configuration file].
    117117 * `db`
    118118  * `trac.db` - The SQLite database, if you are using SQLite.
    119  * `htdocs` - Directory containing web resources, which can be referenced in Genshi templates using `/chrome/site/...` URLs.
    120  * `log` - Default directory for log files, if `file` logging is enabled and a relative path is given.
     119 * `htdocs` - Directory containing web resources, which can be referenced in templates using the path `/chrome/site/...`.
     120 * `log` - Default directory for log files when `file` logging is enabled and a relative path is given.
    121121 * `plugins` - Environment-specific [wiki:TracPlugins plugins].
    122122 * `templates` - Custom Genshi environment-specific templates.
    123   * `site.html` - Method to customize header, footer, and style, described in TracInterfaceCustomization#SiteAppearance.
     123  * `site.html` - Method to [TracInterfaceCustomization#SiteAppearance customize] the site header, footer, and style.
    124124
    125125----
    126 See also: TracAdmin, TracBackup, TracIni, TracGuide
     126See also: TracAdmin, TracBackup, TracIni