<?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; memcached</title>
	<atom:link href="http://dev.enekoalonso.com/tag/memcached/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>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>
	</channel>
</rss>

