<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Mac OS X, Ruby, CGI without Rails</title>
	<atom:link href="http://agilo.us/2007/04/25/mac-os-x-ruby-cgi-without-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://agilo.us/2007/04/25/mac-os-x-ruby-cgi-without-rails/</link>
	<description>Trying to remain agile in a BIG design world.</description>
	<lastBuildDate>Sun, 19 Feb 2012 19:12:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Guerino</title>
		<link>http://agilo.us/2007/04/25/mac-os-x-ruby-cgi-without-rails/comment-page-1/#comment-67</link>
		<dc:creator>Guerino</dc:creator>
		<pubDate>Sun, 19 Feb 2012 19:12:00 +0000</pubDate>
		<guid isPermaLink="false">http://agilo.us/?p=6#comment-67</guid>
		<description>Hi Bill,

Thanks for the reply.  I actually got it to work (at least partially).

I&#039;m working on a Mac and I noticed that if I install the program in the http://localhost area, it works fine.  However, if I install it in the http://localhost/~guerino1 area, it doesn&#039;t run.

I&#039;m now trying to understand what needs to be changed/configured to allow Apache to execute scripts out of my personal working area.

My Best,

Frank</description>
		<content:encoded><![CDATA[<p>Hi Bill,</p>
<p>Thanks for the reply.  I actually got it to work (at least partially).</p>
<p>I&#8217;m working on a Mac and I noticed that if I install the program in the <a href="http://localhost" rel="nofollow">http://localhost</a> area, it works fine.  However, if I install it in the <a href="http://localhost/~guerino1" rel="nofollow">http://localhost/~guerino1</a> area, it doesn&#8217;t run.</p>
<p>I&#8217;m now trying to understand what needs to be changed/configured to allow Apache to execute scripts out of my personal working area.</p>
<p>My Best,</p>
<p>Frank</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Barnett</title>
		<link>http://agilo.us/2007/04/25/mac-os-x-ruby-cgi-without-rails/comment-page-1/#comment-66</link>
		<dc:creator>Bill Barnett</dc:creator>
		<pubDate>Sun, 19 Feb 2012 16:21:00 +0000</pubDate>
		<guid isPermaLink="false">http://agilo.us/?p=6#comment-66</guid>
		<description>Can you post the relevant parts of /var/log/httpd/error_log?</description>
		<content:encoded><![CDATA[<p>Can you post the relevant parts of /var/log/httpd/error_log?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guerino</title>
		<link>http://agilo.us/2007/04/25/mac-os-x-ruby-cgi-without-rails/comment-page-1/#comment-65</link>
		<dc:creator>Guerino</dc:creator>
		<pubDate>Sun, 19 Feb 2012 04:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://agilo.us/?p=6#comment-65</guid>
		<description>Hi,

I&#039;m completely new to all of this and I apologize if my questions seem ignorant.  I tried to create a simple index.html file with a form in my &quot;/Users/guerino1/Sites&quot; directory.  The index.html file body has the simple code...

    This is my header
    
      Username: 
      
    


In the directory &quot;/Users/guerino1/Sites/cgi-bin&quot; I added the &quot;form_handler.rb&quot; file that is in this blog&#039;s example.
I also added the file &quot;.htaccess&quot; in the &quot;/Users/guerino1/Sites&quot; directory, with the line&quot;Options ExecCGI&quot;.

When I run the example, I get an error that states: &quot;You don&#039;t have permission to access /~guerino1/cgi-bin/form_handler.rb
on this server.&quot;

The URL reads: &quot;http://127.0.0.1/~guerino1/cgi-bin/form_handler.rb?user=myName&quot;


Does anyone have any idea as to how I can fix this?

Thanks,

Frank</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;m completely new to all of this and I apologize if my questions seem ignorant.  I tried to create a simple index.html file with a form in my &#8220;/Users/guerino1/Sites&#8221; directory.  The index.html file body has the simple code&#8230;</p>
<p>    This is my header</p>
<p>      Username: </p>
<p>In the directory &#8220;/Users/guerino1/Sites/cgi-bin&#8221; I added the &#8220;form_handler.rb&#8221; file that is in this blog&#8217;s example.<br />
I also added the file &#8220;.htaccess&#8221; in the &#8220;/Users/guerino1/Sites&#8221; directory, with the line&#8221;Options ExecCGI&#8221;.</p>
<p>When I run the example, I get an error that states: &#8220;You don&#8217;t have permission to access /~guerino1/cgi-bin/form_handler.rb<br />
on this server.&#8221;</p>
<p>The URL reads: &#8220;http://127.0.0.1/~guerino1/cgi-bin/form_handler.rb?user=myName&#8221;</p>
<p>Does anyone have any idea as to how I can fix this?</p>
<p>Thanks,</p>
<p>Frank</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://agilo.us/2007/04/25/mac-os-x-ruby-cgi-without-rails/comment-page-1/#comment-64</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Sat, 17 Dec 2011 17:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://agilo.us/?p=6#comment-64</guid>
		<description>Bill, thanks for replying. After spending a few hours trying various methods, I ended up installing rvm (and reading up on the Apache config files multiple times) and was able to get it working that way. The only modification to the above file that I had made when it was broken was the require &#039;sqlite3&#039; line. </description>
		<content:encoded><![CDATA[<p>Bill, thanks for replying. After spending a few hours trying various methods, I ended up installing rvm (and reading up on the Apache config files multiple times) and was able to get it working that way. The only modification to the above file that I had made when it was broken was the require &#8216;sqlite3&#8242; line. </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Barnett</title>
		<link>http://agilo.us/2007/04/25/mac-os-x-ruby-cgi-without-rails/comment-page-1/#comment-63</link>
		<dc:creator>Bill Barnett</dc:creator>
		<pubDate>Sat, 17 Dec 2011 16:24:00 +0000</pubDate>
		<guid isPermaLink="false">http://agilo.us/?p=6#comment-63</guid>
		<description>I assume that you have the sqlite3 gem installed since your script runs as expected via the command line. Is it installed globally (so that the user which runs your HTTP server can access it) or locally? That&#039;s my primary suspicion. Also, what is your HTTP server log telling you?

Have you seen gist.github.com? Could you paste your code there and share it here? Also, it would be helpful if you could paste any relevant log out into another file using the &quot;Add another file...&quot; link on the gist page.

Good luck.</description>
		<content:encoded><![CDATA[<p>I assume that you have the sqlite3 gem installed since your script runs as expected via the command line. Is it installed globally (so that the user which runs your HTTP server can access it) or locally? That&#8217;s my primary suspicion. Also, what is your HTTP server log telling you?</p>
<p>Have you seen gist.github.com? Could you paste your code there and share it here? Also, it would be helpful if you could paste any relevant log out into another file using the &#8220;Add another file&#8230;&#8221; link on the gist page.</p>
<p>Good luck.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://agilo.us/2007/04/25/mac-os-x-ruby-cgi-without-rails/comment-page-1/#comment-62</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Fri, 16 Dec 2011 23:05:00 +0000</pubDate>
		<guid isPermaLink="false">http://agilo.us/?p=6#comment-62</guid>
		<description>I just stumbled upon this blog and was able to replicate your example. However, I have been unsuccessful trying to communicate with SQLite3 with Ruby. It seems to fail at the &#039;require &quot;sqlite3&quot;&#039; line, though I can execute this on my computer from the command line without any problems. I have also tried directly in the HTML with eruby, but that also failed. Have any advice?</description>
		<content:encoded><![CDATA[<p>I just stumbled upon this blog and was able to replicate your example. However, I have been unsuccessful trying to communicate with SQLite3 with Ruby. It seems to fail at the &#8216;require &#8220;sqlite3&#8243;&#8216; line, though I can execute this on my computer from the command line without any problems. I have also tried directly in the HTML with eruby, but that also failed. Have any advice?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ajay</title>
		<link>http://agilo.us/2007/04/25/mac-os-x-ruby-cgi-without-rails/comment-page-1/#comment-44</link>
		<dc:creator>Ajay</dc:creator>
		<pubDate>Mon, 19 Jan 2009 21:17:16 +0000</pubDate>
		<guid isPermaLink="false">http://agilo.us/?p=6#comment-44</guid>
		<description>On Panther, I also had to modify the following line in /etc/httpd/users/my_user.conf:

AllowOverride None
was changed to 
AllowOverride Options</description>
		<content:encoded><![CDATA[<p>On Panther, I also had to modify the following line in /etc/httpd/users/my_user.conf:</p>
<p>AllowOverride None<br />
was changed to<br />
AllowOverride Options</p>
]]></content:encoded>
	</item>
</channel>
</rss>

