TracSetup

2009-02-10 4:45 PM

Setup Instructions

This set up assumes you have all the setup files:

Pre-setup

  • Create dir C:\Repository
  • Create dir C:\Repository\svn
  • Create dir C:\Repository\trac.db

make sure that java is installed on the machine

Setup Apache 2.0

  • stop IIS (IIS Admin under services)
  • run the set up MSI
  • change apache to run on port 81 (edit Listen line to say 'Listen 81')
  • restart apache
  • restart IIS Admin (and possibly World Wide Web Publishing)

Setup SVN 1.4.0

  • Unzip Subversion zip to c:\Program Files\Subversion
  • add subversion bin to the path
    • My Computer -> Properties -> Advnaced -> Enviroment Variables
    • select Path from System variables
    • add ';c:\Program Files\Subversion\bin' to the end

Configure Apache

  • copy *.so files from Subversion dir to apache modules dir
  • add mod_auth_sspi.so to apache modules dir
  • add the following lines to httpd.conf
    #webDAV LoadModule dav_module modules/mod_dav.so LoadModule dav_fs_module modules/mod_dav_fs.so # Subversion LoadModule dav_svn_module modules/mod_dav_svn.so LoadModule authz_svn_module modules/mod_authz_svn.so  #make sure this is before 'LoadModule auth_module modules/mod_auth.so' LoadModule sspi_auth_module modules/mod_auth_sspi.so   # Subversion <Location /svn>   DAV svn   # any /svn/foo URL will map to a repository C:/Repository/svn/foo   # I've only got it working using SVNPath!!   SVNPath C:/Repository/svn   AuthType SSPI   SSPIAuth On   SSPIAuthoritative On   SSPIDomain <domaincontroller>   SSPIOfferBasic On   Require valid-user </Location>  AddHandler cgi-script .cgi 

Setup Python 2.4

  • Run python 2.4 MSI
  • run svn-python exe
  • run mod_python exe
  • run pysqlite exe
  • run clearsilver exe
  • run the ez_setup.py file

Setup Trac

  • run trac setup exe
  • Run trac-admin
    • C:\Python24> python scripts/trac-admin c:/Repository/trac.db
    • Trac /Repository/trac.db> initenv
      Enter project name: ATD Development Database connection string [sqlite:db/trac.db]> (Just press enter to accept default) Enter path to repository: c:\Repository\svn Enter path to templates> (Just press enter to accept default) 
    • Trac /Repository/trac.db> permissions add am\\your.name TRAC_ADMIN
  • create dir C:\Python24\share\trac\cache
  • add the following the the apache config:
    LoadModule python_module modules/mod_python.so  <Location /trac>    SetHandler mod_python    PythonHandler trac.web.modpython_frontend     PythonOption TracEnv c:\Repository\trac.db    PythonOption TracUriRoot /trac    SetEnv PYTHON_EGG_CACHE C:\Python24\share\trac\cache </Location>  <Location /trac/login>   #NT Domain auth config   AuthType SSPI   SSPIAuth On   SSPIAuthoritative On   SSPIOfferBasic On    SSPIOmitDomain Off   # following line squishes bug #1168 if IE has troubles editing wiki pages.      SSPIBasicPreferred On    AuthName &#34;Project&#34;   Require valid-user </Location> 
  • move the webadmin zip to C:\Repository\trac.db\plugins and remove the ".zip"
Tags:
Home: WikiStart
What's new: Recently changed articles
You can subscribe to this wiki article using an RSS feed reader.