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 | |
| 180 | Leaving the database connection string empty in particular will always work as long as you have SQLite installed. |
| 181 | For the other [DatabaseBackend database backends] you should plan ahead and already have a database ready to use at this point. |
| 182 | |
| 183 | Leaving 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 | |
| 185 | Also note that the values you specify here can be changed later by directly editing the [TracIni conf/trac.ini] configuration file. |
| 186 | |
| 187 | Finally, 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 | }}} |