FastCGI in Shared Hosting - What To Do?
Matthew Snyder
mcs532 at drexel.edu
Thu Sep 27 22:38:25 EDT 2007
Running 'ruby beta.rb' produces no output and goes straight back to a
prompt. Running 'ruby dispatch.fcgi' produces no output, and when I
hit enter, I'm returned to a prompt.
This is the only thing I get in my error logs:
[Thu Sep 27 21:35:48 2007] [warn] FastCGI: (dynamic) server "/home/
ardekant/public_html/beta/dispatch.fcgi" has failed to remain running
for 30 seconds given 3 attempts, its restart interval has been backed
off to 600 seconds
I can't switch what Apache is using in terms of modules. I can add
handlers for file extensions, and that's it.
By not using the rewrite engine, do you mean just remove my .htaccess
while I test? What would I put in as a web address if that were the
case? Right now http://beta.ardekantur.com points to that beta/
directory where the Camping app, .htaccess, and dispatch are.
Thanks for your help!
On Sep 27, 2007, at 7:19 PM, Jonas Pfenniger wrote:
> Hi Matthew,
>
> your setup looks fine but FastCGI is vicious, so don't abandon yet ! I
> loathe fastcgi but I hope that this e-mail will help you a little bit.
>
> Your ruby script looks fine but if you have an SSH access, you could
> try to run it by hand. The expected result, is no output at all. If it
> does, report back here. Terminate the app with Ctrl-C.
>
> The second thing is that we must make sure that apache is configured
> properly. You can find some inspiration here :
> http://wiki.rubyonrails.org/rails/pages/
> HowtoSetupApacheWithFastCGIAndRubyBindings
>> From the same page, it is said that it is better to use mod_fcgid
> instead of mod_fastcgi because it is outdated. It would also probably
> help if you could provide some apache error logs.
>
> Finally, the rewrite engine is vicious too, in it's own way. So it's
> probably better to deactivate it until the rest is working.
>
> --
> Cheers,
> zimbatm
> _______________________________________________
> Camping-list mailing list
> Camping-list at rubyforge.org
> http://rubyforge.org/mailman/listinfo/camping-list
More information about the Camping-list
mailing list