Rails, Phusion Passenger, Apache httpd Permission Denied error - Resolved one way.

Posted by Rajesh Shetty on February 25, 2009

This blog post is long due. Once again its a quick tip which can save lot of developers time in setting up rails with phusion passenger when they run into permission denied error.

After installing Passenger Phusion on a existing Apache HTTP web server when I started the Apache server and try to launch the app in browser I was getting following error.

[client ::1] (13)Permission denied: access to /favicon.ico denied, referer: http://localhost/

[client ::1] (13)Permission denied: access to / denied


After fixing obvious issues around permission like below, still no luck.
  • chmod on rails directory , so that Apache/Phusion would have all the permission to access the rails directory
  • Adjusting VirtualHost directory permission in Apache config (httpd.conf) file to allow all which would look something like this

<VirtualHost *:80>
ServerName localhost
DocumentRoot  <rails app directory>
<Directory  <rails app directory> >
Allow from all
</Directory>
RailsEnv development
RailsDefaultUser root
</VirtualHost>

As I was going thru httpd.conf in detail, I noticed that Apache kicking off the process under user  ”Daemon” every time I started the web server. This surely sounded like a issue to me and can lead to permission problems. So it was just a matter of changing this user to the my default user and bounce the server. This finally fixed it.
Look for following in your httpd.conf

User daemon


change this to

User <default machine user>


Here is one reference which talks about solution similar to what I explained above.

Following are some references for installing phusion passenger

Blogged with MessageDance using Gmail | Reply On Twitter

Amazon Kindle 2 Has Arrived - Is new kindle a podcast device too ?

Posted by Rajesh Shetty on February 11, 2009

Saw this email from Amazon and looks like they are coming up with features that do matter. Although I’m not a book reader, but I like the words of “Text to Speech”. Kindle is turning into a podcast device also.
More possibilities for college/universities. Lets hope Kindle becomes iPod for books.

Dear Customers,

I am proud to introduce
Kindle 2—the next generation of our wireless reading device.

Since launching the original Kindle a little over a year ago, the customer response has far surpassed our highest hopes—and were grateful and appreciative for that. More people are reading more books, periodicals, and blogs on Kindle sooner than we ever imagined. We kept everything readers love about the original Kindle—the convenience of reading what you want, when you want it, the immediacy of getting book wirelessly delivered in less than 60 seconds, and Kindles ability to disappear in your hands so you can get lost in the authors words.

Improved battery life means you can read up to four days on a single charge. Its new, streamlined design makes Kindle 2 as thin as a typical magazine and lighter than a paperback. We added more storage, allowing you to carry over 1,500 titles. An advanced display provides even crisper images and clear text for an improved book-like reading experience.
Our new new Text-to-Speech feature means Kindle can read every book, blog, magazine, and newspaper out loud to you.

At Amazon, weve always been obsessed with selection, and we know that even the best reading device would be useless without the books you want to read. Today, the Kindle Store has more than 230,000 books, including 103 of the 110 New York Times Best Sellers, plus top newspapers, magazines, and blogs. We added over 40,000 new titles in just the last three months. Our vision for Kindle is to have every book ever printed, in any language, all available in under 60 seconds.


We hope you enjoy
Kindle 2.


Jeff
Jeff Bezos
Founder, Amazon.com

Blogged with MessageDance using Gmail | Reply On Twitter