SVN & Whistles

From Secure Computing Wiki
Revision as of 23:08, 23 November 2010 by Ikoryle (Talk | contribs)

Jump to: navigation, search

This Page Is Currently Under Construction And Will Be Available Shortly, Please Visit Reserve Copy Page


Being tasked with migrating our current SVN repository to a new server, I thought I'd write up a bit of a how-to on the entire process for a FreeBSD 6.2 system, only using the FreeBSD ports tree.

I loosely followed the instructions from

Install Apache

The first step in to get Apache 2.2 installed, with the necessary options enabled. SVN uses the Berkeley DB as a backend. The MPM working this was simply copied from the above-mentioned OnLamp article. Do this with the following commands: <pre>cd /usr/ports/www/apache22 make WITH_BERKELEYDB=db42 WITH_MPM=worker install </pre>

While it's a different ports, I still consider this a part of Apache. For Trac, we're going to need mod_python. We can do this, again, from the FreeBSD ports tree. <pre>cd /usr/ports/www/mod_python3 make install clean</pre> Note: There exists a mod_python port, in additon to mod_python3. If you're going to use Apache 1.3, use mod_phthon. mod_python3 is required for Apache 2.2.

Install Subversion

Once we've got Apache installed, we can move on to installing Subversion. Again, we do this from ports. We must have python support for Trac, and APR/MOD_DAV_SVN for Apache 2.2 support. <pre>cd /usr/ports/devel/subversion make WITH_PYTHON=YES WITH_MOD_DAV_SVN=YES WITH_APACHE2_APR=YES install </pre>

Install MySQL

In the ONLamp article, they chose to use postgreSQL. Mostly because I have little experience with it, I'm choosing to install with MySQL. You could also use SQLite. Installation is pretty straight-forward: <pre>cd /usr/ports/databases/mysql50-server make install clean </pre>