<?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>Setup a Linux Server or VPS &#187; Dedicated Server</title>
	<atom:link href="http://setupalinuxserver.com/category/dedicated-server/feed" rel="self" type="application/rss+xml" />
	<link>http://setupalinuxserver.com</link>
	<description>Tips, Tricks, and Howto&#039;s</description>
	<lastBuildDate>Thu, 27 Jan 2011 18:36:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Better Network Performance</title>
		<link>http://setupalinuxserver.com/better-network-performance</link>
		<comments>http://setupalinuxserver.com/better-network-performance#comments</comments>
		<pubDate>Tue, 12 Oct 2010 16:10:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Dedicated Server]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://setupalinuxserver.com/?p=33</guid>
		<description><![CDATA[As we all know a basic install of any OS is never tweaked out for performance but setup for general use.  One of the biggest problems in the Linux (CentOS, Ubuntu, Fedora, I have not tested other OS&#8217;s) is the &#8230; <a href="http://setupalinuxserver.com/better-network-performance">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As we all know a basic install of any OS is never tweaked out for performance but setup for general use.  One of the biggest problems in the Linux (CentOS, Ubuntu, Fedora, I have not tested other OS&#8217;s) is the network is never really tweaked up.<span id="more-33"></span></p>
<p>However running a few simple commands and updating a single file can produce a massive increase in performance.</p>
<p>** Please note that there are other issues that can cause poor performance **</p>
<p>Example Bad Network Cable, Cheap Switch, Overloaded Router, and others.</p>
<p>Run the following commands from the prompt.</p>
<p>mv /etc/sysctl.conf sysctl.bak<br />
cd /etc<br />
wget <a href="http://www.setupalinuxserver.com/files/sysctl.conf.txt" target="_blank">http://www.setupalinuxserver.com/files/sysctl.conf.txt</a><br />
mv sysctl.conf.txt sysctl.conf<br />
/sbin/sysctl -p<br />
/sbin/sysctl -w net.ipv4.route.flush=1</p>
<p>You should see a performance increase right away.  Please let me know if this helps you out or not.</p>
]]></content:encoded>
			<wfw:commentRss>http://setupalinuxserver.com/better-network-performance/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Basic Server Setup</title>
		<link>http://setupalinuxserver.com/basic-server-setup</link>
		<comments>http://setupalinuxserver.com/basic-server-setup#comments</comments>
		<pubDate>Sun, 25 Jul 2010 04:05:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Dedicated Server]]></category>
		<category><![CDATA[VPS]]></category>

		<guid isPermaLink="false">http://setupalinuxserver.com/?p=18</guid>
		<description><![CDATA[No matter how new your server or vps is, it is outdated and running old software.  While I am not the best, nor do I know everything this is a base of what I do when I get a new &#8230; <a href="http://setupalinuxserver.com/basic-server-setup">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>No matter how new your server or vps is, it is outdated and running old software.  While I am not the best, nor do I know everything this is a base of what I do when I get a new box online.</p>
<p>Again assuming you can SSH into the box.</p>
<p>yum -y install nano<br />
yum -y install yum-priorities<br />
wget http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.i386.rpm<br />
rpm &#8211;import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt<br />
rpm -K rpmforge-release-0.3.6-1.el5.rf.*.rpm<br />
rpm -i rpmforge-release-0.3.6-1.el5.rf.*.rpm<br />
wget http://dag.linux.iastate.edu/dag/RPM-GPG-KEY.dag.txt<br />
rpm &#8211;import RPM-GPG-KEY.dag.txt</p>
<p>nano /etc/yum.repos.d/dag.repo</p>
<p>[dag]<br />
name=Dag RPM Repository for Red Hat Enterprise Linux<br />
baseurl=http://dag.linux.iastate.edu/dag/redhat/el5/en/$basearch/dag<br />
gpgcheck=1<br />
enabled=1</p>
<p>Save and Exit</p>
<p>yum -y install perl-libwww-perl<br />
yum -y update</p>
<p>chkconfig cups off<br />
chkconfig pcmcia off<br />
chkconfig kudzu off<br />
chkconfig isdn off<br />
chkconfig xfs off<br />
chkconfig atd off<br />
chkconfig nfslock off<br />
chkconfig canna off<br />
chkconfig FreeWnn off<br />
chkconfig cups-config-daemon off<br />
chkconfig iiim off<br />
chkconfig mDNSResponder off<br />
chkconfig nifd off<br />
chkconfig rpcidmapd off<br />
chkconfig bluetooth off<br />
chkconfig anacron off<br />
chkconfig gpm off<br />
chkconfig saslauthd off<br />
chkconfig avahi-daemon off<br />
chkconfig avahi-dnsconfd off<br />
chkconfig hidd off<br />
chkconfig pcscd off<br />
chkconfig sbadm off<br />
chkconfig ossec off<br />
chkconfig acpid off<br />
chkconfig dhcpd off<br />
chkconfig firstboot off</p>
<p>mkdir /root/source<br />
cd /root/source<br />
wget http://www.configserver.com/free/csf.tgz<br />
tar -xzf csf.tgz<br />
cd csf<br />
sh install.sh</p>
<p>nano /etc/csf/csf.conf</p>
<p>Change TESTING=&#8221;1&#8243; to TESTING=&#8221;0&#8243;<br />
AUTO_UPDATES=&#8221;0&#8243; to AUTO_UPDATES=&#8221;1&#8243;</p>
<p>TCP_IN = &#8220;20,21,22,25,26,37,43,53,80,106,110,113,143,443,465,587,873,990,993,995,1129,2077,2078,2082,2083,2086,2087,2095,2096,3306,5224,5432,7777,7778,8443,8880,8888,8889,9080,10000,30000:35000&#8243;<br />
TCP_OUT = &#8220;20,21,22,25,26,37,43,53,80,106,110,113,143,443,465,587,873,990,993,995,1129,2077,2078,2082,2083,2086,2087,2095,2096,3306,5224,5432,7777,7778,8443,8880,8888,8889,9080,10000&#8243;<br />
UDP_IN = &#8220;20,21,53,953&#8243;<br />
UDP_OUT = &#8220;20,21,53,113,123,953,33434:33523&#8243;</p>
<p>service csf restart<br />
service lfd restart</p>
<p>reboot</p>
<p>. Add Passive Port range 30000-350000 to your Pureftp or Proftp configuration file<br />
(i) Pureftpd<br />
open /etc/pure-ftpd.conf, and this line<br />
PassivePortRange    30000 35000<br />
(ii) ProFTP<br />
Open /etc/proftpd.conf, and add this line<br />
PassivePorts    30000 35000</p>
<p>Now there are many other things you can do, root kit hunters and log rotators and more. However depending on your needs this alone will get you off to a good start.</p>
]]></content:encoded>
			<wfw:commentRss>http://setupalinuxserver.com/basic-server-setup/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Switching from Apache to Lighttpd</title>
		<link>http://setupalinuxserver.com/switching-from-apache-to-lighttpd</link>
		<comments>http://setupalinuxserver.com/switching-from-apache-to-lighttpd#comments</comments>
		<pubDate>Sat, 24 Jul 2010 00:26:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Dedicated Server]]></category>
		<category><![CDATA[Lighttpd]]></category>
		<category><![CDATA[VPS]]></category>

		<guid isPermaLink="false">http://setupalinuxserver.com/?p=13</guid>
		<description><![CDATA[One of my side projects is running a free image hosting site.  FreeImageHostingOn.US with this site I have been pushing out millions of hits a day and as you can imagine it puts a load on many shared hosting providers.  &#8230; <a href="http://setupalinuxserver.com/switching-from-apache-to-lighttpd">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>One of my side projects is running a free image hosting site.  <a href="http://freeimagehostingon.us">FreeImageHostingOn.US</a> with this site I have been pushing out millions of hits a day and as you can imagine it puts a load on many shared hosting providers.  So the other day I grabbed a VPS from <a href="http://rubyringtech.com">Ruby Ring Technologies</a> and I installed the CentOS/LXAdmin image.  Out of the box this VPS screamed.  However I know I could get more performance out of it.  The following six lines of code did more then double the thruput and halved the ram usage.</p>
<p>Add the following lines to the lighttpd.conf file.</p>
<p>server.max-keep-alive-requests = 4<br />
server.max-keep-alive-idle = 4<br />
server.event-handler = “linux-sysepoll”<br />
server.network-backend = “linux-sendfile”<br />
server.max-fds = 8192<br />
server.stat-cache-engine = “simple”</p>
<p>As you can see from the following image, things are moving along nicely.</p>
<p><img class="alignnone" title="Traffic" src="http://freeimagehostingon.us/files/uwfp5oll9g7kyr35l6ea.png" alt="Bandwidth Traffic" width="697" height="282" /></p>
<p>The current load on the server is 0.0 and the ram used it 66MB&#8217;s for live stats check out this link.  <a href="http://freeimagehostingon.us/traffic.php">System Usage.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://setupalinuxserver.com/switching-from-apache-to-lighttpd/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

