Trac information can be found on http://trac.edgewall.org/wiki/TracOnWindows concerning Windows install On a clean standard Windows 2003 server with at least SP2 Begin by downloading -Python 2.5.4.msi -Setuptools-0.6c7.win32-py2.X.exe -Genshi-0.5.1.win32-py2.5 -subversion .4.2 (svn-1.4.2-setup.exe) -Trac-0.11.2.1.win32 Install in the following order 1 -Python 2.5.4.msi 2 -SetupTools 0.6c7 3 -Genshi 0.5.1 4 -Add to windows path (korrect to appriate application paths) ;c:\Python25;C:\Python25\Scripts 5 -ReBoot system Install 6 -Subversion 1.4.2 7 -Trac 0.11.2 8 -Create Projects (sample paths) -create c:\SVN (for Subversion) -Create C:\Projects\Trac (for Trac projects) Optional: if you're using Trac with Subversion you can create a new repository for your source code: >md c:\projects\svn 9 -then create the repository (remember full path for later use with Trac project creation) >svnadmin create c:\SVN\svn-test -this causes Subversion to create a subdirectory (c:\SVN\svn-test) containing the basics of a Subversion project - if svnadmin is not accessable, check path variable (reboot might solve problem) 10 -Create Trac projects place (trac-admin /path/to/myproject initenv) >trac-admin c:\projects\Trac initenv -starts a wizard -when asked for the "Path to repository" input the folder of the repository you just created C:/SVN/svn-test be sure to include the full path, including the drive letter, !!!!!! and use forward slashes.!!!!!! -------------------------------------------------------- Project Name [My Project]> svn-test + [Enter] Database connecting string [sqlite:db/trac.db]> [Enter] Repository type [svn]> [Enter] Path to repository [/path/to/repos]> c:/SVN/svn-test + [Enter] Template directory [C:\Python25\share\trac\templates]> [Enter] --------------------------------------------------------- 11 -For authentication create trace-digest.py file save the python code (between the -- lines) into c:\Python25\Scripts\trace-digest.py --------------------------------------------------------- from optparse import OptionParser import md5 # build the options usage = "usage: %prog [options]" parser = OptionParser(usage=usage) parser.add_option("-u", "--username",action="store", dest="username", type = "string", help="the username for whom to generate a password") parser.add_option("-p", "--password",action="store", dest="password", type = "string", help="the password to use") (options, args) = parser.parse_args() # check options if (options.username is None) or (options.password is None): parser.error("You must supply both the username and password") # Generate the string to enter into the htdigest file realm = 'trac' kd = lambda x: md5.md5(':'.join(x)).hexdigest() print ':'.join((options.username, realm, kd([options.username, realm, options.password]))) --------------------------------------------------------- 12- create userauth file if using httpd webserver and --auth parameter (OBS not for -basic--auth) >trac-digest.py -u "admin" -p adminpassword >> C:\projects\users.txt Set user admin to be the Trac administrator >trac-admin c:\projects\trac\svn-test permission add "admin" TRAC_ADMIN 13 -Startup the webserver to listen to port 80, with authentication. "*" means all projects !!!! NOTE no space in line below between --auth -> ,trac !!!! >tracd-script.py -p 80 --auth="*",C:\projects\users.txt,trac c:\projects\trac\svn-test 14 -test website surf to localhost -------- For smtp mail configuration, edit the trac.ini according to above, located in C:\Projects\conf or C:\Projects\%Projectname%\conf ----------------------- smtp_enabled = true #avilable smtp server, authentication username and password smtp_server = mail.maildomain.com smtp_user = username smtp_password = password #outgoing port smtp_port = 25 #automaticly send event mail to... ; -separation in list !!! can a lot of mails!!! smtp_always_cc = firstname@maildomain.com; secondname@maildomain.com #Displayed name and reply address smtp_from_name = Trac Administrator smtp_from = sendername@maildomain.com -----------