AWebFactory
Fast Cgi On Site5FAQ

Disclaimer: I am no expert, I am simply trying to summarize my own “path of learning”, objectivized here for my own purposes, and also with the (secondary) earnest hope that it could be of value to somebody.

  1. Is Fast CGI enabled and configured correctly on my server?
    1. Is mod_fastcgi installed?
      From a post by orangekay in the Site5 Ruby Forum
      Check the SERVER_SOFTWARE environment variable in the headers from a request to something on your server. 
      This will work:
      
      curl -I http://www.yourdomain.com/index.html
      
      If you see "mod_fastcgi" anywhere in there, it's enabled.
      
    2. Are versions of rails and ruby clashing on your server (ask customer service if not sure); tell them:
      What version rails is installed? rails -v
      What version ruby is installed? ruby -v
      Check this especially if you get error messages like:
      ...dispatch.fcgi" has failed to remain running...
    3. My app’s production log doesn’t contain any errors; where can I find error messages?
      If you have access to /var/log/apache or similiar, check out the Apache server error log; or else in your CPanel (or similar) check out the error log. Copy the errors and act on them and/or send them off to hosting support!
  2. Help! My RoR app won’t run on Fast CGI
    Initial list of questions from Site5 support:
    • Are you seeing any error messages reported to the application log files or to the error log within your cPanel?
    • Have you checked to make sure that the files have the correct permissions ( 755 )?
    • Is it possible that any of these applications contain DOS lines or that the database.yml or environment.rb file isn’t properly configured?
    • Did you switch the apps to production before trying to view the apps in your browser in Fast CGI mode ?
  1. Is my app appropriate for Fast CGI?
    [tbd]
  2. Site5 Ruby Forum
    See important “sticky” posts there.
  3. HowToInstallOnSite5
    Site5 Ruby on Rails wiki reference.
  4. Check out the Fear of Fish Ruby on Rails Checklist
  5. make sure the shebang (top line) in both ./public/dispatch.fcgi AND ./public/dispatch.rb read as follows:
    #!/usr/bin/env ruby
    , using the environment variable to select the correct ruby binary.
  6. try
    rm -rf /tmp/ruby_sess.*.
    and call me in the morning.
Content Copyleft Victor Kane (ProjectMaster) and awebfactory.com.ar
Email me at info at awebfactory dot com dot ar
Full content (RSS 2.0) and Headlines (RSS 2.0)