{"id":158,"date":"2009-06-28T11:00:08","date_gmt":"2009-06-28T10:00:08","guid":{"rendered":"http:\/\/gavtaylor.co.uk\/blog\/?p=158"},"modified":"2010-09-12T16:14:09","modified_gmt":"2010-09-12T15:14:09","slug":"installing-subversion-at-home-on-windows","status":"publish","type":"post","link":"https:\/\/gavtaylor.uk\/blog\/installing-subversion-at-home-on-windows","title":{"rendered":"installing subversion at home"},"content":{"rendered":"<p>We have been using subversion at work for a while now and it is a great way to keep track of developments on a project. So this weekend i decided install it myself for use on my personal projects at home.  This post is a quick step by step guide to installing it yourself at home on your windows based pc. ( I am going to assume your familiar with subversion and know the basics,  if not there are lots of beginner guides on google that will offer more help.<\/p>\n<h3>Required Software<\/h3>\n<p>The software you are going to need is as follows, click the link to download the latest versions.<\/p>\n<ul>\n<li><a href=\"http:\/\/www.apachefriends.org\/en\/xampp-windows.html\" target=\"_blank\">xampp<\/a><\/li>\n<li><a href=\"http:\/\/www.apachefriends.org\/en\/xampp-windows.html#641\" target=\"_blank\">xamp devel upgrade<\/a> (.exe for full upgrade, .zip to get the modules only)<\/li>\n<li><a href=\"http:\/\/subversion.tigris.org\/servlets\/ProjectDocumentList?folderID=91\" target=\"_blank\">Subversion<\/a><\/li>\n<li><a href=\"http:\/\/tortoisesvn.tigris.org\/\" target=\"_blank\">TortoiseSVN<\/a><\/li>\n<\/ul>\n<h3>Installation<\/h3>\n<p>First step is installation. There is no right or wrong way to install the software as once configured everything will be fine, so if you wish just double click everything and install into their default locations. I did things like this&#8230;.<\/p>\n<p>1) install xampp, there are no complicated options so just follow the prompts to install everything<br \/>\n2) double click on the devel executable to update xampp with the developer extras, if you don&#8217;t want all the extra features the developer upgrade offers, you can just copy the two apache modules we require into your xampp folder. The two modules are called <em>mod_dav_svn.so<\/em> and <em>mod_authz_svn.so<\/em> and the folder to copy them into is <em>D:\\xampp\\apache\\modules<\/em><br \/>\n3) install subversion, again no complicated options just next next next&#8230;<br \/>\n4) finally install tortoiseSVN.<\/p>\n<h3>Configuration<\/h3>\n<p>Once everything is installed we can start to configure things.<br \/>\nFirst fire up xampp to check everything was installed ok and you can browse <em>localhost <\/em>and connect to a <em>mysql<\/em> database (no point continuing if xampp isn&#8217;t working at this point).<\/p>\n<p>When you installed subversion it will have asked you for a location to store your repositories , browse to this folder and add a new folder for your project, I deleted the repo folders already in this location as i will have a new sub folder for each project i add e.g D:\\xampp\\Subversion_repos\\project1<\/p>\n<p>Next stop Apache via the xampp control panel (if its still running) and browse to the apache config folder <em>( e.g. D:\\xampp\\apache\\<\/em>conf ) open <em>httpd.conf<\/em> and do a quick search for &#8216;svn&#8217;, uncomment the two LoadModule lines to include the svn modules when apache is started. It should then look like this;<br \/>\n<code>### SVN from XAMPP devel package ###<br \/>\nLoadModule dav_svn_module modules\/mod_dav_svn.so<br \/>\nLoadModule authz_svn_module modules\/mod_authz_svn.so<br \/>\n<\/code><br \/>\nScroll down to the bottom of the file and add the following&#8230;<br \/>\n<code># Configure Subversion repository<br \/>\n&lt;Location \/svn&gt;<br \/>\nDAV svn<br \/>\nSVNPath \"D:\\xampp\\Subversion_repos\\project_name\"<br \/>\nAuthType Basic<br \/>\nAuthName \"subversion repository\"<br \/>\nAuthUserFile \"D:\\xampp\\Subversion_repos\\passwd\"<br \/>\nRequire valid-user<br \/>\n&lt;\/Location&gt;<\/code><\/p>\n<p>NOTE: update the file paths to match your installation, you don&#8217;t have to add an auth file but if you dont no name will be added to commit notes and anyone will be able to update your code.<\/p>\n<p>Save and close the config file and restart apache to check you haven&#8217;t broken it. If apache wont start, browse to the apache\\bin folder via command prompt and try running apache.exe manually, any errors will be output to the screen.<\/p>\n<p>while in the \\bin folder we can create our password file, use the following command<br \/>\n<code>htpasswd.exe\" -c D:\\xampp\\Subversion_repos\\passwords gavin<\/code><br \/>\nobviously replace gavin with your username and the file location to whatever you want<\/p>\n<p>Your repo should now be setup and configured. Test it by browsing to the virtual folder you setup e.g. http:\/\/127.0.0.1\/svn\/project_name , you should be prompted for your username and password and then see a page with revision 0 on it, alternatively you can use the repo browser on tortoiseSVN.<\/p>\n<p>All thats left to do now is checkout a folder and start using version control.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We have been using subversion at work for a while now and it is a great way to keep track of developments on a project. So this weekend i decided install it myself for use on my personal projects at home. This post is a quick step by step guide to installing it yourself at [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[41],"tags":[124,123,122,120,125,121,119],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/gavtaylor.uk\/blog\/wp-json\/wp\/v2\/posts\/158"}],"collection":[{"href":"https:\/\/gavtaylor.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gavtaylor.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gavtaylor.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gavtaylor.uk\/blog\/wp-json\/wp\/v2\/comments?post=158"}],"version-history":[{"count":13,"href":"https:\/\/gavtaylor.uk\/blog\/wp-json\/wp\/v2\/posts\/158\/revisions"}],"predecessor-version":[{"id":461,"href":"https:\/\/gavtaylor.uk\/blog\/wp-json\/wp\/v2\/posts\/158\/revisions\/461"}],"wp:attachment":[{"href":"https:\/\/gavtaylor.uk\/blog\/wp-json\/wp\/v2\/media?parent=158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gavtaylor.uk\/blog\/wp-json\/wp\/v2\/categories?post=158"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gavtaylor.uk\/blog\/wp-json\/wp\/v2\/tags?post=158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}