Changes between Version 6 and Version 7 of TracEnvironment
- Timestamp:
- Feb 21, 2016, 9:52:37 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracEnvironment
v6 v7 2 2 3 3 [[TracGuideToc]] 4 [[PageOutline ]]4 [[PageOutline(2-5,Contents,pullout)]] 5 5 6 Trac uses a directory structure and a database for storing project data. The directory is referred to as the environment.6 Trac uses a directory structure and a database for storing project data. The directory is referred to as the '''environment'''. 7 7 8 8 == Creating an Environment … … 28 28 29 29 - TracPlugins located in a [TracIni#inherit-section shared plugins folder] that is defined in an [TracIni#GlobalConfiguration inherited configuration] are currently not loaded during creation, and hence, if they need to create extra tables for example, you'll need to [TracUpgrade#UpgradetheTracEnvironment upgrade the environment] before being able to use it. 30 31 {{{#!div style="border: 1pt dotted; margin: 1em" 32 **Caveat:** don't confuse the //Trac environment directory// with the //source code repository directory//. 33 34 This is a common beginners' mistake. 35 It happens that the structure for a Trac environment is loosely modelled after the Subversion repository directory structure, but those are two disjoint entities and they are not and ''must not'' be located at the same place. 36 }}} 30 37 31 38 == Database Connection Strings … … 76 83 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. 77 84 78 Under some default configurations (Debian) one will haverun the `createuser` and `createdb` scripts as the `postgres` user:85 Under some default configurations (Debian), run the `createuser` and `createdb` scripts as the `postgres` user: 79 86 {{{#!sh 80 87 $ sudo su - postgres -c 'createuser -U postgres -S -D -R -E -P tracuser' … … 139 146 * `site.html` - Method to customize header, footer, and style, described in TracInterfaceCustomization#SiteAppearance. 140 147 141 === Caveat: don't confuse a ''Trac environment directory'' with the ''source code repository directory'' #Caveat142 143 This is a common beginners' mistake.144 It happens that the structure for a Trac environment is loosely modelled after the Subversion repository directory structure, but those are two disjoint entities and they are not and ''must not'' be located at the same place.145 146 148 ---- 147 149 See also: TracAdmin, TracBackup, TracIni, TracGuide