Welcome Guest | Login

New application doesn't work with fcgi, error in the apache log but nothing in my log directory

I followed the instructions for setting up fcgi, including creating a skeleton app and uploading just the contents of my app. The first pages renders fine if I run 'ruby dispatcher.fcgi' in the public directory, but hitting the site with a browser just generates this in the apache log:

[Fri Feb 22 19:21:26 2008] [notice] mod_fcgid: process /home/customa/public_html/dispatch.fcgi(7920) exit(communication error), terminated by calling exit(), return code: 1

followed by

[Fri Feb 22 19:27:43 2008] [notice] mod_fcgid: server /home/customa/public_html/dispatch.fcgi(8366) started

but nothing is logged in the log directory.  I'm kindof a rails noob, and can't find anything that seems to be related in the forums.

2008-02-22 07:38 PM

Hi there -

Could you ensure that all the directories under your Rails app has 755 permissions ?

Also you should have /usr/local/bin/ruby as shebang line for the dispatch.fcgi file.

2008-02-22 08:30 PM

The shebang did the trick! I used the default rails command to generate the app... did I overlook a step in the instructions?

Thanks for your help.

2008-02-22 09:41 PM

As per the tutorial you need to make sure that the shebang line is correct if you're not generating your rails app on the server. You can follow the tutorial below to correct the shebang line.

http://www.hostingrails.com/forums/wiki_thread/9

2008-02-22 10:50 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.