<?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>VPS Guides &#187; Howtos</title>
	<atom:link href="http://www.vpsguides.com/category/howtos/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vpsguides.com</link>
	<description>Tips, Tutorials and Guides for your Virtual Private Server</description>
	<lastBuildDate>Wed, 14 Apr 2010 09:22:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How To Ban An IP Address</title>
		<link>http://www.vpsguides.com/2010/01/how-to-ban-an-ip-address/</link>
		<comments>http://www.vpsguides.com/2010/01/how-to-ban-an-ip-address/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 16:15:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Howtos]]></category>

		<guid isPermaLink="false">http://www.vpsguides.com/?p=136</guid>
		<description><![CDATA[Within a few days of starting this blog, I found the content being scrapped to another domain. The speed at which these sites are setup are astonishing. You can spend hours writing and posting articles and it&#8217;ll be ripped within minutes. There are a few options that you can take to minimize such thefts.
Since this [...]<p>Post from: <a href="http://www.vpsguides.com">www.vpsguides.com - Guides, Tutorials, Tips and Articles on Everything VPS!</a><br/><br/><a href="http://www.vpsguides.com/2010/01/how-to-ban-an-ip-address/">How To Ban An IP Address</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-144 alignright" title="Stop!" src="http://www.vpsguides.com/index.php?feedimage=wp-content/uploads/stop.png" alt="Stop!" width="231" height="207" />Within a few days of starting this blog, I found the content being scrapped to another domain. The speed at which these sites are setup are astonishing. You can spend hours writing and posting articles and it&#8217;ll be ripped within minutes. There are a few options that you can take to minimize such thefts.</p>
<p>Since this is more of a hosting blog, I&#8217;ll focus on banning an IP address. There are few ways to do it. First of all, you have to identify the IP address. Be very careful about this. If you ban your own IP will not be able to login to undo it! Or sometimes a client could be using a service or software to monitor your site. Don&#8217;t be too quick to identify it as a &#8216;hack attempt&#8217;&#8230; In my case, I&#8217;m sure of the site scrapping my content. I ping-ed the site and also cross-checked with the logs to confirm the offending IP.<span id="more-136"></span></p>
<p>If you&#8217;re running IP tables, you can <strong>SSH</strong> in and run the following:</p>
<p><code>iptables -A INPUT -s  -j DROP</code></p>
<p>The other alternative is to block and IP in <strong>Plesk</strong> (I&#8217;m using Plesk 9.x)</p>
<ol>
<li>Login as &#8216;admin&#8217;.</li>
<li>Go to Settings &gt; Manage Firewall Rules</li>
<li>Click on Edit Firewall Configuration</li>
<li>Click on Add Custom Rule</li>
<li>Give the rule a name and change the settings as per the image below:</li>
</ol>
<p><img class="alignnone size-full wp-image-137" title="How To Ban An IP With Plesk" src="http://www.vpsguides.com/index.php?feedimage=wp-content/uploads/ban-ip.png" alt="How To Ban An IP With Plesk" width="525" height="392" /></p>
<p>Its even easier in <strong>cPanel</strong>. When you login, look under the &#8220;Security&#8221; grouping and locate the &#8220;IP Deny Manager&#8221; icon. In the next window just add your IP and submit. Can&#8217;t go wrong with that! Just be careful not to enter &#8216;wildcard&#8217; IPs like 202.*.*.* which means all IPs starting with 202 will be blocked.</p>
<p>So, there you go. A simple tutorial that will save you time (and bandwidth is someone is hotlinking your images or videos). Please leave a comment below if you have other favorite techniques or tips that you&#8217;d like to share.</p>
<p>Post from: <a href="http://www.vpsguides.com">www.vpsguides.com - Guides, Tutorials, Tips and Articles on Everything VPS!</a><br/><br/><a href="http://www.vpsguides.com/2010/01/how-to-ban-an-ip-address/">How To Ban An IP Address</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vpsguides.com/2010/01/how-to-ban-an-ip-address/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Migrating Email Accounts on FreeBSD</title>
		<link>http://www.vpsguides.com/2009/08/migrating-email-accounts-on-freebsd/</link>
		<comments>http://www.vpsguides.com/2009/08/migrating-email-accounts-on-freebsd/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 10:41:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Howtos]]></category>

		<guid isPermaLink="false">http://www.vpsguides.com/?p=88</guid>
		<description><![CDATA[I&#8217;ve been busy the past few weeks consolidating servers. We have some really old servers from one of our VPS providers that really needed to be decommissioned. The problem with a project like this is that the older they are, the more stuff is built into it &#8211; crons, url rewrites, custom DNS, the list [...]<p>Post from: <a href="http://www.vpsguides.com">www.vpsguides.com - Guides, Tutorials, Tips and Articles on Everything VPS!</a><br/><br/><a href="http://www.vpsguides.com/2009/08/migrating-email-accounts-on-freebsd/">Migrating Email Accounts on FreeBSD</a></p>
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been busy the past few weeks consolidating servers. We have some really old servers from one of our VPS providers that really needed to be decommissioned. The problem with a project like this is that the older they are, the more stuff is built into it &#8211; crons, url rewrites, custom DNS, the list goes on. And since these are working sites, we could not afford downtime and each migration needed a few undisturbed hours.</p>
<p>One of the major task was to migrate email accounts from our legacy VPS running FreeBSD 4.7 to newer ones running 6.3. Here&#8217;s how I did it.<span id="more-88"></span></p>
<ol>
<li>Copied the passwords from /etc/passwd in the older 4.7 servers.<br />
(Copy the part right after the name until right before the colon &#8211; e.g. mike:<strong><span style="color: #808000;">54YBKHNIE0.3L</span></strong>: ) <em>UPDATE: Someone suggested a utility called &#8216;vipw&#8217;. Haven&#8217;t tried it yet.</em></li>
<li>Pasted them into /etc/master.passwd of new server.<br />
(Create the users you need first with any temp password. The paste the one above between the name and colon)</li>
<li>Ran pwd_mkdb -p /etc/master.passwd</li>
<li>Updated the MX and A record for the mail server to point to the new server. We normally migrate email and web separately to minimise downtime. Using a <a href="http://www.dnsmadeeasy.com/u/21800" target="_blank">good DNS service</a> like DNS Made Easy allows you to set a low TTL for these changes to take affect quickly.</li>
<li>Finally, I commented out the hostname in /etc/hosts on the old server to tell it that it no longer manages emails for this domain.</li>
<li>Finally finally, I forwarded old emails using Mutt to the new account.</li>
</ol>
<p>Hope this helps, worked wonders for us. Clients had no disruption to their emails which meant little grief for me!</p>
<p>Post from: <a href="http://www.vpsguides.com">www.vpsguides.com - Guides, Tutorials, Tips and Articles on Everything VPS!</a><br/><br/><a href="http://www.vpsguides.com/2009/08/migrating-email-accounts-on-freebsd/">Migrating Email Accounts on FreeBSD</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vpsguides.com/2009/08/migrating-email-accounts-on-freebsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>5 Linux VPS Performance Tips</title>
		<link>http://www.vpsguides.com/2009/06/5-linux-vps-performance-tips/</link>
		<comments>http://www.vpsguides.com/2009/06/5-linux-vps-performance-tips/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 05:26:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Howtos]]></category>

		<guid isPermaLink="false">http://www.vpsguides.com/?p=107</guid>
		<description><![CDATA[This is a guest post by Christopher Pace
As a freelance Linux consultant, many of my clients are often interested in making their VPS (Virtual Private Server) as responsive as possible. Since VPS servers by nature have somewhat limited system resources (often less than 1 GB of RAM), getting the best VPS performance can be a [...]<p>Post from: <a href="http://www.vpsguides.com">www.vpsguides.com - Guides, Tutorials, Tips and Articles on Everything VPS!</a><br/><br/><a href="http://www.vpsguides.com/2009/06/5-linux-vps-performance-tips/">5 Linux VPS Performance Tips</a></p>
]]></description>
			<content:encoded><![CDATA[<p><em>This is a guest post by <a href="http://ezinearticles.com/?expert=Christopher_Pace">Christopher Pace</a></em></p>
<p>As a freelance Linux consultant, many of my clients are often interested in making their VPS (Virtual Private Server) as responsive as possible. Since VPS servers by nature have somewhat limited system resources (often less than 1 GB of RAM), getting the best VPS performance can be a crucial part of running a successful server. To make matters worse, most clients assume that the VPS host has already optimized their server- which simply isn&#8217;t true (even Rackspace, a wonderful VPS host, doesn&#8217;t do this). Therefore, I&#8217;ve written this article as a brief introduction to some of the more common ways to get the best performance from a VPS.<span id="more-107"></span></p>
<p><strong>Tip #1: Disable system services</strong>.<br />
The top way to increase your VPS performance is to disable any system services that are not necessary. Services that are never used will still use up valuable RAM and CPU time, and also possibly allow your server to be attacked remotely. If you don&#8217;t need these services, why have them? Manage the startup scripts that start these services at boot time, and disable them.</p>
<p><strong>Tip #2: Configure MySQL properly.</strong><br />
One of the more common ways to increase the available RAM (or to allocate more RAM to MySQL) is to configure the MySQL cache sizes. If your MySQL server instance is using too much memory, decrease the cache sizes. Likewise, if MySQL gets bogged down with large requests, increase the MySQL cache.</p>
<p><strong>Tip #3: Configure Apache properly.</strong><br />
With Apache 2.0, many system administrators and clients alike have become confused as to the proper configuration of the Apache worker threads. Check how much memory Apache is using, and adjust the StartServers and MinSpareServers directives as needed to free up more memory.</p>
<p><strong>Tip #4: Clean up your modules!</strong><br />
Without exception, there will always be modules or features that are enabled in memory hungry server software packages (such as Apache) that simply are not needed. Take a look at the configuration files for Apache, and decide if you need FrontPage support, or some of the other extra modules that ship with the VPS software packages. Disabling unnecessary modules or plugins will decrease the system memory that server software such as Apache requires, which will give you more resources for the software that needs it!</p>
<p><strong>Tip #5: Disable control panels.</strong><br />
Let&#8217;s face it, everyone loves the more popular control panels, such as Cpanel, Plesk, Webmin, and phpMyAdmin. Heck, I&#8217;ve even written tutorials on how to use some of these control panel software packages. However, disabling these software packages frees up quite a bit of resources- sometimes as much as 120 MB of RAM! Sometimes the best solution is to disable these control panels until you actually need them- then they can be turned on via a PHP script (albeit somewhat insecure), or via a command entered at a shell prompt.</p>
<p>These 5 tips should decease the amount of RAM that your VPS uses by as much as 30-40%, which might save you quite a bit of money per month. Since most providers start out their VPS plans at systems with 256MB of RAM (and upgrades from there are expensive, often costing $40/month for an additional 256 MB), optimization of a VPS server is a crucial step. In addition, these 5 tips can be performed by a talented system administrator or consultant in typically less than two hours, which can mean a return on investment after only two or three billing cycles. What you do with the extra money saved is your business- you&#8217;ve earned it!</p>
<p><a href="http://hnsg.net" target="_new">Christopher J. Pace</a> is a <a href="http://linuxconsultant.info" target="_new">freelance Linux consultant</a> who has worked with Linux since 2001. Currently, he provides remote Linux consulting services for sick servers.</p>
<p>Post from: <a href="http://www.vpsguides.com">www.vpsguides.com - Guides, Tutorials, Tips and Articles on Everything VPS!</a><br/><br/><a href="http://www.vpsguides.com/2009/06/5-linux-vps-performance-tips/">5 Linux VPS Performance Tips</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vpsguides.com/2009/06/5-linux-vps-performance-tips/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

