Installing Trac on Ubuntu 8.04 with an existing SVN -Part 3

This blog entry gives step by step instruction to the installation of Trac on Ubuntu 8.04 with an existing SVN repository part 3

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
Part3: Creating a Trac project environment that connecting to posgresql
  1. Create a posgresql database fort Trac
    • sudo su postgres
    • psql
    • createdb tracdb

  2. 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
  3. 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)
  4. 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

Recent blog posts