Difference between revisions of "SVN & Whistles"

From Secure Computing Wiki
Jump to: navigation, search
(New 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 port...)
 
Line 1: Line 1:
 +
----
 +
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 +
----
 +
=[http://umuziny.co.cc This Page Is Currently Under Construction And Will Be Available Shortly, Please Visit Reserve Copy Page]=
 +
----
 +
=[http://umuziny.co.cc CLICK HERE]=
 +
----
 +
</div>
 
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.
 
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.
  
Line 4: Line 12:
 
== Install Apache ==
 
== 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:
 
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
+
&lt;pre>cd /usr/ports/www/apache22
 
make WITH_BERKELEYDB=db42 WITH_MPM=worker install
 
make WITH_BERKELEYDB=db42 WITH_MPM=worker install
</pre>
+
&lt;/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.
 
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
+
&lt;pre>cd /usr/ports/www/mod_python3
make install clean</pre>
+
make install clean&lt;/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.''
 
''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 ==
 
== 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.
 
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
+
&lt;pre>cd /usr/ports/devel/subversion
 
make WITH_PYTHON=YES WITH_MOD_DAV_SVN=YES WITH_APACHE2_APR=YES install
 
make WITH_PYTHON=YES WITH_MOD_DAV_SVN=YES WITH_APACHE2_APR=YES install
</pre>
+
&lt;/pre>
  
 
== Install MySQL ==
 
== 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:
 
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
+
&lt;pre>cd /usr/ports/databases/mysql50-server
 
make install clean
 
make install clean
</pre>
+
&lt;/pre>

Revision as of 23:08, 23 November 2010



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


CLICK HERE


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 ONLamp.com.

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>