Trouble with Rails on a shared host : error 400 dispatch.cgi

Hi,

I’m trying to install my rails app on a shared host. I’ve successfully
installed my own Ruby, RubyGems and the follwoing gems : mysql, rails.
My host won’t let me install fcgi, but I can use cgi.

The application works with webrick but not with Apache + cgi. I’ve got
the Error 500 document if I point to mydomain.com, and if I launch
“dispatch.cgi” from the command line, I’ve got the following error :
Status: 400 Bad Request

What’s wrong ? The log/*.log files are empty, is there somehere else I
should look for a more detailed error description ?

Thanks for your help,
Martin.

On Jan 23, 2007, at 1:19 PM, Martin wrote:

I’m trying to install my rails app on a shared host. I’ve successfully
installed my own Ruby, RubyGems and the follwoing gems : mysql, rails.
My host won’t let me install fcgi, but I can use cgi.

The application works with webrick but not with Apache + cgi. I’ve got
the Error 500 document if I point to mydomain.com

Is the shebang correct? What does the Apache error log say?

– fxn

Better than FCGI: use mongrel and dispatch.rb.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs