<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0"
 xmlns:blogChannel="http://backend.userland.com/blogChannelModule"
>

<channel>
<title>Parallels knowledgebase (KB)</title>
<link>http://kb.parallels.com/</link>
<description>Parallels knowledgebase (KB)</description>
<language>en</language>
<copyright>Copyright 2008 Parallels</copyright>
<pubDate>Wed, 10 Sep 2008 00:00:00 +0600</pubDate>
<lastBuildDate>Wed, 10 Sep 2008 00:00:00 +0600</lastBuildDate>
<webMaster>rt-team@parallels.com</webMaster>

<item>
<title><![CDATA[I want to use ruby web application however I cannot find "Ruby on Rails" button anywhere to activate it on my domain. How can I activate the option?]]></title>
<link>http://kb.parallels.com/en/5489</link>
<description><![CDATA[<div id="article">
	




	<div id="kb" class="kb">
		<div class="article-container">
			<h2 class="title">I want to use ruby web application however I cannot find "Ruby on Rails" button anywhere to activate it on my domain. How can I activate the option?</h2>
			<div class="ab-frame"><div class="bl"><div class="br"><div class="tl"><div class="tr"><!-- frame -->
				<div class="articleProperty">
					<div>Article ID: 5489&nbsp;</div>
					<div>Last Review: Oct,6 2008</div>
					<tr>
						<td>Author: </td>
						<td>Bezborodova Anastasiya</td>
					</tr>
					<br/>
					<tr>
						<td>Last updated by: </td>
						<td>system</td>
					</tr>
					<strong>APPLIES TO:</strong>
					<div class="articleApplies">
						<ul>
							<li>Plesk 8.1 for Linux/Unix</li>
							<li>Plesk 8.2 for Linux/Unix</li>
							<li>Plesk 8.3 for Linux/Unix</li>
							<li>Plesk 8.4 for Linux/Unix</li>
						</ul>
					</div>
				</div><!-- articleProperty -->
			</div></div></div></div></div><!-- frame -->

			<div class="article-internal-flag"></div>

			<div id="article-content">
				<div class="article-part">
					<h2>Resolution</h2>
					Since version 8.1 Plesk Control Panel supports Ruby on Rails. There is no an option in Plesk Control Panel that should be&nbsp; checked to enable Ruby on Rails support, it is only enough to get <strong>ruby</strong> packages installed.<br /> <br /> To install on your site an application written in Ruby: <br /><br />1. Go to <strong>Domains &gt; <em>your-domain.com</em></strong><strong> &gt; Setup</strong>.<br />2. Select the <strong>CGI</strong> and <strong>FastCGI</strong> check boxes, and click <strong>OK</strong>.<br />3. Connect to your FTP account, change to the <em>/htdocs</em> directory, and create a subdirectory where the application files will reside. Let&#39;s call this directory  <em>your_application</em>, for illustration purposes.<br />4. Upload the application files to the <em>htdocs/your_application</em> directory.<br />5. Create a file with name <em>.htaccess</em> in this directory, open it with a text editor of your choice and add the following lines into the file:<br /><br /><span style='font-family: courier new,courier;font-size: 12px;'><em>RewriteEngine On RewriteRule ^$ /public/index.html [L] RewriteCond %{REQUEST_URI} !^/your_application/public<br /></em><em>RewriteRule ^(.*)$ /public/$1 [L] RewriteCond %{REQUEST_FILENAME} !-f  RewriteRule ^(.*)$ public/dispatch.fcgi/$1 [QSA,L]</span><br /><br /></em>6. Save the file.<br />  7. Remove the file <em>your_application/public/.htaccess</em><br />8. Open the file <em>your_application/public/dispatch.fcgi</em> with a text editor and put the following lines there: <span style='font-family: courier new,courier;font-size: 12px;'><em>#!/usr/bin/ruby</em><em></span></em><br />9. Save the file.  <p>Now the web application will be accessible at the following URL: <em>http://your-domain.com/your_application</em>.</p>
				</div>
				<div class="article-part">
					<h2>Additional information</h2>
					Refer to Plesk documentation for details about installation of a Ruby on Rails application.<br /><br /><a href="http://kb.parallels.comhttp://download1.swsoft.com/Plesk/Plesk8.4/Doc/en-US/plesk-8.4-unix-administrators-guide/index.htm">http://download1.swsoft.com/Plesk/Plesk8.4/Doc/en-US/plesk-8.4-unix-administrators-guide/index.htm</a> <br />Serving Your<a href="http://kb.parallels.comhttp://download1.swsoft.com/Plesk/Plesk8.4/Doc/en-US/plesk-8.4-unix-administrators-guide/28577.htm"> </a>Customers -&gt; Hosting Web Sites -&gt;&nbsp; Installing Applications -&gt;&nbsp; Installing Ruby Web Applications
				</div>
				<div class="keywords"><strong>Keywords:</strong> Ruby on Rails application</div>
			</div>
		</div><!-- article-container -->


			<br/><br/>

			<div id="SubscriptionLink24Article" class="subscriptionLink2">
<a href="http://kb.parallels.com/subscriptions/index.html?Type=Article&ArticleID=5489&ArticleLanguage=en&Product=&Category="><img src="http://kb.parallels.com/images/mail.png" width="15" height="15" alt="Subscription for changes to this article"></a>
<a href="http://kb.parallels.com/subscriptions/index.html?Type=Article&ArticleID=5489&ArticleLanguage=en&Product=&Category=">Subscription for changes to this article</a>

<script type="text/javascript">

$(document).ready(function() {
	$('#SubscriptionLink24Article a').each(function(){
		$(this).click(function(event) {
			event.preventDefault();
			MainPageContentHide();
			$('#subscription').html('');
			$.get('/Stuff/Subscription', {
													'Type' : 'Article',
													'ArticleID' : '5489',
													'ArticleLanguage' : 'en',
													'Product' : '',
													'Category' : ''
												}, function(data) {
																	$('#subscription').html(data);
																	$('#subscription').show();
																	SUBbuildsubmenus_product();
																});
		});
	});
});

</script>

</div>





	</div><!-- kb -->

</div><!-- article -->


]]></description>
<author>Bezborodova Anastasiya</author>
<guid isPermaLink="false">5122 LastUpdated: 2008-10-06 09:16:16</guid>
<pubDate>2008-07-22 03:21:25</pubDate>
</item>
</channel>
</rss>



