Setup Trac on Windows
On 3 December 2012 in TechUsing Bitnami Trac Stack + Subversion (SVN).
- Setup environment
- Download Bitnami Track Stack (Windows installer) & install it
- Add to PATH
C:\Program Files\BitNami Trac Stack\python\Scripts C:\Program Files\BitNami Trac Stack\apache2\bin
- Create new project
- Cmd
$ trac-admin <trac env path> initenv
- path: C:\Users\Username\Projects\Trac\newproject
- Cmd
- Configure SVN repo
- Edit C:\Users\Username\Projects\Trac\newproject\conf\trac.ini
repository_dir = <svn repo path>
- path: C:\Users\Username\Projects\Repos\newproject (create using TortoiseSVN)
- Edit C:\Users\Username\Projects\Trac\newproject\conf\trac.ini
- Enable SVN module in Trac
- Edit trac.ini
[components]
tracopt.versioncontrol.svn.svn_fs.subversionconnector=enabled
acct_mgr.*=enabled
- Edit trac.ini
- Edit logo image
- Edit trac.ini
[header_logo] src = site/logo.png
- Place image in <trac env path>\htdocslogo.png
- Edit trac.ini
- Enable syntax highlighting
- Install pygments
# easy_install pygments
- Edit trac.ini
[mimeviewer] pygments_default_style = default
- Install pygments
- Add admin permission
- Cmd
$ trac-admin /path/to/projenv permission add admin TRAC_ADMIN
- /path/to/projectenv = c:\Users\Username\Projects\Trac\newproject
- Cmd
- Add user
- Cmd
# htdigest -c htpasswd "Trac" username
- -c = Create auth file (exclude when adding user)
htpasswd = C:\Users\Username\BitNami Trac Stack\apps\trac\users\htpasswd
“trac” = realm in http-dav-svn.conf below
- Cmd
- Enable SVN repo hosting on Apache
- Add in httpd.conf
# svn repository Include conf/extra/http-dav-svn.conf
- Create http-dav-svn.conf (copied from subversion.conf at https://blog.azwan082.my/2010/11/06/apache-svn-on-fedora/)
- Edit:
SVNParentPath C:\Users\Username\Projects\Repos AuthType Basic
AuthName
&AuthUserFile
follow values in c:\Program Files\BitNami Trac Stack\apps\trac\conf\trac.conf
* bitnami trac by default is using basic auth
- Add in httpd.conf
Trac can be accessed at http://localhost/trac. Checkout & commit to SVN repo at http://localhost/svn
Related posts:
-
Thunderbird calendar + WebDAV
-
Subversion on thumbdrive
-
Apache Caching Proxy Server
-
Using SVN
-
Apache + SVN on Fedora
-
Deploy Turbogears 2.1 on Fedora
-
Trac on Fedora
-
Git basic
Filed under Tech with tags Apache, Subversion, SVN, Trac
My partner and I stumbled over here different page and thought I might as well check
things out. I like what I see so now i’m following you.
Look forward to finding out about your web page for a second time.