<?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>Linux Windows System Administrator Help &#187; eruby</title>
	<atom:link href="http://linuxwindowsmaster.com/tag/eruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuxwindowsmaster.com</link>
	<description></description>
	<lastBuildDate>Wed, 15 Feb 2012 17:58:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>How to install mod_ruby and eruby on Linux server ?</title>
		<link>http://linuxwindowsmaster.com/how-to-install-mod_ruby-and-eruby-on-linux-server/</link>
		<comments>http://linuxwindowsmaster.com/how-to-install-mod_ruby-and-eruby-on-linux-server/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 22:53:56 +0000</pubDate>
		<dc:creator>Alex P</dc:creator>
				<category><![CDATA[Cpanel Server]]></category>
		<category><![CDATA[Dedicated Server]]></category>
		<category><![CDATA[eruby]]></category>
		<category><![CDATA[mod_ruby]]></category>

		<guid isPermaLink="false">http://linuxwindowsmaster.com/?p=192</guid>
		<description><![CDATA[What is mod_ruby? mod_ruby embeds the Ruby interpreter into the Apache web server, allowing Ruby CGI scripts to be executed natively. These scripts will start up much faster than without mod_ruby. 1) Install eRuby # wget http://www.modruby.net/archive/eruby-1.0.5.tar.gz # tar -xzvf eruby-1.0.5.tar.gz # cd eruby-1.0.5/ # ./configure.rb –with-charset=euc-jp –enable-shared # make; make install 2) Install mod_ruby [...]]]></description>
			<content:encoded><![CDATA[<p><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--></p>
<h2><span style="font-size: 12pt; font-family: Georgia;">What is mod_ruby?</span><em></em></h2>
<p><em><span style="font-size: 11pt; font-family: Georgia;">mod_ruby embeds the Ruby interpreter into the Apache web server, allowing Ruby CGI scripts to be executed natively. These scripts will start up much faster than without mod_ruby.</span></em></p>
<p><em><span style="font-size: 10pt; font-family: Georgia;"><br />
</span></em></p>
<p><strong><span style="font-family: Georgia;">1) Install eRuby</span></strong></p>
<pre>
<h3><strong><span style="font-size: 12pt; font-family: Georgia; font-weight: normal;">#</span><span style="font-size: 12pt; font-family: Georgia;"> </span></strong><strong><span style="font-size: 12pt; font-family: Georgia; font-weight: normal;">wget </span><span style="font-size: 12pt; font-family: Georgia;"><a href="http://www.modruby.net/archive/eruby-1.0.5.tar.gz" target="_top">http://www.modruby.net/archive/eruby-1.0.5.tar.gz</a></span></strong></h3>
<h3><strong><span style="font-size: 12pt; font-family: Georgia; font-weight: normal;"># tar -xzvf eruby-1.0.5.tar.gz</span></strong></h3>
<h3><strong><span style="font-size: 12pt; font-family: Georgia; font-weight: normal;"># cd eruby-1.0.5/</span></strong></h3>
<h3><strong><span style="font-size: 12pt; font-family: Georgia; font-weight: normal;">#</span></strong><strong><span style="font-size: 12pt; font-family: Georgia;"> </span><span style="font-size: 12pt; font-family: Georgia; font-weight: normal;">./configure.rb –with-charset=euc-jp –enable-shared</span></strong></h3>
<h3><strong><em><span style="font-size: 12pt; font-family: Georgia; font-style: normal;"># </span></em><em><span style="font-size: 12pt; font-family: Georgia; font-weight: normal; font-style: normal;">make; make install</span></em></strong></h3>
</pre>
<p><strong><span style="font-family: Georgia;">2) Install mod_ruby</span></strong></p>
<pre>
<h3><em><span style="font-size: 12pt; font-family: Georgia; font-style: normal;">i)Download latest mod_ruby tar file</span></em></h3>
<h3><em><span style="font-size: 12pt; font-family: Georgia; font-weight: normal; font-style: normal;"># wget </span></em><em><span style="font-size: 12pt; font-family: Georgia; font-style: normal;"><a href="http://www.modruby.net/archive/mod_ruby-1.2.6.tar.gz" target="_top">http://www.modruby.net/archive/mod_ruby-1.2.6.tar.gz</a></span></em></h3>
<h3><em><span style="font-size: 12pt; font-family: Georgia; font-weight: normal; font-style: normal;"># tar -xzvf mod_ruby-1.2.6.tar.gz</span></em><em></em></h3>
<h3><em><span style="font-size: 12pt; font-family: Georgia; font-weight: normal; font-style: normal;">#</span></em><em><span style="font-size: 12pt; font-family: Georgia; font-weight: normal;"> </span></em><em><span style="font-size: 12pt; font-family: Georgia; font-weight: normal; font-style: normal;">cd mod_ruby-1.2.6/</span></em><em></em></h3>
<h3><em><span style="font-size: 12pt; font-family: Georgia; font-weight: normal; font-style: normal;">#  ./configure.rb –enable-eruby –with-apxs=/usr/local/apache/bin/apxs</span></em><em></em></h3>
<h3><em><span style="font-size: 12pt; font-family: Georgia; font-weight: normal; font-style: normal;"># make; make install</span></em><em></em></h3>
</pre>
<h3><em><span style="font-size: 12pt; font-family: Georgia; font-style: normal;">ii)Edit apache configuration file ( httd.conf) and add following code</span></em><em></em></h3>
<pre><span style="font-size: 11pt; font-family: Georgia;">LoadModule ruby_module libexec/mod_ruby.so</span>
<span style="font-size: 10pt; font-family: Georgia;">ClearModuleList</span>
<span style="font-size: 10pt; font-family: Georgia;">AddModule mod_ruby.c</span>
<span style="font-size: 10pt; font-family: Georgia;">AddHandler cgi-script .rb</span>
<span style="font-size: 10pt; font-family: Georgia;">&lt;IfModule mod_mime.c&gt;</span>

<span style="font-size: 10pt; font-family: Georgia;"># for Ruby/eRuby</span>
<span style="font-size: 10pt; font-family: Georgia;">&lt;IfModule mod_ruby.c&gt;</span>
<span style="font-size: 10pt; font-family: Georgia;"># for Apache::RubyRun</span>
<span style="font-size: 10pt; font-family: Georgia;">RubyRequire apache/ruby-run</span>
<span style="font-size: 10pt; font-family: Georgia;"># for Apache::ERubyRun</span>
<span style="font-size: 10pt; font-family: Georgia;">RubyRequire apache/eruby-run</span>
<span style="font-size: 10pt; font-family: Georgia;"># for development</span>
<span style="font-size: 10pt; font-family: Georgia;"># RubyRequire auto-reload</span>
<span style="font-size: 10pt; font-family: Georgia;"># for add library</span>
<span style="font-size: 10pt; font-family: Georgia;">#RubyAddPath /usr/local/lib/ruby</span>
<span style="font-size: 10pt; font-family: Georgia;"># exec *.rbx as ruby scripts.</span>
<span style="font-size: 10pt; font-family: Georgia;">&lt;Files *.rbx&gt;</span>
<span style="font-size: 10pt; font-family: Georgia;">SetHandler ruby-object</span>
<span style="font-size: 10pt; font-family: Georgia;">RubyHandler Apache::RubyRun.instance</span>
<span style="font-size: 10pt; font-family: Georgia;">&lt;/Files&gt;</span>
<span style="font-size: 10pt; font-family: Georgia;"># handle *.rhtml as eruby files.</span>
<span style="font-size: 10pt; font-family: Georgia;">&lt;Files *.rhtml&gt;</span>
<span style="font-size: 10pt; font-family: Georgia;">SetHandler ruby-object</span>
<span style="font-size: 10pt; font-family: Georgia;">RubyHandler Apache::ERubyRun.instance</span>
<span style="font-size: 10pt; font-family: Georgia;">&lt;/Files&gt;</span>
<span style="font-size: 10pt; font-family: Georgia;">&lt;/IfModule&gt;</span>
<span style="font-size: 10pt; font-family: Georgia;">&lt;/IfModule&gt;</span></pre>
<h3><em><span style="font-size: 12pt; font-family: Georgia; font-style: normal;">iii) Restart apache service on server</span></em></h3>
<p><em><span style="font-size: 12pt; font-family: Georgia; font-style: normal;"><br />
</span></em></p>
<p><em><span style="font-size: 12pt; font-family: Georgia; font-style: normal;">Regards</span></em></p>
<p><em><span style="font-size: 12pt; font-family: Georgia; font-style: normal;">Alex P<br />
</span></em></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxwindowsmaster.com/how-to-install-mod_ruby-and-eruby-on-linux-server/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

