<?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>zedomax.com &#187; apache web server</title>
	<atom:link href="http://zedomax.com/blog/tag/apache-web-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://zedomax.com/blog</link>
	<description>Zedomax - The DIY, HOWTO, Mod, Hacks, Gadgets, and Tech Blog!</description>
	<lastBuildDate>Sat, 20 Mar 2010 01:15:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Server DIY &#8211; How To Set Up A Load Balanced High-Availability Apache Cluster!</title>
		<link>http://zedomax.com/blog/2009/03/25/server-diy-how-to-set-up-a-load-balanced-high-availability-apache-cluster/</link>
		<comments>http://zedomax.com/blog/2009/03/25/server-diy-how-to-set-up-a-load-balanced-high-availability-apache-cluster/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 03:32:04 +0000</pubDate>
		<dc:creator>max</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[Consumer]]></category>
		<category><![CDATA[DIY]]></category>
		<category><![CDATA[Educational]]></category>
		<category><![CDATA[Featured DIYs]]></category>
		<category><![CDATA[HOWTO]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[apache web server]]></category>
		<category><![CDATA[failure]]></category>
		<category><![CDATA[high availability]]></category>
		<category><![CDATA[incoming requests]]></category>
		<category><![CDATA[load balancer]]></category>
		<category><![CDATA[node]]></category>
		<category><![CDATA[server cluster]]></category>
		<category><![CDATA[single point]]></category>
		<category><![CDATA[trafficking]]></category>

		<guid isPermaLink="false">http://zedomax.com/blog/?p=14941</guid>
		<description><![CDATA[Well, here&#8217;s another way to setup a load balanced, high-availability apache cluster, this will be very informative if you are a webmaster working on high-trafficking sites.
This tutorial shows how to set up a two-node Apache web server cluster that provides high-availability. In front of the Apache cluster we create a load balancer that splits up [...]]]></description>
			<content:encoded><![CDATA[<p>Well, here&#8217;s another way to setup a load balanced, high-availability apache cluster, this will be very informative if you are a webmaster working on high-trafficking sites.</p>
<blockquote><p>This tutorial shows how to set up a two-node Apache web server cluster that provides high-availability. In front of the Apache cluster we create a load balancer that splits up incoming requests between the two Apache nodes. Because we do not want the load balancer to become another &#8220;Single Point Of Failure&#8221;, we must provide high-availability for the load balancer, too. Therefore our load balancer will in fact consist out of two load balancer nodes that monitor each other using <span class="system">heartbeat</span>, and if one load balancer fails, the other takes over silently.</p></blockquote>
<p><a target="_blank" href="http://www.howtoforge.com/high_availability_loadbalanced_apache_cluster" >via howtoforge</a></p>
<p><a target="_blank" href="http://www.linuxvirtualserver.org/docs/ha/ultramonkey.html" >UltraMonkey</a></p>
<p>Brought to you by: <a href="http://zedomax.com/blog" >Zedomax.com</a></p>
<p><a href="http://zedomax.com/blog/2009/03/25/server-diy-how-to-set-up-a-load-balanced-high-availability-apache-cluster/" >Server DIY &#8211; How To Set Up A Load Balanced High-Availability Apache Cluster!</a></p>

	<span style="display:none"><a href="http://zedomax.com/blog/tag/apache-web-server/" title="apache web server" rel="tag">apache web server</a>, <a href="http://zedomax.com/blog/category/technology/web-technology/blog/" title="Blog" rel="tag">Blog</a>, <a href="http://zedomax.com/blog/category/computer/" title="Computer" rel="tag">Computer</a>, <a href="http://zedomax.com/blog/category/misc/consumer-misc/" title="Consumer" rel="tag">Consumer</a>, <a href="http://zedomax.com/blog/category/diy/" title="DIY" rel="tag">DIY</a>, <a href="http://zedomax.com/blog/category/technology/educational/" title="Educational" rel="tag">Educational</a>, <a href="http://zedomax.com/blog/tag/failure/" title="failure" rel="tag">failure</a>, <a href="http://zedomax.com/blog/category/featured/featured-diys/" title="Featured DIYs" rel="tag">Featured DIYs</a>, <a href="http://zedomax.com/blog/category/diy/hack/" title="Hack" rel="tag">Hack</a>, <a href="http://zedomax.com/blog/tag/high-availability/" title="high availability" rel="tag">high availability</a>, <a href="http://zedomax.com/blog/category/diy/howto/" title="HOWTO" rel="tag">HOWTO</a>, <a href="http://zedomax.com/blog/tag/incoming-requests/" title="incoming requests" rel="tag">incoming requests</a>, <a href="http://zedomax.com/blog/tag/load-balancer/" title="load balancer" rel="tag">load balancer</a>, <a href="http://zedomax.com/blog/category/misc/" title="Misc" rel="tag">Misc</a>, <a href="http://zedomax.com/blog/tag/node/" title="node" rel="tag">node</a>, <a href="http://zedomax.com/blog/category/diy/projects/" title="Projects" rel="tag">Projects</a>, <a href="http://zedomax.com/blog/tag/server-cluster/" title="server cluster" rel="tag">server cluster</a>, <a href="http://zedomax.com/blog/tag/single-point/" title="single point" rel="tag">single point</a>, <a href="http://zedomax.com/blog/tag/trafficking/" title="trafficking" rel="tag">trafficking</a>, <a href="http://zedomax.com/blog/category/technology/web-technology/" title="Web" rel="tag">Web</a>, <a href="http://zedomax.com/blog/category/technology/web-technology/blog/wordpress/" title="Wordpress" rel="tag">Wordpress</a></span>

	<h3>Related posts</h3>
	<ul class="st-related-posts">
	<li><a href="http://zedomax.com/blog/2009/03/25/mysql-diy-how-to-set-up-a-load-balanced-mysql-cluster/" title="MySQL DIY &#8211; How To Set Up A Load-Balanced MySQL Cluster! (March 25, 2009)">MySQL DIY &#8211; How To Set Up A Load-Balanced MySQL Cluster!</a> </li>
	<li><a href="http://zedomax.com/blog/2009/05/22/usb-flash-drive-with-oled-display/" title="USB Flash Drive with OLED Display! (May 22, 2009)">USB Flash Drive with OLED Display!</a> </li>
	<li><a href="http://zedomax.com/blog/2009/03/25/server-diy-how-to-load-balance-with-linux-program-balance/" title="Server DIY &#8211; How to Load BalancE with Linux Program &#8220;Balance&#8221; (March 25, 2009)">Server DIY &#8211; How to Load BalancE with Linux Program &#8220;Balance&#8221;</a> </li>
	<li><a href="http://zedomax.com/blog/2008/07/28/linux-server-hack-how-to-setup-a-shell-script-to-auto-restart-apache-httpd-server/" title="Linux Server Hack &#8211; How to setup a Shell Script to Auto Restart Apache Httpd Server! (July 28, 2008)">Linux Server Hack &#8211; How to setup a Shell Script to Auto Restart Apache Httpd Server!</a> </li>
	<li><a href="http://zedomax.com/blog/2009/01/24/diy-and-howtos-from-guerilla-internet-marketing-blog/" title="DIY and HOWTOs from Guerilla Internet Marketing Blog (January 24, 2009)">DIY and HOWTOs from Guerilla Internet Marketing Blog</a> </li>
	<li><a href="http://zedomax.com/blog/2009/01/16/circuit-city-liquidation/" title="Circuit City Liquidation! (January 16, 2009)">Circuit City Liquidation!</a> </li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://zedomax.com/blog/2009/03/25/server-diy-how-to-set-up-a-load-balanced-high-availability-apache-cluster/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Server Hack &#8211; How to setup a Shell Script to Auto Restart Apache Httpd Server!</title>
		<link>http://zedomax.com/blog/2008/07/28/linux-server-hack-how-to-setup-a-shell-script-to-auto-restart-apache-httpd-server/</link>
		<comments>http://zedomax.com/blog/2008/07/28/linux-server-hack-how-to-setup-a-shell-script-to-auto-restart-apache-httpd-server/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 20:21:49 +0000</pubDate>
		<dc:creator>max</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[HOWTO]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[amp]]></category>
		<category><![CDATA[apache httpd server]]></category>
		<category><![CDATA[apache web server]]></category>
		<category><![CDATA[cool script]]></category>
		<category><![CDATA[dedicated servers]]></category>
		<category><![CDATA[fb]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[fi]]></category>
		<category><![CDATA[gnu gpl version]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux server]]></category>
		<category><![CDATA[lt]]></category>
		<category><![CDATA[root root]]></category>
		<category><![CDATA[script collection]]></category>
		<category><![CDATA[server hack]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://zedomax.com/blog/?p=8453</guid>
		<description><![CDATA[Well, I have been struggling with one of my dedicated servers and just found this cool script that will auto-restart the Apache httpd server if it goes out.
Save the following as restart.sh:

#!/bin/bash
# Apache Process Monitor
# Restart Apache Web Server When It Goes Down
# -------------------------------------------------------------------------
# Copyright (c) 2003 nixCraft project &#60;http://cyberciti.biz/fb/&#62;
# This script is licensed under [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I have been struggling with one of my dedicated servers and just found this cool script that will auto-restart the Apache httpd server if it goes out.</p>
<p>Save the following as <strong>restart.sh</strong>:</p>
<blockquote>
<pre class="bash"><span style="font-style: italic; color: #808080;">#!/bin/bash</span>
<span style="font-style: italic; color: #808080;"># Apache Process Monitor</span>
<span style="font-style: italic; color: #808080;"># Restart Apache Web Server When It Goes Down</span>
<span style="font-style: italic; color: #808080;"># -------------------------------------------------------------------------</span>
<span style="font-style: italic; color: #808080;"># Copyright <span style="font-weight: bold; color: #7a0874;">(</span>c<span style="font-weight: bold; color: #7a0874;">)</span> <span style="color: #000000;">2003</span> nixCraft project &lt;http://cyberciti.biz/fb/&gt;</span>
<span style="font-style: italic; color: #808080;"># This script is licensed under GNU GPL version <span style="color: #000000;">2.0</span> or above</span>
<span style="font-style: italic; color: #808080;"># -------------------------------------------------------------------------</span>
<span style="font-style: italic; color: #808080;"># This script is part of nixCraft shell script collection <span style="font-weight: bold; color: #7a0874;">(</span>NSSC<span style="font-weight: bold; color: #7a0874;">)</span></span>
<span style="font-style: italic; color: #808080;"># Visit http://bash.cyberciti.biz/ <span style="font-weight: bold; color: #000000;">for</span> <span style="font-weight: bold; color: #c20cb9;">more</span> information.</span>
<span style="font-style: italic; color: #808080;"># -------------------------------------------------------------------------</span>
<span style="font-style: italic; color: #808080;"># RHEL / CentOS / Fedora Linux restart command</span>
<span style="color: #007800;">RESTART=</span><span style="color: #ff0000;">"/sbin/service httpd restart"</span>

<span style="font-style: italic; color: #808080;"># uncomment <span style="font-weight: bold; color: #000000;">if</span> you are using Debian / Ubuntu Linux</span>
<span style="font-style: italic; color: #808080;">#<span style="color: #007800;">RESTART=</span></span><span style="color: #ff0000;">"/etc/init.d/apache2 restart"</span>

<span style="font-style: italic; color: #808080;">#path to pgrep command</span>
<span style="color: #007800;">PGREP=</span><span style="color: #ff0000;">"/usr/bin/pgrep"</span>

<span style="font-style: italic; color: #808080;"># Httpd daemon name,</span>
<span style="font-style: italic; color: #808080;"># Under RHEL/CentOS/Fedora it is httpd</span>
<span style="font-style: italic; color: #808080;"># Under Debian <span style="color: #000000;">4</span>.x it is apache2</span>
<span style="color: #007800;">HTTPD=</span><span style="color: #ff0000;">"httpd"</span>

<span style="font-style: italic; color: #808080;"># <span style="font-weight: bold; color: #c20cb9;">find</span> httpd pid</span>
<span style="color: #007800;">$PGREP</span> <span style="color: #007800;">$<span style="font-weight: bold; color: #7a0874;">{</span>HTTPD<span style="font-weight: bold; color: #7a0874;">}</span></span>

<span style="font-weight: bold; color: #000000;">if</span> <span style="font-weight: bold; color: #7a0874;">[</span> $? -ne <span style="color: #000000;">0</span> <span style="font-weight: bold; color: #7a0874;">]</span> <span style="font-style: italic; color: #808080;"># <span style="font-weight: bold; color: #000000;">if</span> apache not running</span>
<span style="font-weight: bold; color: #000000;">then</span>
 <span style="font-style: italic; color: #808080;"># restart apache</span>
 <span style="color: #007800;">$RESTART</span>
<span style="font-weight: bold; color: #000000;">fi

</span></pre>
</blockquote>
<p>Then setup a cron job like this: (usually in your <strong>sa-update</strong> file under <strong>/etc/cron.d</strong>)</p>
<blockquote><p>*/5 * * * * root /root/restart.sh  &gt;/dev/null 2&gt;&amp;1</p></blockquote>
<p><a target="_blank" href="http://bash.cyberciti.biz/web-server/restart-apache2-httpd-shell-script/" >via cyberciti</a></p>
<p>There&#8217;s also a program called <a target="_blank" href="http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html" >Monit</a> that will do more automation.</p>
<p>Brought to you by: <a href="http://zedomax.com/blog" >Zedomax.com</a></p>
<p><a href="http://zedomax.com/blog/2008/07/28/linux-server-hack-how-to-setup-a-shell-script-to-auto-restart-apache-httpd-server/" >Linux Server Hack &#8211; How to setup a Shell Script to Auto Restart Apache Httpd Server!</a></p>

	<span style="display:none"><a href="http://zedomax.com/blog/tag/amp/" title="amp" rel="tag">amp</a>, <a href="http://zedomax.com/blog/tag/apache-httpd-server/" title="apache httpd server" rel="tag">apache httpd server</a>, <a href="http://zedomax.com/blog/tag/apache-web-server/" title="apache web server" rel="tag">apache web server</a>, <a href="http://zedomax.com/blog/category/technology/web-technology/blog/" title="Blog" rel="tag">Blog</a>, <a href="http://zedomax.com/blog/tag/cool-script/" title="cool script" rel="tag">cool script</a>, <a href="http://zedomax.com/blog/tag/dedicated-servers/" title="dedicated servers" rel="tag">dedicated servers</a>, <a href="http://zedomax.com/blog/tag/fb/" title="fb" rel="tag">fb</a>, <a href="http://zedomax.com/blog/tag/fedora/" title="fedora" rel="tag">fedora</a>, <a href="http://zedomax.com/blog/tag/fi/" title="fi" rel="tag">fi</a>, <a href="http://zedomax.com/blog/tag/gnu-gpl-version/" title="gnu gpl version" rel="tag">gnu gpl version</a>, <a href="http://zedomax.com/blog/category/diy/hack/" title="Hack" rel="tag">Hack</a>, <a href="http://zedomax.com/blog/category/diy/howto/" title="HOWTO" rel="tag">HOWTO</a>, <a href="http://zedomax.com/blog/tag/linux/" title="Linux" rel="tag">Linux</a>, <a href="http://zedomax.com/blog/tag/linux-server/" title="linux server" rel="tag">linux server</a>, <a href="http://zedomax.com/blog/tag/lt/" title="lt" rel="tag">lt</a>, <a href="http://zedomax.com/blog/category/misc/" title="Misc" rel="tag">Misc</a>, <a href="http://zedomax.com/blog/tag/root-root/" title="root root" rel="tag">root root</a>, <a href="http://zedomax.com/blog/tag/script-collection/" title="script collection" rel="tag">script collection</a>, <a href="http://zedomax.com/blog/tag/server-hack/" title="server hack" rel="tag">server hack</a>, <a href="http://zedomax.com/blog/tag/shell-script/" title="shell script" rel="tag">shell script</a>, <a href="http://zedomax.com/blog/tag/ubuntu/" title="Ubuntu" rel="tag">Ubuntu</a>, <a href="http://zedomax.com/blog/category/technology/web-technology/" title="Web" rel="tag">Web</a>, <a href="http://zedomax.com/blog/category/technology/web-technology/blog/wordpress/" title="Wordpress" rel="tag">Wordpress</a></span>

	<h3>Related posts</h3>
	<ul class="st-related-posts">
	<li><a href="http://zedomax.com/blog/2009/08/17/web-server-hack-how-to-auto-restart-httpd-service-script/" title="Web Server Hack &#8211; How To Auto Restart HTTPD service script! (August 17, 2009)">Web Server Hack &#8211; How To Auto Restart HTTPD service script!</a> </li>
	<li><a href="http://zedomax.com/blog/2006/10/31/ubuntu-610-edgy-eft-review/" title="Ubuntu 6.10 Edgy Eft Review (October 31, 2006)">Ubuntu 6.10 Edgy Eft Review</a> </li>
	<li><a href="http://zedomax.com/blog/2009/03/08/top-5-geeks-linux-distros/" title="Top 5 Geek&#8217;s Linux Distros! (March 8, 2009)">Top 5 Geek&#8217;s Linux Distros!</a> </li>
	<li><a href="http://zedomax.com/blog/2006/10/31/linux-shortcuts/" title="Linux shortcuts (October 31, 2006)">Linux shortcuts</a> </li>
	<li><a href="http://zedomax.com/blog/2009/08/16/linux-diy-how-to-create-an-ssh-tunnel-and-share-internet-through-another-computer/" title="Linux DIY &#8211; How to Create an SSH Tunnel and Share Internet Through Another Computer! (August 16, 2009)">Linux DIY &#8211; How to Create an SSH Tunnel and Share Internet Through Another Computer!</a> </li>
	<li><a href="http://zedomax.com/blog/2006/10/31/linux-distro-rankings/" title="Linux Distro rankings (October 31, 2006)">Linux Distro rankings</a> </li>
	<li><a href="http://zedomax.com/blog/2008/10/08/interview-with-inventor-of-linux-linus-torvalds/" title="Interview with Inventor of Linux, Linus Torvalds! (October 8, 2008)">Interview with Inventor of Linux, Linus Torvalds!</a> </li>
	<li><a href="http://zedomax.com/blog/2009/06/09/download-fedora-11/" title="Download Fedora 11! (June 9, 2009)">Download Fedora 11!</a> </li>
	<li><a href="http://zedomax.com/blog/2007/03/31/diy-vmware-howtos/" title="DIY &#8211; VMware HOWTOs (March 31, 2007)">DIY &#8211; VMware HOWTOs</a> </li>
	<li><a href="http://zedomax.com/blog/2008/11/14/youtube-hack-how-to-link-directly-to-high-quality-youtube-videos/" title="YouTube Hack &#8211; How to Link Directly to High Quality YouTube Videos! (November 14, 2008)">YouTube Hack &#8211; How to Link Directly to High Quality YouTube Videos!</a> </li>
	<li><a href="http://zedomax.com/blog/2006/09/29/wine-hq-v0922-windows-emulator-in-linux/" title="Wine HQ v0.9.22 &#8211; Windows emulator in Linux (September 29, 2006)">Wine HQ v0.9.22 &#8211; Windows emulator in Linux</a> </li>
	<li><a href="http://zedomax.com/blog/2006/12/26/wii-hack-wiimote-flightgear-ultimate-flight-simulator/" title="Wii HACK &#8211; Wiimote + FlightGear = Ultimate Flight Simulator? (December 26, 2006)">Wii HACK &#8211; Wiimote + FlightGear = Ultimate Flight Simulator?</a> </li>
	<li><a href="http://zedomax.com/blog/2006/12/27/wii-hack-christmas-wii-remote-xmms-hack/" title="Wii HACK &#8211; Christmas Wii-remote xmms hack (December 27, 2006)">Wii HACK &#8211; Christmas Wii-remote xmms hack</a> </li>
	<li><a href="http://zedomax.com/blog/2009/08/17/web-server-hack-how-to-use-ddos-deflate-to-protect-against-dos-flooding/" title="Web Server Hack &#8211; How to Use DDoS Deflate to Protect Against DoS Flooding! (August 17, 2009)">Web Server Hack &#8211; How to Use DDoS Deflate to Protect Against DoS Flooding!</a> </li>
	<li><a href="http://zedomax.com/blog/2006/09/11/ubuntu-the-hottest-linux-platform-today/" title="Ubuntu, the hottest linux platform today (September 11, 2006)">Ubuntu, the hottest linux platform today</a> </li>
	<li><a href="http://zedomax.com/blog/2008/11/13/ubuntu-linux-hack-how-to-install-fresh-copy-of-ubuntu-without-losing-your-current-program-settings/" title="Ubuntu Linux Hack &#8211; How to Install Fresh Copy of Ubuntu without Losing your Current Program Settings! (November 13, 2008)">Ubuntu Linux Hack &#8211; How to Install Fresh Copy of Ubuntu without Losing your Current Program Settings!</a> </li>
	<li><a href="http://zedomax.com/blog/2006/10/31/ubuntu-610-released/" title="Ubuntu 6.10 released! (October 31, 2006)">Ubuntu 6.10 released!</a> </li>
	<li><a href="http://zedomax.com/blog/2007/02/22/ubuntu-610-free-alternative-over-windows-vista/" title="Ubuntu 6.10 &#8211; free alternative over Windows Vista (February 22, 2007)">Ubuntu 6.10 &#8211; free alternative over Windows Vista</a> </li>
	<li><a href="http://zedomax.com/blog/2009/09/09/smb-hack-makes-your-windows-vista-and-windows-7-vulnerable-to-blue-screen-of-death/" title="SMB Hack Makes Your Windows Vista and Windows 7 Vulnerable to Blue Screen of Death! (September 9, 2009)">SMB Hack Makes Your Windows Vista and Windows 7 Vulnerable to Blue Screen of Death!</a> </li>
	<li><a href="http://zedomax.com/blog/2008/09/05/recap-of-google-chrome-hacks-blog-this-week/" title="Recap of Google Chrome Hacks Blog This Week! (September 5, 2008)">Recap of Google Chrome Hacks Blog This Week!</a> </li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://zedomax.com/blog/2008/07/28/linux-server-hack-how-to-setup-a-shell-script-to-auto-restart-apache-httpd-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
