<?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>it808.com &#187; Stephen</title>
	<atom:link href="http://it808.com/author/sfigart/feed/" rel="self" type="application/rss+xml" />
	<link>http://it808.com</link>
	<description></description>
	<lastBuildDate>Sun, 06 Dec 2009 08:48:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installing Sinatra on Site5 Passenger</title>
		<link>http://it808.com/2009/12/installing-sinatra-on-site5-passenger/</link>
		<comments>http://it808.com/2009/12/installing-sinatra-on-site5-passenger/#comments</comments>
		<pubDate>Sun, 06 Dec 2009 08:48:22 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://it808.com/?p=24</guid>
		<description><![CDATA[This is a just a quick note about how to deploy Sinatra on Site5.com Passenger
Gems
My gems are installed in my user folder:
INSTALLATION DIRECTORY:

~/.gem/ruby/1.8

GEM PATHS:
- /home/it808com/.gem/ruby/1.8
- /usr/lib/ruby/gems/1.8
GEM PATHS:

~/.gem/ruby/1.8
/usr/lib/ruby/gems/1.8

In my public_html/sinatra_app/.htaccess
# Phusion Passenger Start
PassengerEnabled on
PassengerAppRoot ~/public_html/sinatra_app
RackBaseURI /sinatra_app
# Phusion Passenger End
My sinatra_app folder consists of
app.rb
config.ru
public/
tmp/
Getting my gems into the sinatra environment requires 2 lines in the config.ru file
ENV['GEM_HOME'] [...]]]></description>
			<content:encoded><![CDATA[<p>This is a just a quick note about how to deploy Sinatra on Site5.com Passenger</p>
<h3>Gems</h3>
<p>My gems are installed in my user folder:</p>
<p>INSTALLATION DIRECTORY:</p>
<ul>
<li>~/.gem/ruby/1.8</li>
</ul>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">GEM PATHS:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">- /home/it808com/.gem/ruby/1.8</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">- /usr/lib/ruby/gems/1.8</div>
<p>GEM PATHS:</p>
<ul>
<li>~/.gem/ruby/1.8</li>
<li>/usr/lib/ruby/gems/1.8</li>
</ul>
<p>In my public_html/sinatra_app/.htaccess</p>
<pre># Phusion Passenger Start
PassengerEnabled on
PassengerAppRoot ~/public_html/sinatra_app
RackBaseURI /sinatra_app
# Phusion Passenger End</pre>
<p>My sinatra_app folder consists of</p>
<pre>app.rb
config.ru
public/
tmp/</pre>
<p>Getting my gems into the sinatra environment requires 2 lines in the config.ru file</p>
<pre>ENV['GEM_HOME'] = '~/.gem/ruby/1.8'
ENV['GEM_PATH'] = '~/.gem/ruby/1.8:/usr/lib/ruby/gems/1.8'

require 'rubygems'
require 'sinatra'
require 'app'
run Sinatra::Application</pre>
<p>My app.rb looks like</p>
<pre>
get '/' do
  "Hello World #{Time.now.utc} #{params.inspect}"

end
</pre>
]]></content:encoded>
			<wfw:commentRss>http://it808.com/2009/12/installing-sinatra-on-site5-passenger/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Site5 Wordpress Phusion Passenger and Rails</title>
		<link>http://it808.com/2009/07/site5-wordpress-phusion-passenger-and-rails/</link>
		<comments>http://it808.com/2009/07/site5-wordpress-phusion-passenger-and-rails/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 08:36:17 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[phusion]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[site5]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://it808.com/?p=18</guid>
		<description><![CDATA[I recently created a little toy rails app to see how easy it was to bring up rails with Site5&#8217;s Phusion Passenger. Following the instructions at first everything went as planned and my rails app was working flawlessly.
A few days later I was writing a 2nd rails app and noticed a Wordpress 404 error whenever [...]]]></description>
			<content:encoded><![CDATA[<p>I recently created a little <a href="http://it808.com/wordlist/">toy rails app</a> to see how easy it was to bring up rails with <a href="http://www.site5.com">Site5</a>&#8217;s <a href="http://www.modrails.com/">Phusion Passenger</a>. Following the <a href="http://www.site5.com/blog/programming/ruby-rails/how-to-deploy-phusion-passenger-to-a-subdirectory-routing-errors-and-restarting/20090414/">instructions</a> at first everything went as planned and my rails app was working flawlessly.</p>
<p>A few days later I was writing a 2nd rails app and noticed a Wordpress 404 error whenever I asked for a route other than the root URL. I tried my original rails app and it was broken also. I hadn&#8217;t touched a thing.</p>
<p>After a chat session with Site5 support (awesome response), it wasn&#8217;t resolved. Their level 1 support said it was my .htaccess file, and provided no other help (poor response).</p>
<p>After opening a ticket myself and providing them my .htaccess, environment.rb and symlink they again said it was my .htaccess file, but this time it was my public_html .htaccess file that was wrong. But still no other url or hint.</p>
<p>Turns out my public_html .htaccess file has some wordpress rewrite rules in it. I needed to exclude the rails subdirectories so that wordpress wouldn&#8217;t see them.</p>
<p>Here&#8217;s what I added to my public_html .htaccess<br />
<code>RewriteCond %{REQUEST_URI} !^/rails_app_name/</code></p>
]]></content:encoded>
			<wfw:commentRss>http://it808.com/2009/07/site5-wordpress-phusion-passenger-and-rails/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Setting up github from Site5</title>
		<link>http://it808.com/2009/07/setting-up-github-from-site5/</link>
		<comments>http://it808.com/2009/07/setting-up-github-from-site5/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 06:44:00 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://it808.com/?p=14</guid>
		<description><![CDATA[After setting up my account at github I created my first repository and followed their directions for configuring my local copy.
Things were going well but I got stuck on the public key portion. The rest of this is what I did to complete the configuration:
Followed the steps in the github for adding public keys
My first [...]]]></description>
			<content:encoded><![CDATA[<p>After setting up my account at <a href="www.github.com">github </a>I created my first repository and followed their <a href="http://github.com/sfigart/readathon/tree/master">directions</a> for configuring my local copy.</p>
<p>Things were going well but I got stuck on the public key portion. The rest of this is what I did to complete the configuration:<br />
Followed the steps in the github for adding public keys</p>
<p>My first problem was this error when I tried to git push<br />
<code><br />
Permission denied (publickey).<br />
</code></p>
<p>I had to follow these steps to generate my public key correctly<br />
<code><br />
ssh-agent /bin/bash<br />
ssh-add <name of my key> (without the .pub)<br />
</code></p>
<p>Now I could push to github.</p>
]]></content:encoded>
			<wfw:commentRss>http://it808.com/2009/07/setting-up-github-from-site5/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Wpremix3 and Site 5 permissions</title>
		<link>http://it808.com/2009/07/wpremix3-and-site-5-permissions/</link>
		<comments>http://it808.com/2009/07/wpremix3-and-site-5-permissions/#comments</comments>
		<pubDate>Sun, 05 Jul 2009 07:45:00 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://it808.com/?p=10</guid>
		<description><![CDATA[I just spent several hours looking at a error code 500 for a wpremix3 style.php page in Firebug. When I tried the url manually I got the same error with a generic Apache error page.

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Resolution:
This post in the Site [...]]]></description>
			<content:encoded><![CDATA[<p>I just spent several hours looking at a error code 500 for a <a href="http://wpremix.com/">wpremix3</a> style.php page in Firebug. When I tried the url manually I got the same error with a generic Apache error page.</p>
<blockquote>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or misconfiguration and was unable to complete your request.</p></blockquote>
<p>Resolution:</p>
<p>This <a href="http://forums.site5.com/showthread.php?t=9115">post</a> in the Site 5 forums lists the correct folder and file permissions.</p>
<p>I set the permissions for wpremix folder to 755 and files to 644. Problem solved.</p>
]]></content:encoded>
			<wfw:commentRss>http://it808.com/2009/07/wpremix3-and-site-5-permissions/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Webify&#8217;ing my PTA &#8211; Part II</title>
		<link>http://it808.com/2007/11/webifying-my-pta-part-ii/</link>
		<comments>http://it808.com/2007/11/webifying-my-pta-part-ii/#comments</comments>
		<pubDate>Sun, 04 Nov 2007 20:21:18 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[drupal]]></category>
		<category><![CDATA[pta]]></category>

		<guid isPermaLink="false">http://it808.com/?p=8</guid>
		<description><![CDATA[For the drupal installation I have installed fckeditor, google_analytics, and pathauto.
For themes, I selected the LiteJazz theme from rooplethemes.
]]></description>
			<content:encoded><![CDATA[<p>For the drupal installation I have installed fckeditor, google_analytics, and pathauto.</p>
<p>For themes, I selected the LiteJazz theme from rooplethemes.</p>
]]></content:encoded>
			<wfw:commentRss>http://it808.com/2007/11/webifying-my-pta-part-ii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Webify&#8217;ing my PTA &#8211; Part I</title>
		<link>http://it808.com/2007/11/webifying-my-pta-part-i/</link>
		<comments>http://it808.com/2007/11/webifying-my-pta-part-i/#comments</comments>
		<pubDate>Fri, 02 Nov 2007 09:19:48 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[google]]></category>
		<category><![CDATA[pta]]></category>

		<guid isPermaLink="false">http://it808.com/?p=7</guid>
		<description><![CDATA[Since my son started kindergarten this year I thought I would be a proactive parent and be involved in the school&#8217;s PTA. I quickly learned that the PTA only used email and no other internet based technology.
Based on a co-worker&#8217;s experience and recommendation I signed the PTA up for Google Apps Standard Edition. I also [...]]]></description>
			<content:encoded><![CDATA[<p>Since my son started kindergarten this year I thought I would be a proactive parent and be involved in the school&#8217;s PTA. I quickly learned that the PTA only used email and no other internet based technology.</p>
<p>Based on a <a href="http://blog.localkinegrinds.com" target="_blank">co-worker&#8217;s</a> experience and recommendation I signed the PTA up for <a href="http://www.google.com/a" target="_blank">Google Apps Standard Edition</a>. I also reserved the domain name (.org and .com) for them. I learned that the Gmail part of Google Apps is top-notch. I had some <a href="http://groups.google.com/group/hosted-the-basics/browse_thread/thread/13f74af7dea79a00" target="_blank">hiccups</a> with the Start page and Google Docs.</p>
<p>I also selected <a href="http://www.drupal.org" target="_blank">Drupal</a> for their public and member&#8217;s only website. I also seriously considered <a href="http://wordpress.org/" target="_blank">Wordpress</a>, because I saw several posts about using Wordpress as a CMS. After I got an idea of how many committees and people were involved, I decided that Drupal gives me the most flexibility in trying to meet each committees&#8217; needs.</p>
<p>The current status is that I have about 25 Google Apps accounts created, but only a handful of people using it regularly. I setup email lists (aliases) that forward mail to individual accounts. I have configured the individual accounts to also send as the email alias. This configuration solved my dilemma of the PTA using co-chairs, meaning no one person was the &#8220;leader&#8221;. I didn&#8217;t want to configure a main committee account and have it forward to a secondary account. This would also not have solved the send as requirement. So I think the email alias is the right way to go.</p>
<p>Part II will discuss configuring Drupal and learning about which modules and themes I decided to implement.</p>
]]></content:encoded>
			<wfw:commentRss>http://it808.com/2007/11/webifying-my-pta-part-i/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Starting Rails</title>
		<link>http://it808.com/2007/10/starting-rails/</link>
		<comments>http://it808.com/2007/10/starting-rails/#comments</comments>
		<pubDate>Sat, 27 Oct 2007 09:28:38 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[rails]]></category>
		<category><![CDATA[site5]]></category>

		<guid isPermaLink="false">http://it808.com/?p=5</guid>
		<description><![CDATA[After yesterday&#8217;s post I realized that I only proved that the subdomain worked. I didn&#8217;t actually get rails running. So today I&#8217;m continuing.

Renamed public/index.html
Edit config/routes.rb to define a default route, I uncommented the welcome controller entry
Generated the welcome controller (ruby ./script/generate controller Welcome index)
Added this to the index method

render :text =&#62; &#8216;Hello World&#8217;


Opened my browser [...]]]></description>
			<content:encoded><![CDATA[<p>After yesterday&#8217;s <a href="http://it808.com/?p=4" target="_blank">post</a> I realized that I only proved that the subdomain worked. I didn&#8217;t actually get <a href="http://rubyonrails.org" target="_blank">rails</a> running. So today I&#8217;m continuing.</p>
<ol>
<li>Renamed public/index.html</li>
<li>Edit config/routes.rb to define a default route, I uncommented the welcome controller entry</li>
<li>Generated the welcome controller (ruby ./script/generate controller Welcome index)</li>
<li>Added this to the index method
<ol>
<li>render :text =&gt; &#8216;Hello World&#8217;</li>
</ol>
</li>
<li>Opened my browser and got this great error message:
<ol>
<li>Rails application failed to start properly&#8221;</li>
</ol>
</li>
</ol>
<p>Now I thought, okay I didn&#8217;t create the DB yet. I also checked the logs and they were all 0.</p>
<p>I ended up using <a href="http://www.site5.com/in.php?id=43873" target="_blank">Site5</a>&#8217;s SiteAdmin to create the DB. I discovered that my account doesn&#8217;t have create database rights through PhpMyAdmin or MySql command-line. Interesting, but no big deal (right now).</p>
<p>I tried to access the site again and got the same error. I thought about killing the cgi/fcgi processes, but I didn&#8217;t  think I had started them yet. So I put the error into google and found this page:  <a href="http://6brand.com/application-error-rails-app-failed-to-start-properly" target="_blank">http://6brand.com/application-error-rails-app-failed-to-start-properly</a></p>
<p>I fired up my ssh connection and performed these commands:</p>
<ul>
<li>cd ~/myrailsapp</li>
<li>chmod 755 public</li>
<li>chmod 755 public/dispatch.fcgi</li>
<li>chmod -R 775 log</li>
<li>chmod -R 775 tmp</li>
</ul>
<p>I tried the site again and viola, rails is up with the render :text message.</p>
<p>Next, I try some real functionality. Or maybe I&#8217;ll try a <a href="http://www.capify.org/getting-started/rails" target="_blank">capistrano</a> deploy to get that all worked out first. And I guess <a href="http://subversion.tigris.org/" target="_blank">subversion</a> too.</p>
]]></content:encoded>
			<wfw:commentRss>http://it808.com/2007/10/starting-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple Site5 Rails Symlink to Subdomain</title>
		<link>http://it808.com/2007/10/simple-site5-rails-symlink-to-subdomain/</link>
		<comments>http://it808.com/2007/10/simple-site5-rails-symlink-to-subdomain/#comments</comments>
		<pubDate>Fri, 26 Oct 2007 10:08:14 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[rails]]></category>
		<category><![CDATA[site5]]></category>

		<guid isPermaLink="false">http://it808.com/?p=4</guid>
		<description><![CDATA[I have Wordpress as my domain root and when I tried to nest a rails app as a subfolder things didn&#8217;t work out. Instead I created a subdomain (i.e. test.mydomain.com), then I symlinked the rails_apps/public to the subdomain.
At site5 this boils down to the following steps:

Sign in to your SiteAdmin url
 Click Manage My Domains, Subdomains
Add [...]]]></description>
			<content:encoded><![CDATA[<p>I have Wordpress as my domain root and when I tried to nest a rails app as a subfolder things didn&#8217;t work out. Instead I created a subdomain (i.e. test.mydomain.com), then I symlinked the rails_apps/public to the subdomain.</p>
<p>At <a href="http://www.site5.com/in.php?id=43873" target="_blank">site5 </a>this boils down to the following steps:</p>
<ol>
<li>Sign in to your SiteAdmin url</li>
<li> Click Manage My Domains, Subdomains</li>
<li>Add the subdomain</li>
<li>ssh to your domain</li>
<li>cd ~</li>
<li>Create your rails app &gt; rails myapp</li>
<li>Delete the subdomain directory created by SiteAdmin
<ol>
<li>cd public_html</li>
<li>rm -r subdomain</li>
</ol>
</li>
<li>Create the symlink from your rail app/public to the subdomain
<ol>
<li>cd ~</li>
<li>ln -s ~/myapp/public/ ~/public_html/subdomain</li>
</ol>
</li>
<li>Open your browser to http://subdomain.mydomain.com
<ol>
<li>You should see the default index.html file for <a href="http://rubyonrails.org" target="_blank">Rails</a></li>
</ol>
</li>
</ol>
<p>References:</p>
<p><a href="http://www.hostingrails.com/forums/deployment_troubleshooting_thread/145" target="_blank">http://www.hostingrails.com/forums/deployment_troubleshooting_thread/145</a></p>
]]></content:encoded>
			<wfw:commentRss>http://it808.com/2007/10/simple-site5-rails-symlink-to-subdomain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello World</title>
		<link>http://it808.com/2007/10/hello-world/</link>
		<comments>http://it808.com/2007/10/hello-world/#comments</comments>
		<pubDate>Tue, 16 Oct 2007 09:44:45 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://it808.com/?p=3</guid>
		<description><![CDATA[I selected Site5 for my webhosting needs and so far it&#8217;s been okay. I had some trouble with their initial provisioning; it said I would be up in &#8220;minutes&#8221;, but it turned out to be 3 days. I opened 3 tickets and the response was fair (7 hours), but they were informative.
]]></description>
			<content:encoded><![CDATA[<p>I selected <a href="http://www.site5.com" target="_blank">Site5 </a>for my webhosting needs and so far it&#8217;s been okay. I had some trouble with their initial provisioning; it said I would be up in &#8220;minutes&#8221;, but it turned out to be 3 days. I opened 3 tickets and the response was fair (7 hours), but they were informative.</p>
]]></content:encoded>
			<wfw:commentRss>http://it808.com/2007/10/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
