<?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; apache</title>
	<atom:link href="http://dev.enekoalonso.com/tag/apache/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>
		<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>
		<item>
		<title>Moved research to enekoalonso.com</title>
		<link>http://dev.enekoalonso.com/2009/01/11/moved-research-to-enekoalonsocom/</link>
		<comments>http://dev.enekoalonso.com/2009/01/11/moved-research-to-enekoalonsocom/#comments</comments>
		<pubDate>Sun, 11 Jan 2009 17:05:22 +0000</pubDate>
		<dc:creator>Eneko Alonso</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[demos]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[redirect]]></category>
		<category><![CDATA[research]]></category>

		<guid isPermaLink="false">http://dev.enekoalonso.com/?p=250</guid>
		<description><![CDATA[You shouldn&#8217;t notice it, but I have moved all my research demos from dev.enekoalonso.com/research to enekoalonso.com/research. It is just a little change, but will help keeping things more organized, I think. To avoid breaking old links, I have added a 301 redirect: Options +FollowSymLinks RewriteEngine on &#160; # For http://dev.enekoalonso.com/research RewriteCond %&#123;REQUEST_URI&#125; ^/research$ RewriteRule .* [...]]]></description>
			<content:encoded><![CDATA[<p>You shouldn&#8217;t notice it, but I have moved all my research demos from <a href="http://dev.enekoalonso.com/research">dev.enekoalonso.com/research</a> to <a href="http://enekoalonso.com/research">enekoalonso.com/research</a>. It is just a little change, but will help keeping things more organized, I think.</p>
<p>To avoid breaking old links, I have added a 301 redirect:</p>
<div class="geshi no apache">
<ol>
<li class="li1">
<div class="de1"><span class="kw1">Options</span> +<span class="kw2">FollowSymLinks</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">RewriteEngine</span> <span class="kw2">on</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1"># For http://dev.enekoalonso.com/research</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">RewriteCond</span> %<span class="br0">&#123;</span>REQUEST_URI<span class="br0">&#125;</span> ^/research$</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">RewriteRule</span> .* http://enekoalonso.com/research <span class="br0">&#91;</span>R=<span class="nu0">301</span>,L<span class="br0">&#93;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1"># For http://dev.enekoalonso.com/research/*</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">RewriteRule</span> <span class="br0">&#40;</span>.*<span class="br0">&#41;</span> http://enekoalonso.com/research/$<span class="nu0">1</span> <span class="br0">&#91;</span>R=<span class="nu0">301</span>,L<span class="br0">&#93;</span></div>
</li>
</ol>
</div>
<p>Let me know if you find any issues.</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>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/2009/01/11/moved-research-to-enekoalonsocom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enabling PHP5 on Mac OS X Leopard</title>
		<link>http://dev.enekoalonso.com/2008/12/05/enabling-php5-on-mac-os-x-leopard/</link>
		<comments>http://dev.enekoalonso.com/2008/12/05/enabling-php5-on-mac-os-x-leopard/#comments</comments>
		<pubDate>Sat, 06 Dec 2008 05:07:43 +0000</pubDate>
		<dc:creator>Eneko Alonso</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[httpd]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://dev.enekoalonso.com/?p=85</guid>
		<description><![CDATA[I had done this already at work, but for some reason my MacBook Pro still didn&#8217;t &#8220;understand&#8221; PHP. Well, I&#8217;ve decided it&#8217;s time to activate it: # Use your favorite editor mate /etc/apache2/httpd.conf # Uncomment the line: #LoadModule php5_module libexec/apache2/libphp5.so # Restart apache sudo apachectl restart Done. Related Posts:January 31, 2010 -- CloudServers: Creating a [...]]]></description>
			<content:encoded><![CDATA[<p>I had done this already at work, but for some reason my MacBook Pro still didn&#8217;t &#8220;understand&#8221; PHP. Well, I&#8217;ve decided it&#8217;s time to activate it:</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1"><span class="co0"># Use your favorite editor</span></div>
</li>
<li class="li1">
<div class="de1">mate <span class="sy0">/</span>etc<span class="sy0">/</span>apache2<span class="sy0">/</span>httpd.conf</div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># Uncomment the line:</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0">#LoadModule php5_module libexec/apache2/libphp5.so</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># Restart apache</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">sudo</span> apachectl restart</div>
</li>
</ol>
</div>
<p>Done.</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>July 13, 2011 -- <a href="http://dev.enekoalonso.com/2011/07/13/clone-your-osxterminal-window/" title="Clone your OSX terminal window">Clone your OSX terminal window</a> (1)</li><li>October 5, 2010 -- <a href="http://dev.enekoalonso.com/2010/10/05/javascript-console-in-the-terminal-command-line/" title="Javascript console in the terminal (command line)">Javascript console in the terminal (command line)</a> (1)</li><li>August 9, 2011 -- <a href="http://dev.enekoalonso.com/2011/08/09/uninstalling-brew-so-i-can-reinstall/" title="Uninstalling brew (so I can reinstall)">Uninstalling brew (so I can reinstall)</a> (2)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://dev.enekoalonso.com/2008/12/05/enabling-php5-on-mac-os-x-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

