<?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>Brian Wigginton &#187; Apache</title>
	<atom:link href="http://www.bwigg.com/category/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bwigg.com</link>
	<description>Lab and Nerdery</description>
	<lastBuildDate>Fri, 03 Feb 2012 04:15:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>LAMP Stack Optimizations for Small Servers</title>
		<link>http://www.bwigg.com/2011/01/lamp-stack-optimizations-for-small-servers/</link>
		<comments>http://www.bwigg.com/2011/01/lamp-stack-optimizations-for-small-servers/#comments</comments>
		<pubDate>Fri, 21 Jan 2011 07:07:22 +0000</pubDate>
		<dc:creator>bawigga</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.bwigg.com/?p=262</guid>
		<description><![CDATA[This WordPress blog is running on a 256MB Slicehost VPS. Here are the settings I have in place to keep Apache and MySQL responsive. Without these settings, the server would often come to a grinding hault and SSH interactions would become very slow and sometimes hang. Apache - httpd.conf - mpm_prefork_module Settings &#60;IfModule mpm_prefork_module&#62; StartServers [...]]]></description>
			<content:encoded><![CDATA[<p>This WordPress blog is running on a 256MB Slicehost VPS. Here are the settings I have in place to keep Apache and MySQL responsive. Without these settings, the server would often come to a grinding hault and SSH interactions would become very slow and sometimes hang.</p>
<p><strong>Apache - httpd.conf - mpm_prefork_module Settings</strong><br />
<code></p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;">&lt;<span style="color: #000000; font-weight:bold;">IfModule</span> mpm_prefork_module&gt;
    <span style="color: #00007f;">StartServers</span>          <span style="color: #ff0000;">2</span>
    <span style="color: #00007f;">MinSpareServers</span>       <span style="color: #ff0000;">2</span>
    <span style="color: #00007f;">MaxSpareServers</span>       <span style="color: #ff0000;">4</span>
    <span style="color: #00007f;">MaxClients</span>            <span style="color: #ff0000;">50</span>
    <span style="color: #00007f;">MaxRequestsPerChild</span>   <span style="color: #ff0000;">500</span>
&lt;/<span style="color: #000000; font-weight:bold;">IfModule</span>&gt;</pre></div></div>

<p></code></p>
<p>I found that I saved a bunch of memory just by using less apache processes. Instead of spawing 8 processes by default I'm only going to spawn one and limit the max spares to 4, which means after some load I should only have 4 processes lingering around waiting to serve pages.</p>
<p><strong>MySQL - my.cnf settings</strong><br />
<code></p>

<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;">skip<span style="color: #CC0099;">-</span><span style="color: #990099; font-weight: bold;">innodb</span>
skip<span style="color: #CC0099;">-</span><span style="color: #990099; font-weight: bold;">bdb</span>
skip<span style="color: #CC0099;">-</span>ndbcluster</pre></div></div>

<p></code></p>
<p>I dropped mysql's memory useage by about 11M (sitting right under 5M right now) just by disabling innodb support. I've also done some very heavy WordPress caching using wp-supercache. this basically caches every page and post so that I'm just serving up static html content instead of processing the entire WordPress stack for every page load.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bwigg.com/2011/01/lamp-stack-optimizations-for-small-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Subversion: Repository on Subdomain</title>
		<link>http://www.bwigg.com/2009/10/subversion-repository-on-subdomain/</link>
		<comments>http://www.bwigg.com/2009/10/subversion-repository-on-subdomain/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 18:54:00 +0000</pubDate>
		<dc:creator>bawigga</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://www.bwigg.com/?p=93</guid>
		<description><![CDATA[Tutorial explaining how to setup a Subversion repository on a subdomain using Apache2.]]></description>
			<content:encoded><![CDATA[<p>This is a tutorial on how to setup a Subversion repository on a subdomain with Apache. This assumes you have Subversion and Apache already installed on your system.</p>
<p><strong>Subversion Setup</strong></p>
<p>First you need to create a repository somewhere in your file system. Then grant apache permissions on that directory.</p>
<p><code>svnadmin create /var/svn/repository<br />
sudo chown -R www-data:www-data /var/svn/repository</code></p>
<p><strong>Controlling Access</strong></p>
<p>Access to the repo via the web will be controlled by an htpasswd file located at /<code>var/svn/svn-auth-file</code>. Use the <code>htpasswd</code> command to create the file.</p>
<p><code>htpasswd -c /var/svn/svn-auth-file &lt;username&gt;</code></p>
<p>Execute the script again without the -c argument to add more people to the list.</p>
<p><code>htpasswd /var/svn/svn-auth-file &lt;username_two&gt;</code></p>
<p><strong>Apache Setup</strong></p>
<p>I usually setup Apache to use Names VirtualHosts to handle multiple websites. We'll make a new named virtualhost for subversion repository.</p>
<p><code>&lt;VirtualHost *:80&gt;<br />
ServerName svn.your_domain.com<br />
&lt;location /&gt;<br />
DAV svn<br />
SVNPath /var/svn/repository</code></p>
<p><code> AuthType Basic<br />
AuthName "Subversion repository"<br />
AuthUserFile /var/svn/svn-auth-file<br />
Require valid-user<br />
&lt;/location&gt;<br />
&lt;/VirtualHost&gt;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bwigg.com/2009/10/subversion-repository-on-subdomain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

