<?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>cloud goes social &#187; xampp</title>
	<atom:link href="http://www.cloudgoessocial.net/tag/xampp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cloudgoessocial.net</link>
	<description>computer, travel, movies, music, cuisine and more</description>
	<lastBuildDate>Thu, 09 Sep 2010 07:46:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>ROR on Xampp on Win</title>
		<link>http://www.cloudgoessocial.net/2009/05/17/ror-on-xampp-on-win/</link>
		<comments>http://www.cloudgoessocial.net/2009/05/17/ror-on-xampp-on-win/#comments</comments>
		<pubDate>Sun, 17 May 2009 10:39:00 +0000</pubDate>
		<dc:creator>Cloud</dc:creator>
				<category><![CDATA[tips & howtos]]></category>
		<category><![CDATA[ror]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[xampp]]></category>

		<guid isPermaLink="false">http://www.cloudgoessocial.net/?p=94</guid>
		<description><![CDATA[For those who don&#8217;t understand the title don&#8217;t worry, this is a &#8220;technical&#8221; post: installing Ruby on Rails (ROR) over an existing XAMPP (Apache, PHP, MySQL, &#8230;) installation in Windows. For all of those who have somehow a Windows &#8220;server&#8221; used to test websites and want to install Ruby and the fantastic Ruby on Rails]]></description>
			<content:encoded><![CDATA[<p>For those who don&#8217;t understand the title don&#8217;t worry, this is a <em>&#8220;technical&#8221;</em> post: installing Ruby on Rails (ROR) over an existing <a href="http://www.apachefriends.org/en/index.html">XAMPP</a> (Apache, PHP, MySQL, &#8230;) installation in Windows. For all of those who have somehow a Windows <em>&#8220;server&#8221;</em> used to test websites and want to install <a href="http://www.ruby-lang.org/en/">Ruby</a> and the fantastic <a href="http://www.rubyonrails.org/">Ruby on Rails</a> framework.</p>
<p><strong>Prerequisites</strong>: a working installation of XAMPP, in my example installed under: <strong>C:\xampp</strong>.</p>
<ol>
<li>Install ROR via the <em>&#8220;one click installer&#8221;</em> which can be found on the ROR site: <a href="http://rubyforge.org/frs/?group_id=167">installers list</a>. To have everything in one <em>&#8220;web-development directory&#8221;</em> when prompted by the installer choose <strong>C:\xampp\ruby</strong></li>
<li>Open the dreaded DOS-prompt or <strong>cmd</strong>: Start->Run->cmd</li>
<li>First off update gem, The version installed will stop whenever an update fails, to solve this update gem first. Let&#8217;s navigate to the ruby bin directory: <br /><code>cd C:\xampp\ruby\bin</code><br /> and then the command: <br /><code>gem update --system</code></li>
<li>Now all the <em>gems</em> are updated, install rails with this command:<br /><code>gem install rails --include-dependencies</code><br /> This will take a while especially for generating the whole documentation, don&#8217;t worry, everything is going all right, wait and be patient</li>
<li>Create a test application with the command:<br /><code>rails C:/xampp/htdocs/testapp</code><br /> If all went fine you will see some output saying that some files have been created. Rails is installed all fine</li>
<li>Now it&#8217;s time to create a Virtual Host in apache to test out our installation. Edit the file: <strong>C:xamppapacheconfextrahttpd-vhosts.conf</strong> with your favourite <em>good</em> editor. I always have installed <a href="http://notepad-plus.sourceforge.net/uk/site.htm">Notepad++</a> and at the end add the following lines:
<pre class="brush: plain;">
## ROR
Listen 3000
&lt;VirtualHost *:3000&gt;
	ServerName ROR
	DocumentRoot &quot;C:\xampp\htdocs&quot;
	&lt;Directory &quot;C:\xampp\htdocs&quot;&gt;
		Options ExecCGI FollowSymLinks
		AllowOverride all
		Allow from all
		Order allow,deny
		AddHandler cgi-script .cgi
		AddHandler fastcgi-script .fcgi
	&lt;/Directory&gt;
&lt;/VirtualHost&gt;
## END-ROR
</pre>
</li>
<li>Restart apache from the XAMPP control panel and then go, on your favorite browser to:<br /><code>http://localhost:3000/testapp/public</code><br />To see if everything went fine, the page should look like this screenshot<br />
<div id="attachment_110" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.cloudgoessocial.net/wp-content/uploads/2009/05/picture-1.png"><img src="http://www.cloudgoessocial.net/wp-content/uploads/2009/05/picture-1-300x210.png" alt="ROR installed on XAMPP in Windows" title="ROR installed and working" width="300" height="210" class="size-medium wp-image-110" /></a><p class="wp-caption-text">ROR installed on XAMPP in Windows</p></div>
</li>
</ol>
<h3>Versions</h3>
<p>At the moment of this writing this is the list of version numbers for the installed applications running and working as configured in this post:</p>
<ul>
<li>XAMPP: 1.6.6a</li>
<li>ruby -v: ruby 1.8.6 <2008-08-11 patchlevel 287> [i386-mswin32]</li>
<li>gem -v: 1.3.3</li>
<li>rails -v: Rails 2.3.2</li>
</ul>
<p>I would like to thank the author of <a href="http://peri.me/?p=73">this post</a> which is the starting point of my post. I just did some minor changes to remove some errors, especially when updating gems. Also I changed the file to edit to add the Virtual Host to keep things more clean in the <em>http.conf</em> file.</p>
<p>For any trouble don&#8217;t hesitate to contact me!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudgoessocial.net/2009/05/17/ror-on-xampp-on-win/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
