crayfellow
2009-Mar-31 23:30 UTC
Hello World works on Mongrel but not in Passenger (Error 500), and nothing in the logs?
I''m sure this is something common I''m missing. I have installed Rails on Ubuntu using the helpful information at http://guides.rubyonrails.org/getting_started.html and https://help.ubuntu.com/community/RubyOnRails I''m just trying to get Hello World working before moving on to other things. I have deleted the public/index.html (which displays fine with Apache) and done the following: script/generate controller home index edit config/routes.rb and add the line map.root :controller => "home" above the default routes Pretty simple.... so I got the Passenger error at first because root owned config/environment.rb so it is now owned by www-data. Now, I get Error 500 no matter what I do. Fire up Mongrel and go to http://blah.mydomain.com:3000/ and it works perfectly. Go to http://blah.mydomain.com/ and, Error 500 "We''re sorry, but something went wrong." I hope this is something simple with the Apache config I''m simply missing. I presume since the error shows up at all that my Passenger config is at least correct in part. Anyone? Thanks, -Patrick --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
zeuscm
2009-Apr-01 10:25 UTC
Re: Hello World works on Mongrel but not in Passenger (Error 500), and nothing in the logs?
I was suffering the same thing so: I did this: first in httpd.conf file, after: LoadModule passenger_module /opt/ruby-enterprise/lib/ruby/gems/ 1.8/gems/passenger-2.1.2/ext/apache2/mod_passenger.so PassengerRoot /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/ passenger-2.1.2 PassengerRuby /opt/ruby-enterprise/bin/ruby RailsSpawnMethod conservative #This I wrote it, just because the user guide says that is necesary to do it, when works well in mongrel not in Passenger. Next inside apache2/conf/extra/httpd_vhosts.conf <VirtualHost *:80> ServerName www.sitename.com.mx #Domain name to public DocumentRoot "/usr/local/apache2/htdocs/sitename/public" #the place where where app is in filesystem --erase this comment because apache give an error. RailsEnv development #Say to pasenger that our app is in development. </VirtualHost> It could be necesary check the path to ruby binary files ... I hope this help. On 31 mar, 17:30, crayfellow <patr...-dkBZp3jQrD5BDgjK7y7TUQ@public.gmane.org> wrote:> I''m sure this is something common I''m missing. > > I have installed Rails on Ubuntu using the helpful information athttp://guides.rubyonrails.org/getting_started.htmlandhttps://help.ubuntu.com/community/RubyOnRails > > I''m just trying to get Hello World working before moving on to other > things. I have deleted the public/index.html (which displays fine with > Apache) and done the following: > script/generate controller home index > edit config/routes.rb and add the line map.root :controller => "home" > above the default routes > > Pretty simple.... so I got the Passenger error at first because root > owned config/environment.rb so it is now owned by www-data. > > Now, I get Error 500 no matter what I do. > > Fire up Mongrel and go tohttp://blah.mydomain.com:3000/and it works > perfectly. Go tohttp://blah.mydomain.com/and, Error 500 "We''re > sorry, but something went wrong." > > I hope this is something simple with the Apache config I''m simply > missing. I presume since the error shows up at all that my Passenger > config is at least correct in part. > > Anyone? > Thanks, > -Patrick--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Tony De
2009-Oct-12 22:17 UTC
Re: Hello World works on Mongrel but not in Passenger (Error 500), and nothing in the logs?
I''ve been trying to figure out this problem for a while and stumbled onto this forum entry. RailsEnv worked for me. Linux t-desktop 2.6.28-15-generic #52-Ubuntu SMP Wed Sep 9 10:48:52 UTC 2009 x86_64 GNU/Linux Thanks!! -- Posted via http://www.ruby-forum.com/.
Leon V.
2012-Aug-15 01:25 UTC
Re: Hello World works on Mongrel but not in Passenger (Error 500), and nothing in the logs?
Just have to say thank you for this post. I have Ubuntu 12.04 LTS and have been trying to learn ruby on rails and this has been something I am stuck on now for 2 days. :) RAILS_ENV helped, but did not solve it for me yet. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Colin Law
2012-Aug-15 06:25 UTC
Re: Re: Hello World works on Mongrel but not in Passenger (Error 500), and nothing in the logs?
On 15 August 2012 02:25, Leon V. <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Just have to say thank you for this post. > I have Ubuntu 12.04 LTS and have been trying to learn ruby on rails and > this has been something I am stuck on now for 2 days. :) RAILS_ENV > helped, but did not solve it for me yet.It is no good replying to a three year old thread saying that you have the problem too. Start a new thread and describe the problem you are seeing. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.