Setting Up Trac on Windows

This page will detail a simple process of setting up and installing Trac using Postgresql as the storage database.

Install Postgresql

Initialise Trac

E:\var\trac>python c:\Python24\Scripts\trac-admin E:\var\trac\agileplugintest\en
v initenv
Creating a new Trac environment at E:\var\trac\agileplugintest\env

Trac will first ask a few questions about your environment
in order to initalize and prepare the project database.

 Please enter the name of your project.
 This name will be used in page titles and descriptions.

Project Name [My Project]> agiletestplugin

 Please specify the connection string for the database to use.
 By default, a local SQLite database is created in the environment
 directory. It is also possible to use an already existing
 PostgreSQL database (check the Trac documentation for the exact
 connection string syntax).

Database connection string [sqlite:db/trac.db]> postgres://trac_db_admin:*********@localhost/trac_agileplugintest_db

 Please specify the type of version control system,
 By default, it will be svn.

 If you don't want to use Trac with version control integration,
 choose the default here and don't specify a repository directory.
 in the next question.

Repository type [svn]>

 Please specify the absolute path to the version control
 repository, or leave it blank to use Trac without a repository.
 You can also set the repository location later.

Path to repository [/path/to/repos]> E:\var\svn\agileplugintest

 Please enter location of Trac page templates.
 Default is the location of the site-wide templates installed with Trac.

Templates directory [C:\Python24\share\trac\templates]>

Creating and Initializing Project
 Installing default wiki pages
 C:\Python24\share\trac\wiki-default\CamelCase => CamelCase
 C:\Python24\share\trac\wiki-default\InterMapTxt => InterMapTxt
 C:\Python24\share\trac\wiki-default\InterTrac => InterTrac
 C:\Python24\share\trac\wiki-default\InterWiki => InterWiki
 C:\Python24\share\trac\wiki-default\RecentChanges => RecentChanges
 C:\Python24\share\trac\wiki-default\SandBox => SandBox
 C:\Python24\share\trac\wiki-default\TitleIndex => TitleIndex
 C:\Python24\share\trac\wiki-default\TracAccessibility => TracAccessibility
 C:\Python24\share\trac\wiki-default\TracAdmin => TracAdmin
 C:\Python24\share\trac\wiki-default\TracBackup => TracBackup
 C:\Python24\share\trac\wiki-default\TracBrowser => TracBrowser
 C:\Python24\share\trac\wiki-default\TracCgi => TracCgi
 C:\Python24\share\trac\wiki-default\TracChangeset => TracChangeset
 C:\Python24\share\trac\wiki-default\TracEnvironment => TracEnvironment
 C:\Python24\share\trac\wiki-default\TracFastCgi => TracFastCgi
 C:\Python24\share\trac\wiki-default\TracGuide => TracGuide
 C:\Python24\share\trac\wiki-default\TracImport => TracImport
 C:\Python24\share\trac\wiki-default\TracIni => TracIni
 C:\Python24\share\trac\wiki-default\TracInstall => TracInstall
 C:\Python24\share\trac\wiki-default\TracInterfaceCustomization => TracInterface
Customization
 C:\Python24\share\trac\wiki-default\TracLinks => TracLinks
 C:\Python24\share\trac\wiki-default\TracLogging => TracLogging
 C:\Python24\share\trac\wiki-default\TracModPython => TracModPython
 C:\Python24\share\trac\wiki-default\TracNotification => TracNotification
 C:\Python24\share\trac\wiki-default\TracPermissions => TracPermissions
 C:\Python24\share\trac\wiki-default\TracPlugins => TracPlugins
 C:\Python24\share\trac\wiki-default\TracQuery => TracQuery
 C:\Python24\share\trac\wiki-default\TracReports => TracReports
 C:\Python24\share\trac\wiki-default\TracRevisionLog => TracRevisionLog
 C:\Python24\share\trac\wiki-default\TracRoadmap => TracRoadmap
 C:\Python24\share\trac\wiki-default\TracRss => TracRss
 C:\Python24\share\trac\wiki-default\TracSearch => TracSearch
 C:\Python24\share\trac\wiki-default\TracStandalone => TracStandalone
 C:\Python24\share\trac\wiki-default\TracSupport => TracSupport
 C:\Python24\share\trac\wiki-default\TracSyntaxColoring => TracSyntaxColoring
 C:\Python24\share\trac\wiki-default\TracTickets => TracTickets
 C:\Python24\share\trac\wiki-default\TracTicketsCustomFields => TracTicketsCusto
mFields
 C:\Python24\share\trac\wiki-default\TracTimeline => TracTimeline
 C:\Python24\share\trac\wiki-default\TracUnicode => TracUnicode
 C:\Python24\share\trac\wiki-default\TracUpgrade => TracUpgrade
 C:\Python24\share\trac\wiki-default\TracWiki => TracWiki
 C:\Python24\share\trac\wiki-default\WikiDeletePage => WikiDeletePage
 C:\Python24\share\trac\wiki-default\WikiFormatting => WikiFormatting
 C:\Python24\share\trac\wiki-default\WikiHtml => WikiHtml
 C:\Python24\share\trac\wiki-default\WikiMacros => WikiMacros
 C:\Python24\share\trac\wiki-default\WikiNewPage => WikiNewPage
 C:\Python24\share\trac\wiki-default\WikiPageNames => WikiPageNames
 C:\Python24\share\trac\wiki-default\WikiProcessors => WikiProcessors
 C:\Python24\share\trac\wiki-default\WikiRestructuredText => WikiRestructuredTex
t
 C:\Python24\share\trac\wiki-default\WikiRestructuredTextLinks => WikiRestructur
edTextLinks
 C:\Python24\share\trac\wiki-default\WikiStart => WikiStart
 Indexing repository

---------------------------------------------------------------------
Project environment for 'agiletestplugin' created.

You may now configure the environment by editing the file:

  E:\var\trac\agileplugintest\env\conf\trac.ini

If you'd like to take this new project environment for a test drive,
try running the Trac standalone web server `tracd`:

  tracd --port 8000 E:\var\trac\agileplugintest\env

Then point your browser to http://localhost:8000/env.
There you can also browse the documentation for your installed
version of Trac, including information on further setup (such as
deploying Trac to a real web server).

The latest documentation can also always be found on the project
website:

  http://trac.edgewall.org/

Congratulations!


E:\var\trac>