Forum: Ruby on Rails Premature end of script headers

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Gogi G. (Guest)
on 2006-04-14 19:34
Hi.

We install ruby, rail, rubygems, rails, mod_fastcgi and fastCGI nad we
get from this URL http://bobcares.com/article38.html ans everything
install with no errors, but when we try to run "test" we get this:

Error from apache error_log:

Premature end of script headers:
/home/user/public_html/rails/dispatch.cgi
/usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:46:in `require': no such
file to load -- rubygems/rubygems_version.rb (LoadError)
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:46
        from ./../config/boot.rb:18
        from ./../config/environment.rb:11
        from dispatch.cgi:3
[Fri Apr 14 17:27:40 2006] [error] Premature end of script headers:
/home/user/public_html/rails/dispatch.cgi

-----------------------------------------
dispatch.cgi
----------------
#!/usr/local/bin/ruby

require File.dirname(__FILE__) + "/../config/environment" unless
defined?(RAILS_ROOT)

require "dispatcher"

ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if
File.directory?(dir) } if defined?(Apache::RubyRun)
Dispatcher.dispatch

-----------------------------------------
.htaccess
------------
Options +FollowSymLinks +ExecCGI

*********************************

We dont know what is wrong. Anyone got idea or any fix for that ?

Thank you.

dbMG
This topic is locked and can not be replied to.