This blog entry gives step by step instruction to the installation of Trac on Ubuntu 8.04 with an existing SVN repository part 3
| Part3: Creating a Trac project environment that connecting to posgresql |
A 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
- Create a posgresql database fort Trac
- sudo su postgres
- psql
- createdb tracdb
- Create a project environment directory (you can put it anyway else) that should be writable by the default Apache user:
- sudo mkdir /trac
- mkdir /var/lib/trac
- sudo ln -s /var/lib/trac /trac
- sudo chown www-data:www-data /var/lib/trac
- Create a trac project
- sudo trac-admin /var/lib/trac/vdoxxTrac
- project name : vdoxxTrac
- path to svn repository: /home/svn
- Database connection string: postgres://trac:zoids999@localhost:5432/tracdb
(postgres://user:pass@localhost:5432/dbname)
- Last, if you have svn account you should be able to log into trac: http:///trac,
go to project vodxx, and select 'browse source' at the menu bar on the upper right side.
The svn is now linked with trac.
- Notes:
You need to create different databases for different trac projects
|