« Return to Thread: Ruby on Fastcgi (Apache)

Re: Ruby on Fastcgi (Apache)

by Snoop1990 Snoop1990 :: Rate this Message:

Reply to Author | View in Thread

Ok I found out I have to use /public_html/cgi-bin/

I tried an easy ruby script (called script1.rb)

#!/usr/bin/ruby
puts 'Hello World!'

and get:
"Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.

Please contact the server administrator, xxxx@... and inform
them of the time the error occurred, and anything you might have done
that may have caused the error.

More information about this error may be available in the server error
log.

Additionally, a 404 Not Found error was encountered while trying to use
an ErrorDocument to handle the request.
Apache/1.3.37 Server at xxxxxxxx.net Port 80"  (I killed the changed the
names!)



I also tried the application I had compile on freebsd
I opened : http://xxxxxxxx.net/cgi-bin/<Application
name>/public/dispatch.cgi

and get : "Application error
Rails application failed to start properly""



I also tried http://xxxxxxxx.net/cgi-bin/<Application
name>/public/dispatch.fcgi

But there was no out put, just a clear page.



So the directory /public_html/cgi-bin is executable, but  I do not know
how to use it. My application is a folder with some subfolders (an
standard rails application). Is it possible to execute these
applications with FastCgi ?


--
Posted via http://www.ruby-forum.com/.

 « Return to Thread: Ruby on Fastcgi (Apache)