TRAC: Installing Trac the Hard Way

Verdict: Don't bother trying to install Trac with Python 2.5... it's better to use Python 2.4.

Step 1: Download the following files:
A. clearsilver-0.9.14.win32-py2.4.exe
B. MySQL-python-1.2.2.win32-py2.4.exe
C. python-2.4.4.msi
D. svn-python-1.4.4.win32-py2.4.exe
E. trac-0.10.4.win32.exe

Step 1: Install Python 2.4 (python-2.4.4.msi) to C:\Konami\Python

Step 2: Install SVN Python 1.4.4 (svn-python-1.4.4.win32-py2.4.exe). Installer will determine installation directory.

Step 3: Install ClearSilver 0.9.14 (clearsilver-0.9.14.win32-py2.4.exe). Installer will determine installation directory.

Step 4: Install MySQL Python 1.2.2 (MySQL-python-1.2.2.win32-py2.4.exe). Installer will determine installation directory.

Step 5: Install Trac 0.10.4 (trac-0.10.4.win32.exe). Installer will determine installation directory.

Step 6. Alter the 1st line in:
C:\Konami\Python\Scripts\trac-admin
C:\Konami\Python\Scripts\tracd
to:
C:\Konami\Python\python.exe

Step 7: open mysql

Step 8: create database `trac` default character set utf8 collate utf8_bin;

Step 9: open cygwin

Step 10: cd "C:\Konami\Python\scripts"

Step 11: mkdir "C:\Konami\Web\Apache\htdocs\trac"

Step 12: ./trac-admin "C:\Konami\Web\Apache\htdocs\trac" initenv
A. Local SVN
B. mysql://root:123456@localhost:3306/trac
C. svn
D. C:/Konami/Web/Apache/htdocs/svn
E. C:/Konami/Python/share/trac/templates

Step 13: ./tracd --port 8000 "C:/Konami/Web/Apache/htdocs/trac"

Step 14: Open Firefox, goto http://localhost:8000/trac

EDIT (ADDITIONAL STEPS)

Step 15: Install SVN: TortoiseSVN-1.4.4.9706-win32-svn-1.4.4.msi

Step 16: Create repository in "C:/Konami/Web/Apache/htdocs/svn"
A. Manually create folder /svn
B. Right click INSIDE the folder
C. Tortoise SVN > Create repository here...

Step 17: Copy trac.ini into "C:/Konami/Web/Apache/htdocs/trac/conf"

Step 18: Create svn.auth for svn authentication
A. Goto Web\Apache\bin
B. htpasswd -c C:\Konami\Web\Apache\conf\svn.auth dyu
C. Enter password  x 2
D. Add the following line to "C:\WINDOWS\system32\drivers\etc\hosts"
127.0.0.2      svn.localhost
E. Add the following to "C:\Konami\Web\Apache\conf\extra\httpd-vhosts.conf
<VirtualHost 127.0.0.2>
    DocumentRoot "C:/Konami/Web/Apache/htdocs/svn"
    ServerName svn.localhost.com
    ServerAlias www.svn.localhost.com
    <Location />
        DAV svn
        SVNPath "C:/Konami/Web/Apache/htdocs/svn"
        AuthType Basic
        AuthName "Subversion Repository"
        AuthUserFile "C:\Konami\Web\Apache\conf\svn.auth"
        Require valid-user
    </Location>
</VirtualHost>

No comments: