ruby on rails

2 views
Skip to first unread message

Lluis Gili

unread,
May 9, 2007, 9:22:56 AM5/9/07
to linux-...@googlegroups.com
Hola,
estic intentant configurar una aplicacio ruby on rails perque corri sobre un
apache2 i no hi ha manera, a veure si algu em pot fer una mica de llum:

----------------------------
SO: fedora core 4
ruby: ruby 1.8.5 (2006-12-04 patchlevel 2) [i686-linux] (compilat del codi
font)
rails: Rails 1.2.3 (instalat amb gem)
gem: 0.9.2 (compilat del codi font)
apache: Apache/2.0.54 (yum)
mod_fcgid: ultima versio del cvs
fcgi: 0.8.7 (instalat amb gem)
----------------------------

al fer "ruby dispatch.fcgi" em surt aixo al fastcgi.crash.log:

--------------------------
[09/May/2007:15:04:42 :: 19679] starting
[09/May/2007:15:04:42 :: 19679] Dispatcher failed to catch: You have a nil
object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.split (NoMethodError)
/usr/local/lib/ruby/1.8/cgi.rb:897:in `parse'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/cgi_ext/raw_post_data_fix.rb:45:in
`initialize_query'
/usr/local/lib/ruby/1.8/cgi.rb:2274:in `initialize'
/usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:606:in `new'
/usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:606:in `each_cgi'
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:141:in
`process_each_request!'
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:55:in
`process!'
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:25:in
`process!'
dispatch.fcgi:27
almost killed by this error
[09/May/2007:15:04:42 :: 19679] Dispatcher failed to catch: You have a nil
object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.split (NoMethodError)
/usr/local/lib/ruby/1.8/cgi.rb:897:in `parse'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/cgi_ext/raw_post_data_fix.rb:45:in
`initialize_query'
/usr/local/lib/ruby/1.8/cgi.rb:2274:in `initialize'
/usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:606:in `new'
/usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:606:in `each_cgi'
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:141:in
`process_each_request!'
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:55:in
`process!'
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:25:in
`process!'
dispatch.fcgi:27
killed by this error
--------------------------

el dispatch.fcgi:

--------------------------
#!/usr/local/bin/ruby
require File.dirname(__FILE__) + "/../config/environment"
require 'fcgi_handler'
RailsFCGIHandler.process!
--------------------------

i el .htaccess:

--------------------------
AddHandler fcgid-script .fcgi
AddHandler cgi-script .cgi
Options +FollowSymLinks +ExecCGI
RewriteEngine On
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
ErrorDocument 500 "<h2>Application error</h2>Rails application failed to start
properly"
--------------------------

alguna idea?

Reply all
Reply to author
Forward
0 new messages