[Rails] Re: Rails on mod_ruby

Eric Anderson eric at afaik.us
Thu Dec 9 23:10:27 GMT 2004


I took the previous advice given and am now running in CGI environment. 
I figured I would start with the simplest and work my way up. So now I 
have it run the cgi script and I get the following in my error_log:

[Thu Dec 09 18:02:18 2004] [error] [client 64.30.162.221] (2)No such 
file or directory: exec of 
'/virtual/1/web/account.realsimplehosting.com/www/dispatch.cgi' failed
[Thu Dec 09 18:02:18 2004] [error] [client 64.30.162.221] 
/usr/lib/ruby/1.8/singleton.rb:84: warning: already initialized constant 
FirstInstanceCall
[Thu Dec 09 18:02:18 2004] [error] [client 64.30.162.221] 
/usr/lib/ruby/1.8/singleton.rb:84: warning: already initialized constant 
FirstInstanceCall
[Thu Dec 09 18:02:18 2004] [error] [client 64.30.162.221] 
/usr/lib/ruby/1.8/singleton.rb:84: warning: already initialized constant 
FirstInstanceCall
[Thu Dec 09 18:02:18 2004] [error] [client 64.30.162.221] Premature end 
of script headers: dispatch.cgi

It is obviously executing the script but is getting some warnings still 
in the singleton class. They are only warning thought so they shouldn't 
be stopping anything. But at the end the script exits without outputting 
anything.

My hello world Rails app consists of a file called 
/app/controllers/user_controller.rb. This file contains the following:

require 'abstract_application'
class UserController < AbstractApplicationController
def index
	render_text 'hello world'
end
end

I am then calling the URL http://account.realsimplehosting.com/user/index

This produces the error message at the top of this message. So my 
question is what am I missing this time? The only thing odd about my 
setup is I have a symlink called www that points to public because I 
have my webserver setup to look for content in the www directory. But I 
don't believe this should cause any problems.

Eric

Eric
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: OpenPGP digital signature
Url : http://one.textdrive.com/pipermail/rails/attachments/20041209/b353b7bf/signature.bin


More information about the Rails mailing list