My dispatch.fcgi

09 Apr 2006

Okay, it should be made clear that Rails couldn’t run on Dreamhost until I set the permissions on dispatch.fcgi (in the ‘public’ directory) to 755. Here’s the content of my dispatch.fcgi file:

#!/usr/bin/env ruby

require File.dirname(FILE) + “/../config/environment”
require ‘fcgi_handler’

RailsFCGIHandler.process! nil, 10


  • Marc said: Cool I haven't tried out Rails yet on DreamHost but I'd really like to. I have been very happy with shared hosting that I have from DreamHost. I have: Debian Linux 20 GB of disk space 1 terabyte of bandwidth Unlimited domains 675 email addresses PHP, Perl, MySQL, Jabber, WebDAV, Subversion, Ruby on Rails, WordPress, Gallery, phpBB, etc. and the customer support is fantastic. The turnaround has been very fast and they have helped me even when I f**ked things up myself. For example, they restored a bunch of files that I had nuked on my WebDAV share and they had it done in around 2 hours and that was on a weekend! and it's only $7.95/month though I don't really pay anything because I make $97 off of referrals so it pays for itself and gives me a bit of extra income. I have been very, very pleased with them.
  • manish said: what ever changes u have told above i have done but still i m facing the same problem. My hosting is also with DreamHost. They said there is problem with dispatch.fcgi but i think it is coming from .htaccess file. Should i have to made any changes in .htaccess fiel also.

Please if you found this post helpful or have questions.