<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Kwatog &#38; Co &#187; centos</title>
	<atom:link href="http://kwatog.com/tag/centos/feed/" rel="self" type="application/rss+xml" />
	<link>http://kwatog.com</link>
	<description>tech notes and general nonsense</description>
	<lastBuildDate>Fri, 04 May 2012 07:34:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>How To Install Subversion on CentOS</title>
		<link>http://kwatog.com/blog/how-to-install-subversion-on-centos/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-install-subversion-on-centos</link>
		<comments>http://kwatog.com/blog/how-to-install-subversion-on-centos/#comments</comments>
		<pubDate>Sun, 12 Jun 2011 20:00:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=570</guid>
		<description><![CDATA[I finally decided to setup an online version control and chose subversion (instead of cvs which I use on my macbook). Initially, I was thinking of subscribing to github but the prospect of paying monthly did not bode well especially that it would only be me who will be updating the codes. Github has a&#8230;]]></description>
			<content:encoded><![CDATA[<p>I finally decided to setup an online version control and chose subversion (instead of cvs which I use on my macbook). Initially, I was thinking of subscribing to github but the prospect of paying monthly did not bode well especially that it would only be me who will be updating the codes. Github has a free service though. But that&#8217;s if you open-source your code.<br />
<span id="more-570"></span><br />
Ok, enough for the chatter. Here&#8217;s the steps for installing subversion.</p>
<p><strong>Step 1: Install SubVersion via yum</strong><br />
<code>yum install mod_dav_svn subversion</code></p>
<p><strong>Step 2: Edit Apache Config</strong><br />
<code>vi /etc/httpd/conf/httpd.conf</code></p>
<p>make sure to uncomment the following lines.<br />
<strong>LoadModule authn_file_module modules/mod_authn_file.so<br />
LoadModule dav_module modules/mod_dav.so<br />
</strong></p>
<p><strong>Step 3: Restart Apache</strong><br />
<code>service httpd start</code></p>
<p><strong>Step 4: Edit subversion.conf</strong><br />
<code><br />
cd /etc/httpd/conf.d/<br />
vi subversion.conf<br />
</code><br />
make sure the modules below are also uncommented<br />
LoadModule dav_svn_module     modules/mod_dav_svn.so<br />
LoadModule authz_svn_module   modules/mod_authz_svn.so</p>
<p>Add the following to allow a basic authentication and point Apache to where the actual repository resides.<br />
<code><br />
&lt;Location /repos&gt;<br />
   DAV svn<br />
   SVNParentPath /var/www/svn/repos</p>
<p>   # Limit write permission to list of valid users.<br />
   &lt;LimitExcept GET PROPFIND OPTIONS REPORT&gt;<br />
      # Require SSL connection for password protection.<br />
      # SSLRequireSSL</p>
<p>      AuthType Basic<br />
      AuthName "Authorization Realm"<br />
      AuthUserFile /etc/svn-auth-conf<br />
      Require valid-user<br />
   &lt;/LimitExcept&gt;<br />
&lt;/Location&gt;<br />
</code></p>
<p><strong>VPS ALERT!!!!</strong><br />
Since I&#8217;m using Virtual Private Server (VPS) and suPHP, I have the code below. Take note that the location is inside the VirtualHost directive.<br />
<code><br />
&lt;VirtualHost *:80&gt;<br />
    ServerAdmin support@domain.com<br />
    DocumentRoot /var/www/domain.com<br />
    ServerName domain.com<br />
    ServerAlias *.domain.com<br />
    suPHP_Engine on<br />
    suPHP_UserGroup myuser myuser<br />
    AddHandler x-httpd-php .php .php3 .php4 .php5<br />
    suPHP_AddHandler x-httpd-php<br />
    ErrorLog logs/domain.com-error_log<br />
    LogFormat "%h %l %u %t "%r" %>s %b" common<br />
    CustomLog logs/domain.com-access_log common<br />
    &lt;Location /repos&gt;<br />
      DAV svn<br />
      SVNParentPath /var/www/domain.com/repos      SetHandler repos</p>
<p>     &lt;LimitExcept GET PROPFIND OPTIONS REPORT&gt;<br />
      AuthType Basic<br />
      AuthName &quot;Authorization Realm&quot;<br />
      AuthUserFile /etc/svn-auth-conf<br />
      Require valid-user<br />
    &lt;/LimitExcept&gt;</p>
<p>&lt;/Location>&gt;<br />
&lt;/VirtualHost&gt;<br />
</code><br />
<strong>Step 5: Set the Password for your Users</strong><br />
<code><br />
[root@vps ~]# htpasswd -cm /etc/svn-auth-conf yourusername<br />
New password:<br />
Re-type new password:<br />
Adding password for user yourusername<br />
[root@vps ~]# htpasswd -m /etc/svn-auth-conf anotherusername<br />
New password:<br />
Re-type new password:<br />
Adding password for user anotherusername<br />
</code></p>
<p><strong>Step 6: Create Your Repository</strong><br />
<code><br />
[root@vps ~]# cd /var/www/ -- Or wherever you placed your path above<br />
[root@vps ~]# mkdir svn<br />
[root@vps ~]# cd svn<br />
[root@vps ~]# svnadmin create repos<br />
[root@vps ~]# chown -R apache:apache repos<br />
[root@vps ~]# service httpd restart<br />
</code></p>
<hr/>
Source : http://wiki.centos.org/HowTos/Subversion</p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/how-to-install-subversion-on-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change Ownership of File/Folder (chown)</title>
		<link>http://kwatog.com/blog/linux/change-ownership-of-filefolder-chown/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=change-ownership-of-filefolder-chown</link>
		<comments>http://kwatog.com/blog/linux/change-ownership-of-filefolder-chown/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 17:25:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[change ownership]]></category>
		<category><![CDATA[chown]]></category>

		<guid isPermaLink="false">http://kwatog.com/?p=115</guid>
		<description><![CDATA[chown kwatog /usr/kwatog]]></description>
			<content:encoded><![CDATA[<p><code>chown kwatog /usr/kwatog</code></p>
]]></content:encoded>
			<wfw:commentRss>http://kwatog.com/blog/linux/change-ownership-of-filefolder-chown/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

