Forum: Ruby on Rails Installing rails app on shared hosting

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ed7c0c555f2d41286d2a74eddde54816?d=identicon&s=25 Martin (Guest)
on 2007-01-23 20:38
(Received via mailing list)

I'm trying to install my rails app on a shared hosting webserver. I've
compiled my own ruby, then installed gem and the mysql, fcgi and rails
gems. The website is being served by apache and fcgi. When I try to
load my web page, I've got the following error :

Application error
Rails application failed to start properly

How do I know what's wrong ? Where are the logs ? (the .log files in
myapp/logs are empty).

Thanks for your help,
6372e690497a80453a1d3d120d8b8818?d=identicon&s=25 Jason Stewart (Guest)
on 2007-01-24 14:24
(Received via mailing list)
Hello Martin,

Perhaps the Apache logs can shed some light on the problem.

What does you .htaccess file look like? Do dispatch.rb and
dispatch.fcgi have the correct path to ruby on the first line? Are the
permissions correct for your RAILS_ROOT/log directory? Your log
directories are empty and this could indicate that the user that you're
running apache under does not have write access to your apps log


On Tue, 23 Jan 2007 02:41:59 -0000
B1cb30b86898d7f51fb1b56b1de332c1?d=identicon&s=25 Spyros Vasileiadis (kleas)
on 2007-01-25 12:38
(Received via mailing list)
checkout stuff on covers pretty much
everything about ror+apache + fcgi
I think it most likely has to do with folder permissions and or shebang
lines in files as dispatch*
look for those topics in the link above.

70225136eacd3d870f64e03bff678655?d=identicon&s=25 Russell Norris (Guest)
on 2007-01-26 15:57
(Received via mailing list)
I've found that if your app takes a while to crash/come back with an
and you can't see anything in the Rails' logs, the problem is [nearly
without fail] in environment.rb or boot.rb in the config directory. If
you've edited the files in Windows, do your self a favor and run
dos2unix on
the files. Seriously, just give it a try. If that doesn't solve things
can sometimes get a more detailed view of what's wrong by loading the
console [script/console] or booting up an instance of webrick
[script/server]. Those will crash to STDERR/STDOUT and you'll be able to
better what's going on.

If it's crashing almost immediately, then the problem should be in the
Also, don't forget to restart the dispatchers when you change your code.
That can cause some unnecessary heartache as well.

Good luck,


On 1/25/07, <
This topic is locked and can not be replied to.