<?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>dev.enekoalonso.com &#187; linux</title>
	<atom:link href="http://dev.enekoalonso.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://dev.enekoalonso.com</link>
	<description>having fun with code</description>
	<lastBuildDate>Wed, 12 Oct 2011 21:40:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Got NFS working</title>
		<link>http://dev.enekoalonso.com/2010/02/06/got-nfs-working/</link>
		<comments>http://dev.enekoalonso.com/2010/02/06/got-nfs-working/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 06:19:27 +0000</pubDate>
		<dc:creator>Eneko Alonso</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[exports]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[fedora11]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nfs]]></category>
		<category><![CDATA[nfs4]]></category>
		<category><![CDATA[nfsserver]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://dev.enekoalonso.com/?p=457</guid>
		<description><![CDATA[Well, last night I started reading about how to share the files folder of a Drupal installation on a site with multiple web servers. Seems like NFS is the right way to go (as long as your traffic doesn&#8217;t grow too much). Perfect for Spaniards.es, since I want to move from a 2 dedicated server [...]]]></description>
			<content:encoded><![CDATA[<p>Well, last night I started reading about how to share the files folder of a Drupal installation on a site with multiple web servers. Seems like NFS is the right way to go (as long as your traffic doesn&#8217;t grow too much). Perfect for Spaniards.es, since I want to move from a 2 dedicated server setup to a more flexible one where I can launch new web servers easily, almost on demand.</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1"><span class="co0"># Install NFS</span></div>
</li>
<li class="li1">
<div class="de1">yum -y <span class="kw2">install</span> rpcbind nfs-utils nfs-utils-lib system-config-nfs rsync</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># chkconfig nfs on</span></div>
</li>
<li class="li1">
<div class="de1"><span class="sy0">/</span>sbin<span class="sy0">/</span>chkconfig nfs on</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">vi <span class="sy0">/</span>etc<span class="sy0">/</span>idmapd.conf</div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># [General]</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># Domain = spaniards.es</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># [Mapping]</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># Nobody-User = nfsnobody</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># Nobody-Group = nfsnobody</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">service rpcidmapd restart</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;/files/archivos &nbsp;/nfs4exports/archivos none bind 0 0&quot;</span> <span class="sy0">&gt;&gt;</span> <span class="sy0">/</span>etc<span class="sy0">/</span>fstab</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">mount</span> <span class="sy0">/</span>nfs4exports<span class="sy0">/</span>archivos</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;/nfs4exports XXX.177.133.25(rw,insecure,no_subtree_check,nohide,fsid=0) XXX.177.136.14(rw,insecure,no_subtree_check,nohide,fsid=0)&quot;</span> <span class="sy0">&gt;</span> <span class="sy0">/</span>etc<span class="sy0">/</span>exports</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;/nfs4exports/archivos XXX.177.133.25(rw,insecure,no_subtree_check,nohide) XXX.177.136.14(rw,insecure,no_subtree_check,nohide)&quot;</span> <span class="sy0">&gt;&gt;</span> <span class="sy0">/</span>etc<span class="sy0">/</span>exports</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">su</span> -c <span class="st0">&quot;/usr/sbin/exportfs -rva&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="sy0">/</span>sbin<span class="sy0">/</span>service nfs restart</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&#39;portmap:ALL&#39;</span> <span class="sy0">&gt;</span> <span class="sy0">/</span>etc<span class="sy0">/</span>hosts.deny</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&#39;lockd:ALL&#39;</span> <span class="sy0">&gt;&gt;</span> <span class="sy0">/</span>etc<span class="sy0">/</span>hosts.deny</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&#39;mountd:ALL&#39;</span> <span class="sy0">&gt;&gt;</span> <span class="sy0">/</span>etc<span class="sy0">/</span>hosts.deny</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&#39;rquotad:ALL&#39;</span> <span class="sy0">&gt;&gt;</span> <span class="sy0">/</span>etc<span class="sy0">/</span>hosts.deny</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&#39;statd:ALL&#39;</span> <span class="sy0">&gt;&gt;</span> <span class="sy0">/</span>etc<span class="sy0">/</span>hosts.deny</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&#39;portmap:XXX.177.133.25,XXX.177.136.14&#39;</span> <span class="sy0">&gt;</span> <span class="sy0">/</span>etc<span class="sy0">/</span>hosts.allow</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&#39;lockd:XXX.177.133.25,XXX.177.136.14&#39;</span> <span class="sy0">&gt;&gt;</span> <span class="sy0">/</span>etc<span class="sy0">/</span>hosts.allow</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&#39;mountd:XXX.177.133.25,XXX.177.136.14&#39;</span> <span class="sy0">&gt;&gt;</span> <span class="sy0">/</span>etc<span class="sy0">/</span>hosts.allow</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&#39;rquotad:XXX.177.133.25,XXX.177.136.14&#39;</span> <span class="sy0">&gt;&gt;</span> <span class="sy0">/</span>etc<span class="sy0">/</span>hosts.allow</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&#39;statd:XXX.177.133.25,XXX.177.136.14&#39;</span> <span class="sy0">&gt;&gt;</span> <span class="sy0">/</span>etc<span class="sy0">/</span>hosts.allow</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&#39;LOCKD_TCPPORT=48620&#39;</span> <span class="sy0">&gt;&gt;</span> <span class="sy0">/</span>etc<span class="sy0">/</span>sysconfig<span class="sy0">/</span>nfs</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&#39;LOCKD_UDPPORT=48620&#39;</span> <span class="sy0">&gt;&gt;</span> <span class="sy0">/</span>etc<span class="sy0">/</span>sysconfig<span class="sy0">/</span>nfs</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&#39;MOUNTD_PORT=48621&#39;</span> <span class="sy0">&gt;&gt;</span> <span class="sy0">/</span>etc<span class="sy0">/</span>sysconfig<span class="sy0">/</span>nfs</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&#39;STATD_PORT=48622&#39;</span> <span class="sy0">&gt;&gt;</span> <span class="sy0">/</span>etc<span class="sy0">/</span>sysconfig<span class="sy0">/</span>nfs</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&#39;RQUOTAD=no&#39;</span> <span class="sy0">&gt;&gt;</span> <span class="sy0">/</span>etc<span class="sy0">/</span>sysconfig<span class="sy0">/</span>nfs</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&#39;RQUOTAD_PORT=48623&#39;</span> <span class="sy0">&gt;&gt;</span> <span class="sy0">/</span>etc<span class="sy0">/</span>sysconfig<span class="sy0">/</span>nfs</div>
</li>
</ol>
</div>
<p>At the end, setting up NFS is not that complicated, but it was my first time, so it took a while. Actually, I had everything working before I noticed, since, logged in as root, I couldn&#8217;t figure out why I wasn&#8217;t able to write to the nfs mounted directory, being this mounted as rw. Well, turns out that you shouldn&#8217;t do this as root, since <a href="http://lists.freebsd.org/pipermail/freebsd-questions/2005-October/101886.html">root access on nfs, once enabled does not require authentication</a>.</p>
<p>I&#8217;m not sure why there is a need to mount a bind directory on the nfs server, but I think it has to do with the NFS4 directory configuration.</p>
<p>I think I got all the information I needed between these two links:<br />
<a href="http://fconfig.wordpress.com/2006/08/17/setting-up-a-fedora-nfs-server/">http://fconfig.wordpress.com/2006/08/17/setting-up-a-fedora-nfs-server/</a><br />
<a href="http://fedorasolved.org/Members/renich/howtos/f7/en/nfsv4-fedora/?searchterm=nfs">http://fedorasolved.org/Members/renich/howtos/f7/en/nfsv4-fedora/?searchterm=nfs</a></p>
<p>Next step: set up the round robin load balancer: haproxy or dns?</p>
<h3  class="related_post_title">Related Posts:</h3><ul class="related_post"><li>January 31, 2010 -- <a href="http://dev.enekoalonso.com/2010/01/31/cloudservers-creating-a-new-web-server-with-httpd-php-memcached/" title="CloudServers: Creating a new web server with httpd, php &#038; memcached">CloudServers: Creating a new web server with httpd, php &#038; memcached</a> (1)</li><li>January 31, 2010 -- <a href="http://dev.enekoalonso.com/2010/01/31/cloudservers-creating-a-new-mysql-db-server/" title="CloudServers: Creating a new MySQL db server">CloudServers: Creating a new MySQL db server</a> (0)</li><li>January 30, 2010 -- <a href="http://dev.enekoalonso.com/2010/01/30/got-new-servers-on-rackspace-cloud/" title="Got new servers on Rackspace Cloud">Got new servers on Rackspace Cloud</a> (5)</li><li>May 12, 2011 -- <a href="http://dev.enekoalonso.com/2011/05/12/angry-birds-as-a-web-app/" title="Angry Birds as a Web App">Angry Birds as a Web App</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://dev.enekoalonso.com/2010/02/06/got-nfs-working/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CloudServers: Creating a new MySQL db server</title>
		<link>http://dev.enekoalonso.com/2010/01/31/cloudservers-creating-a-new-mysql-db-server/</link>
		<comments>http://dev.enekoalonso.com/2010/01/31/cloudservers-creating-a-new-mysql-db-server/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 05:29:46 +0000</pubDate>
		<dc:creator>Eneko Alonso</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[db]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[fedora12]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[rackspacecoud]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://dev.enekoalonso.com/?p=444</guid>
		<description><![CDATA[On my previous post I posted the commands I used to create a brand new Linux web server for my Drupal site. Now I&#8217;ll post the commands to create the database server. While creating the server instance at RackspaceCloud, I&#8217;ve chosen Fedora 12 for my db server, which comes with MySQL 5.1.42. # Install MySQL [...]]]></description>
			<content:encoded><![CDATA[<p>On my previous post I posted the commands I used to create a brand <a href="http://dev.enekoalonso.com/2010/01/31/cloudservers-creating-a-new-web-server-with-httpd-php-memcached/">new Linux web server for my Drupal site</a>. Now I&#8217;ll post the commands to create the database server. While creating the server instance at RackspaceCloud, I&#8217;ve chosen Fedora 12 for my db server, which comes with MySQL 5.1.42.</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1"><span class="co0"># Install MySQL</span></div>
</li>
<li class="li1">
<div class="de1">yum -y <span class="kw2">install</span> mysql mysql-server rsync</div>
</li>
<li class="li1">
<div class="de1"><span class="sy0">/</span>sbin<span class="sy0">/</span>chkconfig &#8211;levels <span class="nu0">235</span> mysqld on</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># Start DB</span></div>
</li>
<li class="li1">
<div class="de1"><span class="sy0">/</span>etc<span class="sy0">/</span>init.d<span class="sy0">/</span>mysqld start</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># Grant permissions to db_user (1.2.3.4 is the web server IP address)</span></div>
</li>
<li class="li1">
<div class="de1">mysql -e <span class="st0">&quot;grant all privileges on db_name.* to db_user@&#39;1.2.3.4&#39; identified by &#39;password&#39;;&quot;</span></div>
</li>
<li class="li1">
<div class="de1">mysql -e <span class="st0">&quot;flush privileges;&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co0">#############################################################</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># FIREWALL</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># Open DB port 3306</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># Allow connections only from web server</span></div>
</li>
<li class="li1">
<div class="de1">iptables -F</div>
</li>
<li class="li1">
<div class="de1">iptables -A INPUT -p tcp &#8211;dport <span class="nu0">22</span> -j ACCEPT</div>
</li>
<li class="li1">
<div class="de1">iptables -P INPUT DROP</div>
</li>
<li class="li1">
<div class="de1">iptables -P FORWARD DROP</div>
</li>
<li class="li1">
<div class="de1">iptables -P OUTPUT ACCEPT</div>
</li>
<li class="li1">
<div class="de1">iptables -A INPUT -i lo -j ACCEPT</div>
</li>
<li class="li1">
<div class="de1">iptables -A INPUT -m state &#8211;state ESTABLISHED,RELATED -j ACCEPT</div>
</li>
<li class="li1">
<div class="de1">iptables -A INPUT -s <span class="nu0">1.2</span><span class="nu0">.3</span><span class="nu0">.4</span> -p tcp &#8211;dport <span class="nu0">3306</span> -j ACCEPT</div>
</li>
<li class="li1">
<div class="de1">iptables -L -v</div>
</li>
<li class="li1">
<div class="de1">service iptables save</div>
</li>
</ol>
</div>
<p>As easy as that, having a MySQL server up and running is piece of cake :) </p>
<h3  class="related_post_title">Related Posts:</h3><ul class="related_post"><li>January 31, 2010 -- <a href="http://dev.enekoalonso.com/2010/01/31/cloudservers-creating-a-new-web-server-with-httpd-php-memcached/" title="CloudServers: Creating a new web server with httpd, php &#038; memcached">CloudServers: Creating a new web server with httpd, php &#038; memcached</a> (1)</li><li>January 30, 2010 -- <a href="http://dev.enekoalonso.com/2010/01/30/got-new-servers-on-rackspace-cloud/" title="Got new servers on Rackspace Cloud">Got new servers on Rackspace Cloud</a> (5)</li><li>February 6, 2010 -- <a href="http://dev.enekoalonso.com/2010/02/06/got-nfs-working/" title="Got NFS working">Got NFS working</a> (0)</li><li>October 1, 2010 -- <a href="http://dev.enekoalonso.com/2010/10/01/having-fun-with-node-js-redis/" title="Having fun with node.js &#038; Redis">Having fun with node.js &#038; Redis</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://dev.enekoalonso.com/2010/01/31/cloudservers-creating-a-new-mysql-db-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CloudServers: Creating a new web server with httpd, php &amp; memcached</title>
		<link>http://dev.enekoalonso.com/2010/01/31/cloudservers-creating-a-new-web-server-with-httpd-php-memcached/</link>
		<comments>http://dev.enekoalonso.com/2010/01/31/cloudservers-creating-a-new-web-server-with-httpd-php-memcached/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 17:16:47 +0000</pubDate>
		<dc:creator>Eneko Alonso</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[fedora12]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[httpd]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[memcached]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[rackspacecloud]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://dev.enekoalonso.com/?p=442</guid>
		<description><![CDATA[Creating a new web server is piece of cake at Rackspace Cloud. Here is a demo video of how to set up a new instance with your favorite Linux distribution. I have used Fedora 12 for my new spaniards.es servers, and here is the script I&#8217;ve used to install everything needed so far: # Install [...]]]></description>
			<content:encoded><![CDATA[<p>Creating a new web server is piece of cake at Rackspace Cloud. Here is a demo video of <a href="http://www.rackspacecloud.com/cloud_hosting_demos/cloud_computing_cloud_servers">how to set up a new instance with your favorite Linux distribution</a>. I have used Fedora 12 for my new spaniards.es servers, and here is the script I&#8217;ve used to install everything needed so far:</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1"><span class="co0"># Install HTTPD</span></div>
</li>
<li class="li1">
<div class="de1">yum -y <span class="kw2">install</span> httpd rsync</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># Install PHP</span></div>
</li>
<li class="li1">
<div class="de1">yum -y <span class="kw2">install</span> php php-mbstring php-mysql mysql</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co0">#############################################################</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># FIREWALL</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># Open http port 80 (and ssh)</span></div>
</li>
<li class="li1">
<div class="de1">iptables -F</div>
</li>
<li class="li1">
<div class="de1">iptables -A INPUT -p tcp &#8211;dport <span class="nu0">22</span> -j ACCEPT</div>
</li>
<li class="li1">
<div class="de1">iptables -P INPUT DROP</div>
</li>
<li class="li1">
<div class="de1">iptables -P FORWARD DROP</div>
</li>
<li class="li1">
<div class="de1">iptables -P OUTPUT ACCEPT</div>
</li>
<li class="li1">
<div class="de1">iptables -A INPUT -i lo -j ACCEPT</div>
</li>
<li class="li1">
<div class="de1">iptables -A INPUT -m state &#8211;state ESTABLISHED,RELATED -j ACCEPT</div>
</li>
<li class="li1">
<div class="de1">iptables -A INPUT -p tcp &#8211;dport <span class="nu0">80</span> -j ACCEPT</div>
</li>
<li class="li1">
<div class="de1">iptables -L -v</div>
</li>
<li class="li1">
<div class="de1">service iptables save</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># Start HTTPD server</span></div>
</li>
<li class="li1">
<div class="de1"><span class="sy0">/</span>etc<span class="sy0">/</span>init.d<span class="sy0">/</span>httpd start</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># Install &nbsp;memcached</span></div>
</li>
<li class="li1">
<div class="de1">yum -y <span class="kw2">install</span> memcached</div>
</li>
<li class="li1">
<div class="de1">memcached -d -u apache</div>
</li>
<li class="li1">
<div class="de1">yum -y <span class="kw2">install</span> php-pecl-memcache</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># Restart HTTPD server</span></div>
</li>
<li class="li1">
<div class="de1"><span class="sy0">/</span>etc<span class="sy0">/</span>init.d<span class="sy0">/</span>httpd restart</div>
</li>
</ol>
</div>
<p>DNS configuration can be done through the admin pages, so there is no need for manual configuration. Copying the data from your old server can be done with rsync and having mysql installed is handy to test db connections from the console.</p>
<p>In less than 10 minutes you can have a new web server up and running :)</p>
<h3  class="related_post_title">Related Posts:</h3><ul class="related_post"><li>January 31, 2010 -- <a href="http://dev.enekoalonso.com/2010/01/31/cloudservers-creating-a-new-mysql-db-server/" title="CloudServers: Creating a new MySQL db server">CloudServers: Creating a new MySQL db server</a> (0)</li><li>January 30, 2010 -- <a href="http://dev.enekoalonso.com/2010/01/30/got-new-servers-on-rackspace-cloud/" title="Got new servers on Rackspace Cloud">Got new servers on Rackspace Cloud</a> (5)</li><li>February 6, 2010 -- <a href="http://dev.enekoalonso.com/2010/02/06/got-nfs-working/" title="Got NFS working">Got NFS working</a> (0)</li><li>December 5, 2008 -- <a href="http://dev.enekoalonso.com/2008/12/05/enabling-php5-on-mac-os-x-leopard/" title="Enabling PHP5 on Mac OS X Leopard">Enabling PHP5 on Mac OS X Leopard</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://dev.enekoalonso.com/2010/01/31/cloudservers-creating-a-new-web-server-with-httpd-php-memcached/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Got new servers on Rackspace Cloud</title>
		<link>http://dev.enekoalonso.com/2010/01/30/got-new-servers-on-rackspace-cloud/</link>
		<comments>http://dev.enekoalonso.com/2010/01/30/got-new-servers-on-rackspace-cloud/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 01:06:09 +0000</pubDate>
		<dc:creator>Eneko Alonso</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[ace-host]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[community]]></category>
		<category><![CDATA[ec2]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[rackspace]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[spaniards]]></category>
		<category><![CDATA[webserver]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://dev.enekoalonso.com/?p=433</guid>
		<description><![CDATA[Last night I got an account at Rackspace Cloud and created three brand new CentOS Linux servers. Now I have to set them up: two web servers and one database server. My goal: Move Spaniards.es website to this new hosting. Why move? Currently I am hosting Spaniards.es on two dedicated servers at Ace-Host.net. So far, [...]]]></description>
			<content:encoded><![CDATA[<p>Last night I got an account at <a href="http://www.rackspacecloud.com/cloud_hosting_products/servers">Rackspace Cloud</a> and created three brand new CentOS Linux servers. Now I have to set them up: two web servers and one database server. My goal: Move Spaniards.es website to this new hosting.</p>
<h3>Why move?</h3>
<p>Currently I am hosting <a href="http://spaniards.es/">Spaniards.es</a> on two dedicated servers at <a href="http://ace-host.net/">Ace-Host.net</a>. So far, so good, but the site has started to get slow (more the web server than the db server, which is running great so far). Some days I found the site running at 30 times the processor capacity (according to &#8216;top&#8217;), which is a lot. The biggest problem I have right now is the caching on the web server. I have installed both XCache and Memcached, but can get them to work since that server was my first ever dedicated server an has a CPanel installation that drives me nuts.</p>
<p>Sooner or later I had to move that webserver into a new clean installation, but I have decided that if I have to move, I&#8217;ll do it to a cloud. No more dependencies on a physical hardware, no more worries.</p>
<h3>Why not EC2</h3>
<p>Well, I&#8217;ve ried <a href="http://aws.amazon.com/ec2/">EC2</a> and it is not that I don&#8217;t like it. It is just that it is so much work. After seeing how <a href="http://www.rackspacecloud.com/cloud_hosting_products/servers">CloudServers</a> work on RackSpace, I have no doubt.</p>
<h3>When is Spaniards.es going to be moved?</h3>
<p>There is no date yet. First I have to set up the servers, make sure everything works fine, set up the domains, dns, mail, etc. Hopefully in a couple of weeks, if I can find enough time to do so.</p>
<h3  class="related_post_title">Related Posts:</h3><ul class="related_post"><li>January 31, 2010 -- <a href="http://dev.enekoalonso.com/2010/01/31/cloudservers-creating-a-new-web-server-with-httpd-php-memcached/" title="CloudServers: Creating a new web server with httpd, php &#038; memcached">CloudServers: Creating a new web server with httpd, php &#038; memcached</a> (1)</li><li>January 31, 2010 -- <a href="http://dev.enekoalonso.com/2010/01/31/cloudservers-creating-a-new-mysql-db-server/" title="CloudServers: Creating a new MySQL db server">CloudServers: Creating a new MySQL db server</a> (0)</li><li>February 6, 2010 -- <a href="http://dev.enekoalonso.com/2010/02/06/got-nfs-working/" title="Got NFS working">Got NFS working</a> (0)</li><li>October 1, 2010 -- <a href="http://dev.enekoalonso.com/2010/10/01/having-fun-with-node-js-redis/" title="Having fun with node.js &#038; Redis">Having fun with node.js &#038; Redis</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://dev.enekoalonso.com/2010/01/30/got-new-servers-on-rackspace-cloud/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

