Edgewall Software

Changes between Version 12 and Version 13 of 0.12/TracInstall


Ignore:
Timestamp:
Feb 3, 2010, 12:19:21 PM (14 years ago)
Author:
Christian Boos
Comment:

#CreatingaProjectEnvironment: rewritten parts about the repository setup (+ a link to TracRepositoryAdmin)

Legend:

Unmodified
Added
Removed
Modified
  • 0.12/TracInstall

    v12 v13  
    169169== Creating a Project Environment ==
    170170
    171 A [wiki:TracEnvironment Trac environment] is the backend storage where Trac stores information like wiki pages, tickets, reports, settings, etc. An environment is basically a directory that contains a human-readable configuration file and various other files and directories.
     171A [TracEnvironment Trac environment] is the backend storage where Trac stores information like wiki pages, tickets, reports, settings, etc. An environment is basically a directory that contains a human-readable [TracIni configuration file], and various other files and directories.
    172172
    173173A new environment is created using [wiki:TracAdmin trac-admin]:
     
    176176}}}
    177177
    178 [wiki:TracAdmin trac-admin] will prompt you for the information it needs to create the environment, such as the name of the project, the type and the path to an existing [wiki:TracEnvironment#SourceCodeRepository source code repository], the [wiki:TracEnvironment#DatabaseConnectionStrings database connection string], and so on. If you're not sure what to specify for one of these options, just leave it blank to use the default value. The database connection string in particular will always work as long as you have SQLite installed. Leaving the path to the source code repository empty will disable any functionality related to version control, but you can always add that back when the basic system is running.
    179 
    180 Also note that the values you specify here can be changed later by directly editing the [wiki:TracIni] configuration file.
    181 
    182 ''Note: The user account under which the web server runs will require write permissions to the environment directory and all the files inside.  On Linux, with the web server running as user apache and group apache, enter:''
    183 
    184   chown -R apache.apache /path/to/myproject
     178[TracAdmin trac-admin] will prompt you for the information it needs to create the environment, such as the name of the project, the type and the path to an existing [TracEnvironment#SourceCodeRepository source code repository] for setting up the default repository, the [TracEnvironment#DatabaseConnectionStrings database connection string], and so on. If you're not sure what to specify for one of these options, just press `<Enter>` to use the default value.
     179
     180Leaving the database connection string empty in particular will always work as long as you have SQLite installed.
     181For the other [DatabaseBackend database backends] you should plan ahead and already have a database ready to use at this point.
     182
     183Leaving the path to the source code repository empty only means that you won't have a ''default'' repository defined. You change this, add one or more ''named'' repositories by [TracRepositoryAdmin managing repositories] afterwards, or even disable the version control support completely if you don't need it.
     184
     185Also note that the values you specify here can be changed later by directly editing the [TracIni conf/trac.ini] configuration file.
     186
     187Finally, make sure the user account under which the web front-end runs will have '''write permissions''' to the environment directory and all the files inside. This will be the case if you run `trac-admin ... initenv` as this user. If not, you should set the correct user afterwards. For example on Linux, with the web server running as user `apache` and group `apache`, enter:
     188{{{
     189# chown -R apache.apache /path/to/myproject
     190}}}
    185191
    186192== Running the Standalone Server ==