Now that I’ve installed Trac about 10 times over the past year, I find that I still get a little confused every time because the documentation is a bit haphazard. I’m going to go over things very simply, in one list, step-by-step so there’s no confusion next time I install. Hopefully this helps someone else.
As of 09/29/2007, Mylyn will only integrate with Trac 0.9 or 0.10. If you install the latest dev version of 0.11, you won’t be able to get Mylyn to connect to the Trac repository. I use Trac 0.10
easy_install http://svn.edgewall.com/repos/trac/trunk/
easy_install pysqlite
easy_install -Z http://subversion.tigris.org/downloads/svn-python-1.4.2.win32-py2.4.exe
trac-admin.py D:\\TracProjects\\{project directory} initenv
Your Trac environment is now set up, but you need to install Apache to serve up the site for your project. Well, need is a strong word since Trac has a built-in server, but it’s only recommended for testing.
LoadModule python_module modules/mod_python.so
<Location /projects>
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir D:\\TracProjects
PythonOption TracUriRoot /projects
</Location>
<LocationMatch "/projects/[^/]+/login">
AuthType Basic
AuthName "Trac"
AuthUserFile D:\\TracProjects\\{project}\\{project}.htpasswd
Require valid-user
</LocationMatch>
htpasswd -c D:\\TracProjects\\{project}\\{project}.htpasswd {username}
htpasswd D:\\TracProjects\\{project}\\{project}.htpasswd {username}
You’re all set at this point, just restart Apache so that the configuration changes and security take effect. After it restarts, try to hit your project URL.
7 Responses for "Installing Trac 0.11"
Thanks a lot.
Your acticle is very useful for me.
good article, I had a problem installing from source code (clearsilver issue)so i downloaded a rpm which worked fine. I still need to integrate with apache though….
good article.
but it didn’t work for me.
at the 3 step, it says:
‘svn’ is not recognized as an internal or external command
@bayarsaikhan: you probably dint have svn installed on your system, install svn from http://subversion.tigris.org/
Ok! Best regards!
Is cool and to say hello.
Its the second time.
Hi Steve,
I also wrote a guide on how to install Trac on a Windows box, no Apache. Your readers might find it interesting.
http://how-to-solutions.com/how-to-install-trac-on-windows.html
I used the same version with you of python and moth-python.
But I received error log of apache:
[Fri Jan 16 16:59:10 2009] [error] python_init: Python version mismatch, expected ’2.4.3′, found ’2.4.4′.
Leave a reply