<?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>Switching... &#187; Apache</title>
	<atom:link href="http://switch.richard5.net/category/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://switch.richard5.net</link>
	<description>How to build your Mac into a internet server using open source software</description>
	<lastBuildDate>Mon, 25 May 2009 14:13:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>New location Apache and PHP in new instruction set</title>
		<link>http://switch.richard5.net/2007/01/31/new-location-apache-and-php-in-new-instruction-set/</link>
		<comments>http://switch.richard5.net/2007/01/31/new-location-apache-and-php-in-new-instruction-set/#comments</comments>
		<pubDate>Wed, 31 Jan 2007 20:32:27 +0000</pubDate>
		<dc:creator>Richard5</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://switch.richard5.net/2007/01/31/new-location-apache-and-php-in-new-instruction-set/</guid>
		<description><![CDATA[Just wanted to see if there are any objections to move the Apache and PHP installations from their current location in &#8216;/Library/&#8217; to &#8216;/usr/local/&#8217; The layout for Apache will become: &#60;layout DIYMacServer&#62; prefix: /usr/local/apache2 exec_prefix: ${prefix} bindir: ${exec_prefix}/bin sbindir: ${exec_prefix}/bin libdir: ${exec_prefix}/lib libexecdir: ${exec_prefix}/modules mandir: ${prefix}/man sysconfdir: /etc/httpd/ datadir: /var/www installbuilddir: ${datadir}/build errordir: ${datadir}/error iconsdir: [...]]]></description>
			<content:encoded><![CDATA[<p>Just wanted to see if there are any objections to move the Apache and PHP installations from their current location in &#8216;/Library/&#8217; to &#8216;/usr/local/&#8217;</p>
<p>The layout for Apache will become:</p>
<pre class=blocked>&lt;layout DIYMacServer&gt;
    prefix:        /usr/local/apache2
    exec_prefix:   ${prefix}
    bindir:        ${exec_prefix}/bin
    sbindir:       ${exec_prefix}/bin
    libdir:        ${exec_prefix}/lib
    libexecdir:    ${exec_prefix}/modules
    mandir:        ${prefix}/man
    sysconfdir:    /etc/httpd/
    datadir:       /var/www
    installbuilddir: ${datadir}/build
    errordir:      ${datadir}/error
    iconsdir:      ${datadir}/icons
    htdocsdir:     ${datadir}/htdocs
    manualdir:     ${datadir}/manual
    cgidir:        ${datadir}/cgi-bin
    includedir:    ${prefix}/include
    localstatedir: /var
    runtimedir:    ${localstatedir}/run
    logfiledir:    ${localstatedir}/log/httpd
    proxycachedir: ${localstatedir}/cache/httpd
&lt;/Layout&gt;
</pre>
<p>This brings everything in-line with normal other installs. The configuration is as it was with the original Apache in &#8216;<code>/etc/httpd</code>&#8216; and the log, cache and pid file are all in &#8216;<code>/var</code>&#8216;. Although I&#8217;m still having doubts about the <code>datadir</code>, I would have put it in &#8216;<code>/var/www/</code>&#8216; but on the normal OS X install it would be in &#8216;<code>/Library/WebServer/</code>&#8216;. What do you think ?</p>
<p>PHP5 will be located in &#8216;<code>/usr/local/php5</code>&#8216;, the <code>php.ini</code> file will be located in &#8216;<code>/etc</code>&#8216;. </p>
<p>I hope to open up the new site tomorrow if all goes well&#8230;</p>
<p class="akst_link"><a href="http://switch.richard5.net/?p=205&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_205" class="akst_share_link">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://switch.richard5.net/2007/01/31/new-location-apache-and-php-in-new-instruction-set/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Apache upgrade to 2.2.4, adapted documentation</title>
		<link>http://switch.richard5.net/2007/01/14/apache-upgrade-to-224-adapted-documentation/</link>
		<comments>http://switch.richard5.net/2007/01/14/apache-upgrade-to-224-adapted-documentation/#comments</comments>
		<pubDate>Sun, 14 Jan 2007 08:43:31 +0000</pubDate>
		<dc:creator>Richard5</dc:creator>
				<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://switch.richard5.net/2007/01/14/apache-upgrade-to-224-adapted-documentation/</guid>
		<description><![CDATA[Well it has been a few days since I got the email for the new release of Apache and I was going to write about it sooner. But as happens often I got sidetracked and didn&#8217;t think of it until error reports came in via email and comments that there was something wrong with my [...]]]></description>
			<content:encoded><![CDATA[<p>Well it has been a few days since I got the email for the <a href="http://www.apache.org/dist/httpd/Announcement2.2.html">new release of Apache</a> and I was going to write about it sooner. But as happens often I got sidetracked and didn&#8217;t think of it until error reports came in via email and comments that there was something wrong with my compilation instructions.</p>
<p>It looks like we need an extra flag to compile properly namely the &#8220;<code>--with-included-apr</code>&#8221; option to force internal APR functionality and not from another package. The <a href="http://switch.richard5.net/isp-in-a-box-v2/installing-apache-on-mac-os-x/">installation page</a> has been updated accordingly !</p>
<p>There are more changes and bugs fixed besides this change, you can read all about them at the <a href="http://httpd.apache.org/download.cgi">download page</a> of apache, read the Changes file. I can&#8217;t link to it directly as it is dynamically altered to link to a mirror in your neighborhood.</p>
<p class="akst_link"><a href="http://switch.richard5.net/?p=197&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_197" class="akst_share_link">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://switch.richard5.net/2007/01/14/apache-upgrade-to-224-adapted-documentation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updated to v2 on my own server</title>
		<link>http://switch.richard5.net/2006/09/13/updated-to-v2-on-my-own-server/</link>
		<comments>http://switch.richard5.net/2006/09/13/updated-to-v2-on-my-own-server/#comments</comments>
		<pubDate>Wed, 13 Sep 2006 13:02:27 +0000</pubDate>
		<dc:creator>Richard5</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PostFix]]></category>

		<guid isPermaLink="false">http://switch.richard5.net/2006/09/13/updated-to-v2-on-my-own-server/</guid>
		<description><![CDATA[I used yesterday to recompile Postfix, Courier-Auth, Apache and PHP with the 5.0.24a MySQL libraries. I just used my own instructions to compile everything. I first did Postfix and Courier-auth as they would cause the least problems when it would go wrong. My backup mailserver would still receuve all mail and forward it to me [...]]]></description>
			<content:encoded><![CDATA[<p>I used yesterday to recompile Postfix, Courier-Auth, Apache and PHP with the 5.0.24a MySQL libraries. I just used my own <a href="http://switch.richard5.net/isp-in-a-box-v2/">instructions</a> to compile everything. </p>
<p>I first did Postfix and Courier-auth as they would cause the least problems when it would go wrong. My backup mailserver would still receuve all mail and forward it to me when the mailserver is back online. It all went without a hitch, just did a restart of the programs and all was running as expected.</p>
<p>Apache posed an issue, how to compile and install, followed by compiling PHP without disturbing all the people looking at my sites. In the end it was simple. Compile and install Apache2, don&#8217;t restart Apache so the old version keeps running but the new software is available on disk. Then compile and install PHP using the new Apache installation files and when that is done restart Apache and all would be fine. Well that&#8217;s what I thought&#8230;</p>
<p>There was a small error in the modules that I included in the httpd.conf. Some of them, all concerning authentication, where rewritten and given different    names. I was still trying to load the old ones as I didn&#8217;t update my httpd.conf to reflect these changes. So Apache2 wouldn&#8217;t start. I just commented out the old modules and added the new ones in my httpd.conf and presto, Apache 2.2.3 and PHP 5.1.6 are now running on my server, together with Postfix 2.2.3.</p>
<p>They&#8217;ve been running for almost a day now and I haven&#8217;t gotten any complaints yet. </p>
<p>If you are still running &#8220;ISP in a box&#8221; version 1 and want to upgrade but are still a bit afraid on how to do this let me know and I&#8217;ll help out.</p>
<p><strong>Update:</strong><br />
Just found out there was an error, got a call on the phone from some of my friends that they couldn&#8217;t email anymore. When checking the logfiles I foud out I forgot a step after compiling and installing Courier auth:</p>
<pre class=blocked>
sudo chmod o+x /usr/local/var/spool/authdaemon
</pre>
<p>In the logfile there was the error:</p>
<pre class=blocked>
SASL authentication failure: cannot connect to Courier
      authdaemond: Permission denied
</pre>
<p>Which means I didn&#8217;t follow my own <a href="http://switch.richard5.net/isp-in-a-box-v2/configuring-the-mail-server-components/configuring-sasl-for-smtp-authentication/">instructions</a> !</p>
<p class="akst_link"><a href="http://switch.richard5.net/?p=158&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_158" class="akst_share_link">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://switch.richard5.net/2006/09/13/updated-to-v2-on-my-own-server/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Rotating your Apache logfiles</title>
		<link>http://switch.richard5.net/2006/08/21/rotating-your-apache-logfiles/</link>
		<comments>http://switch.richard5.net/2006/08/21/rotating-your-apache-logfiles/#comments</comments>
		<pubDate>Mon, 21 Aug 2006 18:43:10 +0000</pubDate>
		<dc:creator>Richard5</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">http://switch.richard5.net/2006/08/21/rotating-your-apache-logfiles/</guid>
		<description><![CDATA[Wow, did I forget to do something. I was just cleaning up my mac mini server. Well that&#8217;s what you do when you&#8217;ve been playing around with lots of configurations and compiled different versions of software to see if it will work. When I found out that I completely forgot about the logfiles for my [...]]]></description>
			<content:encoded><![CDATA[<p>Wow, did I forget to do something. I was just cleaning up my mac mini server. Well that&#8217;s what you do when you&#8217;ve been playing around with lots of configurations and compiled different versions of software to see if it will work. When I found out that I completely forgot about the logfiles for my Apache installation. Some of the logfiles of the more popular sites where already a whopping 100+ Mb. </p>
<p>Normally, for the Apple installed Apache, the logfiles would reside in <code>/var/log/httpd</code>, but I didn&#8217;t think and just followed the standard layout that was provided by the installation which directed the logfiles into <code>/Library/Apache2/logs</code> as you can see in the <a href="http://switch.richard5.net/isp-in-a-box-v2/installing-apache-on-mac-os-x/">installation document</a>. This means that the default weekly script (located in <code>/etc/periodic/weekly</code>) that takes care of the regular maintenance of your Mac, and rotates your Apache logfiles, didn&#8217;t take care of my new Apache2 logfiles.<span id="more-152"></span></p>
<p>So I&#8217;ve created a new script that rotates my Apache2 logfiles without having to change everything. You can download my <a href="http://switch.richard5.net/serverinstall/apache.local.txt">apache.local</a> script and copy it into your /etc/periodic/weekly/ directory, give it proper flags/rights to make it executable using:</p>
<pre class=blocked>
sudo chown root:wheel /etc/periodic/weekly/apache.local
sudo chmod +x /etc/periodic/weekly/apache.local
</pre>
<p>Then test it out by running:</p>
<pre class=blocked>
sudo /etc/periodic/weekly/apache.local
</pre>
<p>Now your logfiles won&#8217;t fill up your harddrive unnecessarily and by keeping smaller logfiles your Apache will run a bit better as well. Please note that your logfiles should have a filename that ends with <code>log</code> or it won&#8217;t work.</p>
<p><strong>Note:</strong> please vote where the logfiles should reside (before I start updating the installation documents), in /var/log or /Library/Apache2/logs in <a href="http://forum.richard5.net/viewtopic.php?t=9">the related forum topic</a>. You need to register and wait for account activation if you haven&#8217;t already. Sorry, it&#8217;s needed to prevent those pesky spammers.</p>
<p class="akst_link"><a href="http://switch.richard5.net/?p=152&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_152" class="akst_share_link">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://switch.richard5.net/2006/08/21/rotating-your-apache-logfiles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finished installation instructions on MySQL, Apache and PHP</title>
		<link>http://switch.richard5.net/2006/08/13/finished-installation-instructions-on-mysql-apache-and-php/</link>
		<comments>http://switch.richard5.net/2006/08/13/finished-installation-instructions-on-mysql-apache-and-php/#comments</comments>
		<pubDate>Sun, 13 Aug 2006 20:13:53 +0000</pubDate>
		<dc:creator>Richard5</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://switch.richard5.net/2006/08/13/finished-installation-instructions-on-mysql-apache-and-php/</guid>
		<description><![CDATA[This as taken me much, much longer than I ever planned it to take. First there was the introduction of the Intel based Mac&#8217;s that I needed to comprehend. Secondly the many problems I&#8217;d encountered with the shared library support in the MySQL as many of you have read in previous posts. Third there was [...]]]></description>
			<content:encoded><![CDATA[<p>This as taken me much, much longer than I ever planned it to take. First there was the introduction of the Intel based Mac&#8217;s that I needed to comprehend. Secondly the many problems I&#8217;d encountered with the shared library support in the MySQL as many of you have read in previous posts. Third there was the happy occasion of the birth of my daughter which prevented me from spending much time behind the screen. </p>
<p>But it&#8217;s done, I&#8217;ve finally finished the instruction for installing (and compiling) MySQL 5, Apache 2 and PHP 5. Hope you are able to use them well.   </p>
<ul>
<li><a href="http://switch.richard5.net/isp-in-a-box-v2/installing-mysql-on-mac-os-x/">Installing MySQL</a></li>
<li><a href="http://switch.richard5.net/isp-in-a-box-v2/installing-apache-on-mac-os-x/">Compiling and installing Apache 2</a></li>
<li><a href="http://switch.richard5.net/isp-in-a-box-v2/installing-php-on-mac-os-x/">Compiling and installing PHP 5</a></li>
</ul>
<p>I&#8217;m currently working on the instructions for the mailserver as there are some tweaks needed to get that working with the current setup. There where some issues with Intel based Macs and SSL support but I&#8217;ve got that solved. Hope to get that finished in a very short time&#8230; (not naming dates here, getting careful&#8230; <img src='http://switch.richard5.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> )</p>
<p class="akst_link"><a href="http://switch.richard5.net/?p=147&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_147" class="akst_share_link">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://switch.richard5.net/2006/08/13/finished-installation-instructions-on-mysql-apache-and-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Documented securing (HTTPS) virtual hosts in Apache</title>
		<link>http://switch.richard5.net/2006/08/06/documented-securing-https-virtual-hosts-in-apache/</link>
		<comments>http://switch.richard5.net/2006/08/06/documented-securing-https-virtual-hosts-in-apache/#comments</comments>
		<pubDate>Sun, 06 Aug 2006 20:41:49 +0000</pubDate>
		<dc:creator>Richard5</dc:creator>
				<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://switch.richard5.net/2006/08/06/documented-securing-https-virtual-hosts-in-apache/</guid>
		<description><![CDATA[Just a quick post, after I just found out how to do this in a very simple way, about some new documentation I created on how-to simply secure multiple virtual domains on your webserver. It&#8217;s not perfect (there will be warnings in the browser), but it will work. Continue and read the page to see [...]]]></description>
			<content:encoded><![CDATA[<p>Just a quick post, after I just found out how to do this in a very simple way, about some new documentation I created on how-to simply secure multiple virtual domains on your webserver. It&#8217;s not perfect (there will be warnings in the browser), but it will work. Continue and read <a href="http://switch.richard5.net/isp-in-a-box-v2/installing-apache-on-mac-os-x/how-to-secure-https-your-virtual-domains/">the page</a> to see how simple it can be.</p>
<p>It&#8217;s the most simple way to do this without spending any money on official certificates or multiple ip-addresses. Especially that last point was the most difficult to solve. It seems, but I don&#8217;t know for sure as I&#8217;m not an expert on the subject, that it isn&#8217;t possible to configure more than one certificate per ip-address. Forgot the correct explanation and won&#8217;t go into wild guessing&#8230;</p>
<p>It works for me and I hope it will for you as well.</p>
<p><strong>Note:</strong> People will get a warning that your certificate isn&#8217;t signed by a certified authority and if you use different domain names the browser will complain that the certificate and the domain don&#8217;t match. But if the user will accept the warning and continues the access to the website will be secured by SSL. This is very usefull if you don&#8217;t want your password to be send in the clear.</p>
<p class="akst_link"><a href="http://switch.richard5.net/?p=143&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_143" class="akst_share_link">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://switch.richard5.net/2006/08/06/documented-securing-https-virtual-hosts-in-apache/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Documented adding virtual hosts in Apache</title>
		<link>http://switch.richard5.net/2006/05/11/documented-adding-virtual-hosts-in-apache/</link>
		<comments>http://switch.richard5.net/2006/05/11/documented-adding-virtual-hosts-in-apache/#comments</comments>
		<pubDate>Thu, 11 May 2006 21:00:26 +0000</pubDate>
		<dc:creator>Richard5</dc:creator>
				<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://switch.richard5.net/2006/05/11/documented-adding-virtual-hosts-in-apache/</guid>
		<description><![CDATA[Just a short post, I had a lot of questions from people on how they should go forward setting up websites on their newly installed Apache2 webserver. I had documented how to do this for the postfix mailserver from the beginning of this project. So here is the long overdue documentation that makes it all [...]]]></description>
			<content:encoded><![CDATA[<p>Just a short post, I had a lot of questions from people on how they should go forward setting up websites on their newly installed Apache2 webserver. I had documented <a href="http://switch.richard5.net/isp-in-a-box-using-a-mac-mini/configuring-the-mail-server/configuring-postfix-with-virtual-domains-using-mysql/">how to do this for the postfix mailserver</a> from the beginning of this project. So here is the long overdue documentation that makes it all clear on <a href="http://switch.richard5.net/isp-in-a-box-v2/installing-apache-on-mac-os-x/adding-virtual-hosts-to-your-apache-installation-on-os-x/">how to setup name-based virtual hosts</a> on Mac OS X. This by the way works for all versions of Apache.</p>
<p class="akst_link"><a href="http://switch.richard5.net/?p=122&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_122" class="akst_share_link">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://switch.richard5.net/2006/05/11/documented-adding-virtual-hosts-in-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>First preview of ISP in a box 2.0</title>
		<link>http://switch.richard5.net/2006/04/03/first-preview-of-isp-in-a-box-20/</link>
		<comments>http://switch.richard5.net/2006/04/03/first-preview-of-isp-in-a-box-20/#comments</comments>
		<pubDate>Mon, 03 Apr 2006 20:31:03 +0000</pubDate>
		<dc:creator>Richard5</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://switch.richard5.net/2006/04/03/first-preview-of-isp-in-a-box-20/</guid>
		<description><![CDATA[I&#8217;m rewriting, as discussed earlier, the ISP in a box documentation. Most effort is currently being put into removing the dependancies from the Server Logistics installation packages. They are very slow in updating their releases and I didn&#8217;t like to depend on them in case there is another security issue. The other item I wanted [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m rewriting, as discussed earlier, the ISP in a box documentation. Most effort is currently being put into removing the dependancies from the <a href="http://www.serverlogistics.com/">Server Logistics</a> installation packages. They are very slow in updating their releases and I didn&#8217;t like to depend on them in case there is another security issue. The other item I wanted to address was the remarks I got on improving the installation process itself. People suggested if I could provide the configuration files and compilation scripts to prevent some errors and make the whole process a lot easier. </p>
<p>So here is the <a href="http://switch.richard5.net/isp-in-a-box-v2/">first public preview of the first pages of the new documentation</a>. it&#8217;s not yet ready to be used properly as I only got MySQL and Apache2 covered. PHP is coming before the end of the week. But I wanted to see how you like the new way of documenting. Hope you like it&#8230;</p>
<p>Two more remarks:</p>
<ul>
<li>I&#8217;ve created a <a href="http://switch.richard5.net/donations/">page</a> to keep you informed on the funding of the new Intel based Mac mini. Donations and AdSense income are going strong and I think I can order an Intel based Mac mini before the end of the summer. I you want to contribute to this effort as well, use the PayPal button on the right side of the page.</li>
<li>I don&#8217;t like the phrase &#8220;ISP in a box&#8221; too much but I still can&#8217;t think of another one that covers what I&#8217;m documenting here. So I wanted to ask you, can you think of a better phrase or slogan ? Or do you think &#8220;ISP in a box&#8221; is good enough ? Please let me know what you think.
</li>
</ul>
<p class="akst_link"><a href="http://switch.richard5.net/?p=92&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_92" class="akst_share_link">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://switch.richard5.net/2006/04/03/first-preview-of-isp-in-a-box-20/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Upgraded Apache to version 2.0.55</title>
		<link>http://switch.richard5.net/2006/02/28/upgraded-apache-to-version-2055/</link>
		<comments>http://switch.richard5.net/2006/02/28/upgraded-apache-to-version-2055/#comments</comments>
		<pubDate>Tue, 28 Feb 2006 09:57:49 +0000</pubDate>
		<dc:creator>Richard5</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://switch.richard5.net/?p=75</guid>
		<description><![CDATA[I was stuck with a problem I encountered a few weeks ago when I got back from my holiday. I was trying to post my holiday snapshots on my webserver to show to my friends, when I noticed that the big pictures didn&#8217;t want to load completely in the browser. They only downloaded for about [...]]]></description>
			<content:encoded><![CDATA[<p>I was stuck with a problem I encountered a few weeks ago when I got back from my holiday. I was trying to post my holiday snapshots on my webserver to show to my friends, when I noticed that the big pictures didn&#8217;t want to load completely in the browser. They only downloaded for about 1/3 in the browser and I had to refresh the page several times to get the full photo. I&#8217;ve been banging my head on this for some time until David W. pointed me to a bug in Apache 2.0.54 that caused the error. He also explained how I could upgrade to 2.0.55 and keep all the things I had configured with the package from Server Logistics in place. If you have the Apache package running from them you might as well follow these instructions as well.<span id="more-75"></span></p>
<p>First download <a href="http://httpd.apache.org/download.cgi">Apache HTTP server version 2.0.55</a>. Unpack it into a directory and open the file <code>config.layout</code> for editing and add the following code at the end of the file.</p>
<p><code><br />
&lt;layout ServLog&gt;<br />
prefix: /Library/Apache2<br />
exec_prefix: ${prefix}<br />
bindir: ${exec_prefix}/bin<br />
sbindir: ${exec_prefix}/bin<br />
libdir: ${exec_prefix}/lib<br />
libexecdir: ${exec_prefix}/modules<br />
mandir: ${prefix}/man<br />
sysconfdir: ${prefix}/conf<br />
datadir: ${prefix}<br />
installbuilddir: ${datadir}/build<br />
errordir: ${datadir}/error<br />
iconsdir: ${datadir}/icons<br />
htdocsdir: ${datadir}/htdocs<br />
manualdir: ${datadir}/manual<br />
cgidir: ${datadir}/cgi-bin<br />
includedir: ${prefix}/include<br />
localstatedir: ${prefix}<br />
runtimedir: ${localstatedir}/logs<br />
logfiledir: ${localstatedir}/logs<br />
proxycachedir: ${localstatedir}/proxy<br />
&lt;/Layout&gt;<br />
</code></p>
<p>This configures the build and configuration process to mimic the configuration used by ServerLogistics and keeps everything in place as it is.  If you&#8217;ve done that then open a Terminal session, change to the directory in which you unpacked the source code and edited the <code>config.layout</code> file and run the following command:</p>
<p><code>./configure --enable-layout=ServLog --enable-mods-shared=all --with-ssl=/usr --with-mpm=prefork --enable-ssl --enable-dav --enable-cache --enable-proxy --enable-shared --disable-static --disable-unique-id --disable-ipv6 --enable-logio --enable-deflate --with-ldap --with-ldap-include=/usr/include --with-ldap-lib=/usr/lib --enable-ldap --enable-auth-ldap --enable-cgi --enable-cgid --enable-suexec<br />
</code></p>
<p>This will create and configure the Makefile for actually building the Apache webserver like the package from Server Logistics. When it&#8217;s done just execute the next command:</p>
<p><code>make</code></p>
<p>When that&#8217;s finished and you are sure (made a backup of your system and all) you can issue:</p>
<p><code>sudo make install</code></p>
<p>Stop and start Apache and you are running the new 2.0.55 version. Don&#8217;t do a restart as that just reloads the configuration. Use the Apache preference pane you installed earlier to stop and start it or use the <code>apachectl</code> command in the Terminal as a root user.</p>
<p class="akst_link"><a href="http://switch.richard5.net/?p=75&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_75" class="akst_share_link">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://switch.richard5.net/2006/02/28/upgraded-apache-to-version-2055/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Migrated to the mini, finally&#8230;</title>
		<link>http://switch.richard5.net/2006/01/03/migrated-to-the-mini-finally/</link>
		<comments>http://switch.richard5.net/2006/01/03/migrated-to-the-mini-finally/#comments</comments>
		<pubDate>Tue, 03 Jan 2006 14:55:07 +0000</pubDate>
		<dc:creator>Richard5</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Courier]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[PostFix]]></category>

		<guid isPermaLink="false">http://switch.richard5.net/?p=60</guid>
		<description><![CDATA[I&#8217;ve started the new year with migrating everything from my old Sun Ultra 5&#8242;s who have been running my internet services for the past few years to the Mac mini. The pages you are looking at now are served from a Mac mini as it was my intention for some time. The mini is setup [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve started the new year with migrating everything from my old Sun Ultra 5&#8242;s who have been running my internet services for the past few years to the Mac mini. The pages you are looking at now are served from a Mac mini as it was my intention for some time. The mini is setup using my own documentation with no deviation whatsoever. <span id="more-60"></span></p>
<p>It was quite easy doing the migration, just copying the HTML/PHP files, making a backup of all the databases and restoring them on the mini for the web part. For the mail server I used postfix admin to create all the mailboxes and aliases for all the domains. Then made backups from the original server and restored them on the new mini. </p>
<p>I did some tests on the web part, to see if everything was configured as it should and tested the mail server to see if it didn&#8217;t become another spam relay server and it blocked unwanted spammers from sending mail via my server. I asked a friend to try abuse my server and used the relay service at <a href="http://www.abuse.net/relay.html">www.abuse.net</a> to check independently. It all worked out. The server is secure, still could use some tweaking but I will report on that later.</p>
<p class="akst_link"><a href="http://switch.richard5.net/?p=60&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_60" class="akst_share_link">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://switch.richard5.net/2006/01/03/migrated-to-the-mini-finally/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

