<?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"
	>

<channel>
	<title>hostby.net</title>
	<atom:link href="http://hostby.net/home/feed/" rel="self" type="application/rss+xml" />
	<link>http://hostby.net/home</link>
	<description>Find your website a home with hostby.net</description>
	<pubDate>Tue, 26 Aug 2008 19:07:14 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
	<language>en</language>
			<item>
		<title>GetTickCount in Linux</title>
		<link>http://hostby.net/home/2008/08/21/gettickcount-linux/</link>
		<comments>http://hostby.net/home/2008/08/21/gettickcount-linux/#comments</comments>
		<pubDate>Thu, 21 Aug 2008 16:00:53 +0000</pubDate>
		<dc:creator>hostby.net</dc:creator>
		
		<category><![CDATA[Development]]></category>

		<category><![CDATA[gettickcount]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[port]]></category>

		<category><![CDATA[subspace]]></category>

		<guid isPermaLink="false">http://hostby.net/home/?p=75</guid>
		<description><![CDATA[Took me ages to find the EXACT equivalent but this seems to do the trick.
uint32_t GetTickCount(void)
{
tms tm;
return times(&#38;tm)*10;
}
At least it did on my port of ddirserv from Windows to Linux.
]]></description>
			<content:encoded><![CDATA[<p>Took me ages to find the EXACT equivalent but this seems to do the trick.</p>
<p><code>uint32_t GetTickCount(void)<br />
{<br />
tms tm;<br />
return times(&amp;tm)*10;<br />
}</code></p>
<p>At least it did on my <a href="http://forums.minegoboom.com/viewtopic.php?p=78134">port of ddirserv</a> from Windows to Linux.</p>
]]></content:encoded>
			<wfw:commentRss>http://hostby.net/home/2008/08/21/gettickcount-linux/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Value Plan: 3GB and 25GB only $5</title>
		<link>http://hostby.net/home/2008/08/18/value-plan-3gb-and-25gb-only-5/</link>
		<comments>http://hostby.net/home/2008/08/18/value-plan-3gb-and-25gb-only-5/#comments</comments>
		<pubDate>Mon, 18 Aug 2008 10:47:47 +0000</pubDate>
		<dc:creator>hostby.net</dc:creator>
		
		<category><![CDATA[Hosting Plans]]></category>

		<category><![CDATA[cheap]]></category>

		<category><![CDATA[value]]></category>

		<category><![CDATA[webhosting]]></category>

		<guid isPermaLink="false">http://hostby.net/home/?p=73</guid>
		<description><![CDATA[Start your online service in a stable and reliable environment.  This discounted plan is only limited by bandwidth and disk space, and there is always the option to purchase more.  Host ALL your sites in one account and grow your websites with our hosting.
This exclusive hosting plan gives you decent 3GB of disk [...]]]></description>
			<content:encoded><![CDATA[<p>Start your online service in a stable and reliable environment.  This discounted plan is only limited by bandwidth and disk space, and there is always the option to purchase more.  Host ALL your sites in one account and grow your websites with our hosting.</p>
<p>This exclusive hosting plan gives you decent <strong>3GB of disk space</strong> and <strong>25GB of premium bandwidth</strong> for only <strong>$5/month</strong>.</p>
<ul>
<li>3GB of hosting space for any legal content.</li>
<li>You can use our space for backups, image/video hosting, or even as a file store, the only limit we have is it must be legal in the USA!</li>
<li>50GB of high quality bandwidth each month</li>
<li><a href="http://www.php.net">PHP</a> 5</li>
<li>As many <a href="http://www.mysql.com/">MySql</a> databases as you want.</li>
<li>Multi-domain as standard, why waste money on 5 separate hosting accounts, when you can host all your domains at one site.  The number of domains you can host is only limited by the disk space in your account.</li>
<li>Email addresses and Mailboxes are only limited by your plans disk space.</li>
<li>Purchasing extra space or bandwidth is easy and simple.  We warn you before you go over your limits,  why worry about running out of space,  our hosting grows with you.</li>
</ul>
<p>Order now, use the form below.  If you want us to purchase a domain name for you we can do this, please contact sales for more information.  Alternatively you can buy a domain from our <a href="https://www.registryrocket.com/default.asp?ec=D479A4BB-1D4E-47F6-93A9-2">domain store</a> but you will probably get a better price if you buy from <a href="http://www.namecheap.com">Namecheap.</a></p>
<p>Be sure to read our <a href="http://hostby.net/home/terms-conditions/">Terms of Service</a> and <a href="http://hostby.net/home/acceptable-usage-policy/">Acceptable Usage Policy</a> before ordering.</p>
<p><strong>Order Now</strong></p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input name="on0" type="hidden" value="Options" />
<select name="os0"><option value="I have my own domain already">I have my own domain already (enter below)</option></select>
<input name="on1" type="hidden" value="My Domain Name" />
<br/></p>
<input maxlength="60" size="60" name="os1" type="text" /> <br/><br />
<input style="border:0;background-color:white" alt="PayPal - The safer, easier way to pay online." name="submit" src="https://www.paypal.com/en_GB/i/btn/btn_subscribeCC_LG.gif" type="image" /> <img src="https://www.paypal.com/en_GB/i/scr/pixel.gif" border="0" alt="" width="1" height="1" /></p>
<input name="cmd" type="hidden" value="_xclick-subscriptions" />
<input name="business" type="hidden" value="sales@hostby.net" />
<input name="item_name" type="hidden" value="3GB/25GB for 5$ hostby.net" />
<input name="no_shipping" type="hidden" value="1" />
<input name="no_note" type="hidden" value="1" />
<input name="currency_code" type="hidden" value="USD" />
<input name="lc" type="hidden" value="GB" />
<input name="bn" type="hidden" value="PP-SubscriptionsBF" />
<input name="a3" type="hidden" value="5.00" />
<input name="p3" type="hidden" value="1" />
<input name="t3" type="hidden" value="M" />
<input name="src" type="hidden" value="1" />
<input name="sra" type="hidden" value="1" />
</form>
<p>Remember if you want to purchase a domain name with your web hosting please contact us, or purchase the domain name first before ordering.</p>
]]></content:encoded>
			<wfw:commentRss>http://hostby.net/home/2008/08/18/value-plan-3gb-and-25gb-only-5/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Premier Plan: 10GB and 200GB only $20</title>
		<link>http://hostby.net/home/2008/08/05/premier-plan-10gb-and-200gb-only-20/</link>
		<comments>http://hostby.net/home/2008/08/05/premier-plan-10gb-and-200gb-only-20/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 18:58:59 +0000</pubDate>
		<dc:creator>hostby.net</dc:creator>
		
		<category><![CDATA[Hosting Plans]]></category>

		<category><![CDATA[bandwidth]]></category>

		<category><![CDATA[webhosting]]></category>

		<guid isPermaLink="false">http://hostby.net/home/?p=63</guid>
		<description><![CDATA[A fantastic offer for busy websites.  Get your websites started in a solid environment.  Another  inclusive plan only limited by the bandwidth and disk space of the plan, and always with the option to purchase more.  Host ALL your sites in one account, our hosting grows with your needs.
This exclusive hosting [...]]]></description>
			<content:encoded><![CDATA[<p>A fantastic offer for busy websites.  Get your websites started in a solid environment.  Another  inclusive plan only limited by the bandwidth and disk space of the plan, and always with the option to purchase more.  Host ALL your sites in one account, our hosting grows with your needs.</p>
<p>This exclusive hosting plan gives you <strong>10GB of disk space</strong> and a whopping <strong>200GB of bandwidth</strong> for only <strong>$20/month</strong>.</p>
<ul>
<li>10GB of hosting space for any legal content.</li>
<li>You can use our space for backups, image/video hosting, or even as a file store, the only limit we have is it must be legal in the USA!</li>
<li>200GB of high quality bandwidth each month</li>
<li><a href="http://www.php.net">PHP</a> 5.2</li>
<li>As many <a href="http://www.mysql.com/">MySql</a> databases as you want.</li>
<li>Multi-domain as standard, why waste money on 5 separate hosting accounts, when you can host all your domains at one site.  The number of domains you can host is only limited by the disk space in your account.</li>
<li>Email addresses and Mailboxes are only limited by your plans disk space.</li>
<li>Purchasing extra space or bandwidth is easy and simple.  We warn you before you go over your limits,  why worry about running out of space,  our hosting grows with you.</li>
</ul>
<p>Order now, use the form below.  If you want us to purchase a domain name for you we can do this, please contact sales for more information.  Alternatively you can buy a domain from our <a href="https://www.registryrocket.com/default.asp?ec=D479A4BB-1D4E-47F6-93A9-2">domain store</a> but you will probably get a better price if you buy from <a href="http://www.namecheap.com">Namecheap.</a></p>
<p>Be sure to read our <a href="http://hostby.net/home/terms-conditions/">Terms of Service</a> and <a href="http://hostby.net/home/acceptable-usage-policy/">Acceptable Usage Policy</a> before ordering.</p>
<p><strong>Order Now</strong></p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input name="on0" type="hidden" value="Options" />
<select name="os0"><option value="I have my own domain already">I have my own domain already (enter below)</option></select>
<input name="on1" type="hidden" value="My Domain Name" />
<br/></p>
<input maxlength="60" size="60" name="os1" type="text" /> <br/><br />
<input style="border:0;background-color:white" alt="PayPal - The safer, easier way to pay online." name="submit" src="https://www.paypal.com/en_GB/i/btn/btn_subscribeCC_LG.gif" type="image" /> <img src="https://www.paypal.com/en_GB/i/scr/pixel.gif" border="0" alt="" width="1" height="1" /></p>
<input name="cmd" type="hidden" value="_xclick-subscriptions" />
<input name="business" type="hidden" value="sales@hostby.net" />
<input name="item_name" type="hidden" value="10GB/200GB for 20$ hostby.net" />
<input name="no_shipping" type="hidden" value="1" />
<input name="no_note" type="hidden" value="1" />
<input name="currency_code" type="hidden" value="USD" />
<input name="lc" type="hidden" value="GB" />
<input name="bn" type="hidden" value="PP-SubscriptionsBF" />
<input name="a3" type="hidden" value="20.00" />
<input name="p3" type="hidden" value="1" />
<input name="t3" type="hidden" value="M" />
<input name="src" type="hidden" value="1" />
<input name="sra" type="hidden" value="1" />
</form>
<p>Remember if you want to purchase a domain name with your web hosting please contact us, or purchase the domain name first before ordering.</p>
]]></content:encoded>
			<wfw:commentRss>http://hostby.net/home/2008/08/05/premier-plan-10gb-and-200gb-only-20/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Monitoring with Monit</title>
		<link>http://hostby.net/home/2008/08/03/monitering-with-monit/</link>
		<comments>http://hostby.net/home/2008/08/03/monitering-with-monit/#comments</comments>
		<pubDate>Sun, 03 Aug 2008 16:03:40 +0000</pubDate>
		<dc:creator>hostby.net</dc:creator>
		
		<category><![CDATA[Random]]></category>

		<category><![CDATA[admin]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[monit]]></category>

		<category><![CDATA[munit]]></category>

		<guid isPermaLink="false">http://hostby.net/home/?p=55</guid>
		<description><![CDATA[There are two types of Linux Administrator; those that have discovered monit and those that have not.   monit is a daemon that sits in the background keeping an eye on everything that&#8217;s running on your server and reporting back to you if things crash.  Not only that, it can produce a pretty (more functional than [...]]]></description>
			<content:encoded><![CDATA[<p>There are two types of Linux Administrator; those that have discovered <a href="http://www.tildeslash.com/monit/">monit</a> and those that have not.   monit is a daemon that sits in the background keeping an eye on everything that&#8217;s running on your server and reporting back to you if things crash.  Not only that, it can produce a pretty (more functional than pretty) status screen for you to view, with lots of reassuring green text for everything that is running:</p>
<div class="wp-caption alignnone" style="width: 381px"><a href="http://www.tildeslash.com/monit/doc/shoots/monit47_httpd.png"><img title="Monit status screen" src="http://www.tildeslash.com/monit/doc/shoots/monit47_httpd.png" alt="Monit in action" width="371" height="249" /></a><p class="wp-caption-text">Monit in action</p></div>
<p>Once you&#8217;ve set it up by either <a title="monit manual" href="http://www.tildeslash.com/monit/doc/manual.php">reading the manual </a>or by reading a couple of the <a href="http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html">tutorials online</a> it requires very little maintenance.  Be careful if you are running apache2 as it needs a <a href="http://www.debian-administration.org/articles/269">slightly different setup</a>.  If a process fails or restarts monit will email you.</p>
<p>But the real power of monit is that not only does it report if a service fails, it can take action to correct the problem, and it can even take action before the problem causes a crash.   It can monitor CPU and Memory usage of a service so if they are using too much, or a process has crashed using 100% CPU it can be automatically restarted.  It will of course restart crashed services.</p>
<p>The best thing about monit is it saves having to write a set of shell scripts to keep an eye on each individual service, saving you significant time in administration.</p>
<p>If you just can&#8217;t get enough of monitoring you server Its close relative munit which is <a href="http://www.howtoforge.com/server_monitoring_monit_munin">extremely easy to setup on Debian</a> is good for long term monitoring as it produces some very pretty historical graphs, even up to a year back.  You have no excuse for not realising your hard disk will run out of space in 2 months time.  But you might forget to check so monit can be set to send you an email when you are approaching 95%.</p>
<div class="wp-caption alignnone" style="width: 386px"><a href="http://www.howtoforge.com/server_monitoring_monit_munin"><img title="Munit Graph Example" src="http://images.howtoforge.com/images/server_monitoring_monit_munin/1.png" alt="Munit Graph Example" width="376" height="495" /></a><p class="wp-caption-text">Munit Graph Example</p></div>
<p>We employ both monit and munit on our web servers to ensure maximum uptime.</p>
]]></content:encoded>
			<wfw:commentRss>http://hostby.net/home/2008/08/03/monitering-with-monit/feed/</wfw:commentRss>
		</item>
		<item>
		<title>10GB for $10 Exclusive</title>
		<link>http://hostby.net/home/2008/07/30/10gb-for-10-exclusive/</link>
		<comments>http://hostby.net/home/2008/07/30/10gb-for-10-exclusive/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 14:00:03 +0000</pubDate>
		<dc:creator>hostby.net</dc:creator>
		
		<category><![CDATA[Specials]]></category>

		<category><![CDATA[deal]]></category>

		<category><![CDATA[exclusive]]></category>

		<category><![CDATA[webhosting]]></category>

		<guid isPermaLink="false">http://hostby.net/home/?p=34</guid>
		<description><![CDATA[This offer has ended as we sold out of plans, you need to be quicker next time!
Here is a very special plan to get your websites started in a solid environment.  Once again we give you an all inclusive plan only limited by the bandwidth and disk space of the plan, and always with the [...]]]></description>
			<content:encoded><![CDATA[<p><strong>This offer has ended as we sold out of plans, you need to be quicker next time!</strong></p>
<p>Here is a very special plan to get your websites started in a solid environment.  Once again we give you an all inclusive plan only limited by the bandwidth and disk space of the plan, and always with the option to purchase more.  Host ALL your sites in one account, our hosting grows with your needs.</p>
<p>This exclusive hosting plan gives you <strong>10GB of disk space</strong> and a whopping <strong>200GB of bandwidth</strong> for only <strong>$10/month</strong>.</p>
<p>This offer is over we <strong>SOLD OUT</strong>.  </p>
]]></content:encoded>
			<wfw:commentRss>http://hostby.net/home/2008/07/30/10gb-for-10-exclusive/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Why you should NOT filter your email</title>
		<link>http://hostby.net/home/2008/07/28/why-should-not-filter-your-email/</link>
		<comments>http://hostby.net/home/2008/07/28/why-should-not-filter-your-email/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 21:10:26 +0000</pubDate>
		<dc:creator>hostby.net</dc:creator>
		
		<category><![CDATA[Random]]></category>

		<category><![CDATA[fail]]></category>

		<category><![CDATA[incidents]]></category>

		<guid isPermaLink="false">http://hostby.net/home/?p=26</guid>
		<description><![CDATA[I guess making a post like &#8220;Delivering your promises&#8221; is just asking for something to go wrong.  Karma is a funny thing.
Apologies to everyone who had trouble contacting us in the past week, unfortunately our junk mail filters decided to store all of the blocked mails in a folder and not send them on.  It [...]]]></description>
			<content:encoded><![CDATA[<p>I guess making a post like &#8220;<a href="http://hostby.net/home/2008/07/18/delivering-your-promises/">Delivering your promises</a>&#8221; is just asking for something to go wrong.  Karma is a funny thing.</p>
<p>Apologies to everyone who had trouble contacting us in the past week, unfortunately our junk mail filters decided to store all of the blocked mails in a folder and not send them on.  It has cost us several sales, as we have not been receiving sales emails.  All requests for refunds have been processed in full.   We&#8217;ve decided wading though tonnes of spam is better than losing potentially important sales and support emails from customers, so we have turned junk email filtering off on all of our email addresses.</p>
<p>Thanks for the image we borrowed from <a href="http://chrisonrails.wordpress.com/2007/12/30/epic-failures-of-2007/">Epic Failures of 2007</a></p>
<div id="attachment_27" class="wp-caption alignnone" style="width: 310px"><a href="http://hostby.net/home/wp-content/uploads/2008/07/epicfail.jpg"><img class="size-medium wp-image-27" title="epicfail" src="http://hostby.net/home/wp-content/uploads/2008/07/epicfail-300x240.jpg" alt="Epic Fail" width="300" height="240" /></a><p class="wp-caption-text">Epic Fail</p></div>
]]></content:encoded>
			<wfw:commentRss>http://hostby.net/home/2008/07/28/why-should-not-filter-your-email/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Delivering your promises</title>
		<link>http://hostby.net/home/2008/07/18/delivering-your-promises/</link>
		<comments>http://hostby.net/home/2008/07/18/delivering-your-promises/#comments</comments>
		<pubDate>Fri, 18 Jul 2008 19:04:06 +0000</pubDate>
		<dc:creator>hostby.net</dc:creator>
		
		<category><![CDATA[Random]]></category>

		<category><![CDATA[flame]]></category>

		<category><![CDATA[webhosting]]></category>

		<guid isPermaLink="false">http://hostby.net/home/?p=24</guid>
		<description><![CDATA[One thing that webhosting as a whole seems to have difficulties with is delivering it promises.  A great plan is floated up front my many webhosts,  only after they have signed up and suddenly they find out that they can&#8217;t use the disk space how they want.  Another very common situation is having CPU limits [...]]]></description>
			<content:encoded><![CDATA[<p>One thing that webhosting as a whole seems to have difficulties with is delivering it promises.  A great plan is floated up front my many webhosts,  only after they have signed up and suddenly they find out that they <a href="http://www.webhostingtalk.com/showthread.php?t=708283">can&#8217;t use the disk space</a> how they want.  Another very common situation is having CPU limits or Memory limits on the site which prevent you ever using the space and bandwidth you have bought.   Personally I think this kind of thing is giving web hosting a bad name, the internet is filled with stories of web hosting &#8220;scammers&#8221;.</p>
<p>Anyway I guess the point I&#8217;m making is web hosts should start selling more honestly, there will be a backlash to the current situation.  Many web hosting sites already will not let you advertise &#8220;Unlimited&#8221; plans as of course nothing is unlimited&#8230;</p>
<p>On a more cheery note, check this:<br />
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/2mtWu9aOFEk&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/2mtWu9aOFEk&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://hostby.net/home/2008/07/18/delivering-your-promises/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Centos 5 and mpm-itk</title>
		<link>http://hostby.net/home/2008/07/12/centos-5-and-mpm-itk/</link>
		<comments>http://hostby.net/home/2008/07/12/centos-5-and-mpm-itk/#comments</comments>
		<pubDate>Sat, 12 Jul 2008 14:21:12 +0000</pubDate>
		<dc:creator>hostby.net</dc:creator>
		
		<category><![CDATA[Development]]></category>

		<category><![CDATA[apache]]></category>

		<category><![CDATA[centos]]></category>

		<category><![CDATA[mpm-itk]]></category>

		<guid isPermaLink="false">http://hostby.net/home/?p=13</guid>
		<description><![CDATA[A long time ago someone got fed up with suexec suphp and other methods of preventing virtual hosting users messing each others accounts up.  They realised that the real problem was not that there was a module missing from Apache to do it, but rather the design of Apache is such that its impossible [...]]]></description>
			<content:encoded><![CDATA[<p>A long time ago someone got fed up with suexec suphp and other methods of preventing virtual hosting users messing each others accounts up.  They realised that the real problem was not that there was a module missing from Apache to do it, but rather the design of Apache is such that its impossible to make it secure in a per user way.  After reading Stuart Herbert <a href="http://blog.stuartherbert.com/php/2007/11/21/the-challenge-with-securing-shared-hosting/">discussion</a> of the pros and cons of different solutions to this problem and his <a href="http://blog.stuartherbert.com/php/2008/04/19/using-mpm-itk-to-secure-a-shared-server/">evaluation of mpm-itk</a> i decided to look into it further.</p>
<p>On nice solution that has  been developed is <a href="http://www.telana.com/peruser.php">mpm-peruser </a>but that seemed to spawn a great many processes and have performance issues so I took a look at the much simpler <a href="http://mpm-itk.sesse.net/">mpm-itk</a>.  Fortunately on Debian this module is already prepackaged, unfortunately CentOS does not have a rpm for it, nor could I find one by searching.  The only option left was to patch the source httpd rpm myself.</p>
<p><span id="more-13"></span></p>
<p>Unfortunately there is only a <a href="http://mitka.us/articles/mpm-itk/">guide for CentOS 4</a> online, which does not work with CentOS 5.  A little bit of searching on the CentOs wiki found me these two links</p>
<ul>
<li> <a href="http://www.owlriver.com/tips/non-root/">http://www.owlriver.com/tips/non-root/</a></li>
<li><a href="http://www.owlriver.com/tips/patching_srpms/">http://www.owlriver.com/tips/patching_srpms/</a></li>
</ul>
<p>The second was most useful as what we wanted to do was patch the SRPMS (Source RPMS) which are then compiled into RPMS.  By looking though the Diff file posted in the previous guide I was able to produce a modified .spec file, which I have attached at the end of this article along with the final RPMS.  Once we had the .spec file modified correctly I tried to compile the RPMs but came accross a very obsure error which was the result of the the latest mpm-itk patch not being compatable with the version of Apache that comes with CentOS 5.  To work around this I had to locate the older patch which is not directly linked on the website.  By a bit of googling and guesswork later I had found the location of the <a href="http://mpm-itk.sesse.net/apache2.2-mpm-itk-20070425-00.patch">older patch.</a></p>
<p>After these shinnigans the RPMS compiled and it was time to test them.  I soon realised I had to make a change to my /etc/sysconfig/httpd file to use the mpm-itk binary and edit httpd.conf to ensure I doesnt try to serve pages as the root user.</p>
<p><strong>Anyway&#8230;here is the guide.</strong></p>
<p>Standard Disclaimer myself and hostby.net take no responsibility for any damages, bad things or anything else that happens as the result of following this guide</p>
<p>First we ensure we are NOT the root user.  Building RPMS as root is a bad idea.</p>
<p>Once we are using a non-root user, we first need to setup our RPM build enviroment.<br />
<code>cd<br />
wget http://www.oldrpm.org/hintskinks/buildtree/RPM-build-tree.txt<br />
chmod 755 RPM-build-tree.txt<br />
./RPM-build-tree.txt<br />
</code><br />
Now create our own buiding area and download CentOS 5 apache2 SRPM.<br />
<code>mkdir ~/build<br />
mkdir ~/build/httpd-itk<br />
cd ~/build/httpd-itk<br />
wget http://isoredirect.centos.org/centos/5/os/SRPMS/httpd-2.2.3-11.el5_1.centos.3.src.rpm<br />
</code><br />
At this point its good to test you can build the RPM normally before we apply any patches<br />
<code>rpmbuild --rebuild httpd-2.2.3-11.el5_1.centos.3.src.rpm<br />
</code><br />
If this fails you might have to &#8220;yum install&#8221; some additional packages.  I&#8217;m assuming you managed to get this to work so we continue.</p>
<p>At this point we copy the rpm spec file for httpd to our own folder so we can customise it<br />
<code>cp ~/rpmbuild/SPECS/httpd.spec httpd-itk.spec<br />
</code><br />
To save you some effort I&#8217;ve provided both a diff and the .spec file i used. Basically you change the file to apply an additional patch and compile an extra mpm.</p>
<p><code>cd ~/rpmbuild/SOURCES<br />
wget http://mpm-itk.sesse.net/apache2.2-mpm-itk-20070425-00.patch<br />
nano apache2.2-mpm-itk-20070425-00.patch<br />
</code></p>
<p>I had to make one tiny change to the patch to make it compile.<br />
after this line (1878)</p>
<p><code>+#define MPM_NOTE_CHILD_KILLED(i) (MPM_CHILD_PID(i) = 0)<br />
</code><br />
Insert this extra row<br />
<code>+#define MPM_VALID_PID(p) (getpgid(p) == getpgrp())<br />
</code></p>
<p>Now we change back to our folder and use the spec file we modified (or the one i provided <a href="http://hostby.net/home/wp-content/uploads/2008/07/httpd-itk.spec">httpd-itk.spec</a>) and recompile the rpm.<br />
<code>cd ~/build/httpd<br />
rpmbuild -ba httpd-itk.spec<br />
</code><br />
If all goes well this should  compile with no errors.  In the folder ~/rpmbuild/RPMS you should have a nice new set of RPMS which include mpm-itk.  The only way to find out is of course to test it.  Now we change to root<br />
<code>su<br />
cd /home/userwebuildrpmsas/rpmbuild/RPMS<br />
rpm -U httpd-2.2.3-11.itk.3.i386.rpm  mod_ssl-2.2.3-11.itk.3.i386.rpm httpd-devel-2.2.3-11.itk.3.i386.rpm  httpd-manual-2.2.3-11.itk.3.i386.rpm<br />
</code><br />
Now check that mpm-itk has been installed.<br />
<code>httpd.itk -l<br />
</code><br />
Compiled in modules:<br />
core.c<br />
prefork.c<br />
http_core.c<br />
mod_so.c</p>
<p>In order for the httpd service to use the mpm you need to make a few changes as its disabled by default.  First of all edit httpd.conf and add the following lines.<br />
<code># itk modules</code></p>
<p>AssignUserID apache apache<br />
StartServers       8<br />
MinSpareServers    5<br />
MaxSpareServers   20<br />
ServerLimit      256<br />
MaxClients       256<br />
MaxRequestsPerChild  4000</p>
<p>Then edit /etc/sysconfig/httpd and add this line<br />
<code>HTTPD=/usr/sbin/httpd.itk</code></p>
<p>Restart apache and you should notice all the processes are httpd.itk now <img src='http://hostby.net/home/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Attachments</p>
<p><a href="http://hostby.net/home/wp-content/uploads/2008/07/httpd-223-11itk3i386.rpm">httpd-223-11itk3i386.rpm</a> <a href="http://hostby.net/home/wp-content/uploads/2008/07/httpd-devel-223-11itk3i386.rpm">httpd-devel-223-11itk3i386.rpm</a> <a href="http://hostby.net/home/wp-content/uploads/2008/07/httpd-manual-223-11itk3i386.rpm">httpd-manual-223-11itk3i386.rpm</a> <a href="http://hostby.net/home/wp-content/uploads/2008/07/mod_ssl-223-11itk3i386.rpm">mod_ssl-223-11itk3i386.rpm</a> <a href="http://hostby.net/home/wp-content/uploads/2008/07/httpd-itk.spec">httpd-itk.spec</a> <a href="http://hostby.net/home/wp-content/uploads/2008/07/httpdspec.diff">httpd.spec.diff</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hostby.net/home/2008/07/12/centos-5-and-mpm-itk/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Site Relaunch Special</title>
		<link>http://hostby.net/home/2008/07/07/site-relaunch-special/</link>
		<comments>http://hostby.net/home/2008/07/07/site-relaunch-special/#comments</comments>
		<pubDate>Mon, 07 Jul 2008 18:36:45 +0000</pubDate>
		<dc:creator>hostby.net</dc:creator>
		
		<category><![CDATA[Specials]]></category>

		<category><![CDATA[deal]]></category>

		<category><![CDATA[webhosting]]></category>

		<guid isPermaLink="false">http://hostby.net/home/?p=14</guid>
		<description><![CDATA[OFFER ENDS 1 August 2008 (15:00 GMT)
Its another one of our famous limited time only deals,  to celebrate the relaunch of hostby.net we offer this great deal to you for the whole of July!
Get 12 months of web hosting for only £5 (approx $12)

1GB of hosting space for any legal content.
You can use our space [...]]]></description>
			<content:encoded><![CDATA[<p><strong>OFFER ENDS 1 August 2008 (15:00 GMT)</strong></p>
<p>Its another one of our famous limited time only deals,  to celebrate the relaunch of hostby.net we offer this great deal to you for the whole of July!</p>
<p>Get 12 months of web hosting for only <strong>£5 (approx $12)</strong></p>
<ul>
<li>1GB of hosting space for any legal content.</li>
<li>You can use our space for backups, image/video hosting, or even as a file store, the only limit we have is it must be legal in the USA!</li>
<li>20GB of bandwidth each month</li>
<li><a href="http://www.php.net">PHP</a> 5.2</li>
<li>As many <a href="http://www.mysql.com/">MySql</a> databases as you want.</li>
<li>Multi-domain as standard, why waste money on 5 separate hosting accounts, when you can host all your domains at one site.  The number of domains you can host is only limited by the disk space in your account.</li>
<li>Email addresses and Mailboxes are only limited by your plans disk space.</li>
<li>Purchasing extra space or bandwidth is easy and simple.  We warn you before you go over your limits,  why worry about running out of space,  our hosting grows with you.</li>
</ul>
<p>Order now, use the form below.  If you want us to purchase a domain name for you we can do this, please contact sales for more information.  Alternatively you can buy a domain from our <a href="https://www.registryrocket.com/default.asp?ec=D479A4BB-1D4E-47F6-93A9-2">domain store</a> but you will probably get a better price if you buy from <a href="http://www.namecheap.com">Namecheap.</a></p>
<p>Be sure to read our <a href="http://hostby.net/home/terms-conditions/">Terms of Service</a> and <a href="http://hostby.net/home/acceptable-usage-policy/">Acceptable Usage Policy</a> before ordering.<br />
<br/><br />
<b>This offer has expired</b><br />
<br/></p>
]]></content:encoded>
			<wfw:commentRss>http://hostby.net/home/2008/07/07/site-relaunch-special/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Hello world!</title>
		<link>http://hostby.net/home/2008/07/04/hello-world/</link>
		<comments>http://hostby.net/home/2008/07/04/hello-world/#comments</comments>
		<pubDate>Fri, 04 Jul 2008 18:32:11 +0000</pubDate>
		<dc:creator>hostby.net</dc:creator>
		
		<category><![CDATA[News]]></category>

		<category><![CDATA[hello world]]></category>

		<guid isPermaLink="false">http://hostby.net/home/?p=1</guid>
		<description><![CDATA[Or should it be welcome back?
This is the first post after a major facelift our website has been finished.  We&#8217;re now powered by the wonders of Wordpress, in the next few months we will be adding a few more features to the website, including a discussion forum.
We hope you appreciate the new site and design.  [...]]]></description>
			<content:encoded><![CDATA[<h2>Or should it be welcome back?</h2>
<p>This is the first post after a major facelift our website has been finished.  We&#8217;re now powered by the wonders of <a href="http://wordpress.org">Wordpress</a>, in the next few months we will be adding a few more features to the website, including a discussion forum.</p>
<p>We hope you appreciate the new site and design.  Many thanks to <a href="http://20pirates.com/">Tony Pires</a> for his great free design which we have integrated into Wordpress.   Many hours of work have gone into this and our all new hosting control panel.</p>
<p>Please let us know what you think.</p>
<p>And on that note</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="src" value="http://www.youtube.com/v/uVZf8-hn2hw&amp;hl=en&amp;fs=1" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/uVZf8-hn2hw&amp;hl=en&amp;fs=1" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://hostby.net/home/2008/07/04/hello-world/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
