Trac – Configure New Environment
By makeaweli
- 1 minutes read - 129 wordsTrac allows the hosting of multiple environments/projects using a single install.
However, setting it up is not so straight-forward.
Configure your new Trac environment
The trac-admin tool is used to configure Trac. The following will create a new environment skeleton directory amongst the other Trac environments:
Add an admin user
Modify Apache
The Trac server is configured to use a vhost for each environment. Copy and existing the trac-x and svn-x to get started:
Replace all instances of the copied environment with values for your new environment. Restart apache.
Configure SVN
Create a new repo for your project:
Modify the repo’s post-commit hook and add the previous trac-admin command to the last line of the file:
Change the ownership of post-commit to apache and make it executable. Otherwise, it won’t work: