<?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>Web Server Hacks Blog - Hacks for Dedicated/VPS Servers, SSH, and Plesk &#187; web server</title>
	<atom:link href="http://webserverhacks.com/tag/web-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://webserverhacks.com</link>
	<description>Hacks for Dedicated/VPS Servers, SSH, and Plesk</description>
	<lastBuildDate>Wed, 14 Mar 2012 22:35:30 +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>Really Great Article on MySQL and Web Server!</title>
		<link>http://webserverhacks.com/performance-tests/really-great-article-on-mysql-and-web-server/</link>
		<comments>http://webserverhacks.com/performance-tests/really-great-article-on-mysql-and-web-server/#comments</comments>
		<pubDate>Tue, 05 Apr 2011 06:35:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Performance Tests]]></category>
		<category><![CDATA[Web Server Hacks]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[web server]]></category>

		<guid isPermaLink="false">http://webserverhacks.com/?p=111</guid>
		<description><![CDATA[Check out this great article by a MySQL expert who goes into detail how MySQL and web servers work and take on the load on servers. &#8211; link]]></description>
			<content:encoded><![CDATA[<p>Check out this great article by a MySQL expert who goes into detail how MySQL and web servers work and take on the load on servers. &#8211; <a href="http://www.mysqlperformanceblog.com/2006/10/16/should-mysql-and-web-server-share-the-same-box/">link</a></p>
]]></content:encoded>
			<wfw:commentRss>http://webserverhacks.com/performance-tests/really-great-article-on-mysql-and-web-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[apt-get] How to See all Installed Packages!</title>
		<link>http://webserverhacks.com/linux-commands/apt-get-how-to-see-all-installed-packages/</link>
		<comments>http://webserverhacks.com/linux-commands/apt-get-how-to-see-all-installed-packages/#comments</comments>
		<pubDate>Mon, 04 Apr 2011 00:59:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux Commands]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[dpkg -l]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[installed packages]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux servers]]></category>
		<category><![CDATA[web server]]></category>

		<guid isPermaLink="false">http://webserverhacks.com/?p=95</guid>
		<description><![CDATA[To see all the installed packaged on your linux servers, you can do: dpkg -l which will list all installed packages on your web server.]]></description>
			<content:encoded><![CDATA[<p>To see all the installed packaged on your linux servers, you can do:</p>
<p><strong>dpkg -l</strong> </p>
<p>which will list all installed packages on your web server.</p>
]]></content:encoded>
			<wfw:commentRss>http://webserverhacks.com/linux-commands/apt-get-how-to-see-all-installed-packages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Add DNS Caching to Your Web Server!</title>
		<link>http://webserverhacks.com/web-server-hacks/how-to-add-dns-caching-to-your-web-server/</link>
		<comments>http://webserverhacks.com/web-server-hacks/how-to-add-dns-caching-to-your-web-server/#comments</comments>
		<pubDate>Mon, 04 Apr 2011 00:57:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Server Hacks]]></category>
		<category><![CDATA[add dns caching]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[slow api]]></category>
		<category><![CDATA[slow twitter api]]></category>
		<category><![CDATA[slow web server]]></category>
		<category><![CDATA[web server]]></category>

		<guid isPermaLink="false">http://webserverhacks.com/?p=89</guid>
		<description><![CDATA[If you have a website that uses a lot of API requests (such as dealing with Twitter), you can save a lot of server load/costs simply by installing DNS caching to your web server. Each DNS request (every time you request from any domain name using an API) takes anywhere between 0 to 500 miliseconds. Sometimes, adding DNS caching to your web server can make your website load in 1 second versus 10 seconds. Anyways, it&#8217;s easy to do and here&#8217;s how to do it on CentOS/Fedora linux servers: (Ubuntu should be similar, just use apt-get install of yum) First install Bind-utils: yum install bind-utils Do a command: dig yahoo.com Do it several times and note how many miliseconds it takes to retrieve the URL. Later, after we install DNSMasq, we will try dig command again to see if your web server has started caching DNS requests. Install DNSMasq: yum install dnsmasq Edit the file in /etc/dnsmasq.conf: Then add the following lines: listen-address=127.0.0.1 cache-size=500 Next, edit the file in /etc/dhcp6c.conf: Then add the following line: prepend domain-name-servers 127.0.0.1; Next, edit the file in /etc/resolv.conf: Add the following lines with 127.0.0.1 first: nameserver 127.0.0.1 nameserver 208.67.220.220 nameserver 8.8.8.8 nameserver 8.8.4.4 208.67.220.220 &#8230; <a href="http://webserverhacks.com/web-server-hacks/how-to-add-dns-caching-to-your-web-server/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you have a website that uses a lot of API requests (such as dealing with Twitter), you can save a lot of server load/costs simply by installing DNS caching to your web server.</p>
<p>Each DNS request (every time you request from any domain name using an API) takes anywhere between 0 to 500 miliseconds.   Sometimes, adding DNS caching to your web server can make your website load in 1 second versus 10 seconds.</p>
<p>Anyways, it&#8217;s easy to do and here&#8217;s how to do it on CentOS/Fedora linux servers:  (Ubuntu should be similar, just use apt-get install of yum)</p>
<p>First install Bind-utils:</p>
<p><strong>yum install bind-utils</strong> </p>
<p>Do a command:</p>
<p><strong>dig yahoo.com</strong> </p>
<p>Do it several times and note how many miliseconds it takes to retrieve the URL.  Later, after we install DNSMasq, we will try dig command again to see if your web server has started caching DNS requests.</p>
<p>Install DNSMasq:</p>
<p><strong>yum install dnsmasq</strong> </p>
<p>Edit the file in <strong>/etc/dnsmasq.conf</strong>:</p>
<p>Then add the following lines:</p>
<p><strong>listen-address=127.0.0.1<br /> <br />
cache-size=500</strong> </p>
<p>Next, edit the file in <strong>/etc/dhcp6c.conf</strong>:</p>
<p>Then add the following line:<br /> <br />
<strong> prepend domain-name-servers 127.0.0.1;</strong> </p>
<p>Next, edit the file in <strong>/etc/resolv.conf</strong>:</p>
<p>Add the following lines with 127.0.0.1 first:</p>
<p><strong>nameserver 127.0.0.1<br /> <br />
nameserver 208.67.220.220<br /> <br />
nameserver 8.8.8.8<br /> <br />
nameserver 8.8.4.4</strong> </p>
<p>208.67.220.220 is DNS server of Open DNS, which I highly recommend as it&#8217;s FAST.<br /> <br />
Also 8.8.8.8 and 8.8.4.4 are DNS servers of Google, which are also FAST.<br /> <br />
You can however, decide to use any other DNS such as your hosting company&#8217;s.</p>
<p>You can do a test of how fast they are by doing a ping test such as:</p>
<p><strong>ping 8.8.8.8 </strong> </p>
<p>to test Google&#8217;s DNS server response times.</p>
<p>Next, you can start the DNSMasq so your web server starts caching, do:</p>
<p><strong>/sbin/service dnsmasq start</strong> </p>
<p>Also, you will want to add DNSMasq to your chkconfig list so it will start up next time your web server reboots, do:</p>
<p><strong>chkconfig dnsmasq on</strong> </p>
<p>To check all the processes running at boot-up, do:</p>
<p><strong>chkconfig &#8211;list</strong> </p>
<p>That&#8217;s it!</p>
<p>Now do a dig command on yahoo.com, you should see 0 miliseconds after the first dig command!</p>
<p><strong>dig yahoo.com</strong> </p>
]]></content:encoded>
			<wfw:commentRss>http://webserverhacks.com/web-server-hacks/how-to-add-dns-caching-to-your-web-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Install DNS Cache on Your Linux Web Server!</title>
		<link>http://webserverhacks.com/web-server-hacks/how-to-install-dns-cache-on-your-linux-web-server/</link>
		<comments>http://webserverhacks.com/web-server-hacks/how-to-install-dns-cache-on-your-linux-web-server/#comments</comments>
		<pubDate>Mon, 04 Apr 2011 00:53:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Server Hacks]]></category>
		<category><![CDATA[dns cache]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[web server]]></category>

		<guid isPermaLink="false">http://webserverhacks.com/?p=79</guid>
		<description><![CDATA[If your website does a lot of queries via domain names such as aggregating RSS feeds or even a Twitter app site that accesses Twitter API, you might benefit from installing DNS cache on your linux web server. For most, you would benefit from installing DNS cache because it will save you a ton of time for your server to fetch IP addreses. (could be anywhere between 5 to 500ms). I&#8217;ve actually found a great article showing you how to do this on a Linux desktop computer. It actually works fine on web servers too. Check out WebUpd8.com for full instructions. Some notes on CentOS users: You can do &#8220;yum install bind-utils&#8221; to get the dig program.]]></description>
			<content:encoded><![CDATA[<p>If your website does a lot of queries via domain names such as aggregating RSS feeds or even a Twitter app site that accesses Twitter API, you might benefit from installing DNS cache on your linux web server.</p>
<p>For most, you would benefit from installing DNS cache because it will save you a ton of time for your server to fetch IP addreses. (could be anywhere between 5 to 500ms).</p>
<p>I&#8217;ve actually found a great article showing you how to do this on a Linux desktop computer.  It actually works fine on web servers too.</p>
<p><a target="_blank" href="http://www.webupd8.org/2009/12/faster-browsing-in-linux-with-local-dns.html" >Check out WebUpd8.com for full instructions.</a> </p>
<p>Some notes on CentOS users:</p>
<p>You can do &#8220;yum install bind-utils&#8221; to get the dig program.</p>
]]></content:encoded>
			<wfw:commentRss>http://webserverhacks.com/web-server-hacks/how-to-install-dns-cache-on-your-linux-web-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

