jason white
2011-Mar-21 13:43 UTC
production server on passenger - showing all items in public folder
I have an Ubuntu 10.10 server running Apache and Passenger on Linode. I am stumped on figuring out why all of the items in the public folder are being displayed instead of the site itself. the web site can be seen at http://turn2.co My virtual host file is configured like this: <VirtualHost *:80> ServerName turn2.co ServerAlias www.turn2.co DocumentRoot /var/www/public_html/turn2/public </VirtualHost> my apache config file looks like this: LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-3.0.5/ext/apache2/mod_passenger.so PassengerRoot /user/lib/ruby/gems/1.8/gems/passenger-3.0.5 PassengerRuby /usr/bin/ruby1.8 i''m sure i''m missing something minor, any help would be greatly appreciated Jason -- 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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Frederick Cheung
2011-Mar-21 15:08 UTC
Re: production server on passenger - showing all items in public folder
On Mar 21, 1:43 pm, jason white <jasonwhite...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > <VirtualHost *:80> > ServerName turn2.co > ServerAliaswww.turn2.co > > DocumentRoot /var/www/public_html/turn2/public > > </VirtualHost> > > my apache config file looks like this: > > LoadModule passenger_module > /usr/lib/ruby/gems/1.8/gems/passenger-3.0.5/ext/apache2/mod_passenger.so > PassengerRoot /user/lib/ruby/gems/1.8/gems/passenger-3.0.5 > PassengerRuby /usr/bin/ruby1.8 > > i''m sure i''m missing something minor, any help would be greatly appreciated >Is passenger actually loaded (perhaps take a look in the apache error logs) ? Is the LoadModule directive on two lines in your config file (or is that just a mail client or relay wrapping the text) ? Fred> Jason-- 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
jason white
2011-Mar-21 15:17 UTC
Re: Re: production server on passenger - showing all items in public folder
the load module is on one line i''m assuming that Passenger is loading, but not 100% sure how to check. How can I pull up the log files? thanks, Jason On Mon, Mar 21, 2011 at 10:08 AM, Frederick Cheung <frederick.cheung-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Mar 21, 1:43 pm, jason white <jasonwhite...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> <VirtualHost *:80> >> ServerName turn2.co >> ServerAliaswww.turn2.co >> >> DocumentRoot /var/www/public_html/turn2/public >> >> </VirtualHost> >> >> my apache config file looks like this: >> >> LoadModule passenger_module >> /usr/lib/ruby/gems/1.8/gems/passenger-3.0.5/ext/apache2/mod_passenger.so >> PassengerRoot /user/lib/ruby/gems/1.8/gems/passenger-3.0.5 >> PassengerRuby /usr/bin/ruby1.8 >> >> i''m sure i''m missing something minor, any help would be greatly appreciated >> > Is passenger actually loaded (perhaps take a look in the apache error > logs) ? Is the LoadModule directive on two lines in your config file > (or is that just a mail client or relay wrapping the text) ? > > Fred >> Jason > > -- > 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@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Frederick Cheung
2011-Mar-21 15:25 UTC
Re: production server on passenger - showing all items in public folder
On Mar 21, 3:17 pm, jason white <jasonwhite...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> the load module is on one line > > i''m assuming that Passenger is loading, but not 100% sure how to > check. How can I pull up the log files? >They''re probably in /var/log/httpd or somewhere similar Fred> thanks, > Jason > > On Mon, Mar 21, 2011 at 10:08 AM, Frederick Cheung > > > > <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > On Mar 21, 1:43 pm, jason white <jasonwhite...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > >> <VirtualHost *:80> > >> ServerName turn2.co > >> ServerAliaswww.turn2.co > > >> DocumentRoot /var/www/public_html/turn2/public > > >> </VirtualHost> > > >> my apache config file looks like this: > > >> LoadModule passenger_module > >> /usr/lib/ruby/gems/1.8/gems/passenger-3.0.5/ext/apache2/mod_passenger.so > >> PassengerRoot /user/lib/ruby/gems/1.8/gems/passenger-3.0.5 > >> PassengerRuby /usr/bin/ruby1.8 > > >> i''m sure i''m missing something minor, any help would be greatly appreciated > > > Is passenger actually loaded (perhaps take a look in the apache error > > logs) ? Is the LoadModule directive on two lines in your config file > > (or is that just a mail client or relay wrapping the text) ? > > > Fred > >> Jason > > > -- > > 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 this group athttp://groups.google.com/group/rubyonrails-talk?hl=en.-- 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Bill Walton
2011-Mar-21 15:26 UTC
Re: Re: production server on passenger - showing all items in public folder
Hi Jason, On Mon, Mar 21, 2011 at 10:17 AM, jason white <jasonwhitestl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> the load module is on one line > > i''m assuming that Passenger is loading, but not 100% sure how to > check. How can I pull up the log files?Easiest way to see if Passenger is running is ps -eaf You should see a couple of lines in the list like those below if it is. root 18386 3685 0 Mar20 ? 00:00:01 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/ext/apache2/ApplicationPoolServerExecutable 0 root 18387 18386 0 Mar20 ? 00:00:00 Passenger spawn server HTH, Bill -- 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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
jason white
2011-Mar-21 15:52 UTC
Re: Re: production server on passenger - showing all items in public folder
seems like my passenger install is broken. I tried reinstalling, but still have the following error in the error log [Mon Mar 21 11:48:56 2011] [error] *** Passenger could not be initialized because of this error: Unable to start the Phusion Passenger watchdog because its executable (/usr/lib/phusion-passenger/agents/PassengerWatchdog) does not exist. This probably means that your Phusion Passenger installation is broken or incomplete, or that your ''PassengerRoot'' directive is set to the wrong value. Please reinstall Phusion Passenger or fix your ''PassengerRoot'' directive, whichever is applicable. [Mon Mar 21 11:48:56 2011] [notice] Apache/2.2.16 (Ubuntu) Phusion_Passenger/3.0.5 configured -- resuming normal operations I''m wondering if I broke something when I was setting up the server Thanks, Jason On Mon, Mar 21, 2011 at 10:26 AM, Bill Walton <bwalton.im-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi Jason, > > On Mon, Mar 21, 2011 at 10:17 AM, jason white <jasonwhitestl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> the load module is on one line >> >> i''m assuming that Passenger is loading, but not 100% sure how to >> check. How can I pull up the log files? > > Easiest way to see if Passenger is running is ps -eaf > > You should see a couple of lines in the list like those below if it is. > > root 18386 3685 0 Mar20 ? 00:00:01 > /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/ext/apache2/ApplicationPoolServerExecutable > 0 > root 18387 18386 0 Mar20 ? 00:00:00 Passenger spawn server > > HTH, > Bill > > -- > 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@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Frederick Cheung
2011-Mar-21 16:00 UTC
Re: production server on passenger - showing all items in public folder
On Mar 21, 1:43 pm, jason white <jasonwhite...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> PassengerRoot /user/lib/ruby/gems/1.8/gems/passenger-3.0.5Is that really right (rather than /usr) ? Fred> PassengerRuby /usr/bin/ruby1.8 > > i''m sure i''m missing something minor, any help would be greatly appreciated > > Jason-- 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
jason white
2011-Mar-21 16:14 UTC
Re: Re: production server on passenger - showing all items in public folder
I fat fingered that when I was typing the configuration. I have made the change, and restarted apache, and still get the error. Thanks, Jason On Mon, Mar 21, 2011 at 11:00 AM, Frederick Cheung <frederick.cheung-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > On Mar 21, 1:43 pm, jason white <jasonwhite...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> PassengerRoot /user/lib/ruby/gems/1.8/gems/passenger-3.0.5 > > Is that really right (rather than /usr) ? > > Fred >> PassengerRuby /usr/bin/ruby1.8 >> >> i''m sure i''m missing something minor, any help would be greatly appreciated >> >> Jason > > -- > 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@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Frederick Cheung
2011-Mar-21 16:22 UTC
Re: production server on passenger - showing all items in public folder
On Mar 21, 3:52 pm, jason white <jasonwhite...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> seems like my passenger install is broken. I tried reinstalling, but > still have the following error in the error log > > [Mon Mar 21 11:48:56 2011] [error] *** Passenger could not be > initialized because of this error: Unable to start the Phusion > Passenger watchdog because its executable > (/usr/lib/phusion-passenger/agents/PassengerWatchdog) does not exist. >This line looks weird - normally those things will be in gems/gems/ passenger-3.0.x, not straight in /usr/lib Have you compared your passenger load directives with the output of passenger-install-apache2-module --snippet ? Fred> This probably means that your Phusion Passenger installation is broken > or incomplete, or that your ''PassengerRoot'' directive is set to the > wrong value. Please reinstall Phusion Passenger or fix your > ''PassengerRoot'' directive, whichever is applicable. > [Mon Mar 21 11:48:56 2011] [notice] Apache/2.2.16 (Ubuntu) > Phusion_Passenger/3.0.5 configured -- resuming normal operations > > I''m wondering if I broke something when I was setting up the server > > Thanks, > Jason > > > > On Mon, Mar 21, 2011 at 10:26 AM, Bill Walton <bwalton...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hi Jason, > > > On Mon, Mar 21, 2011 at 10:17 AM, jason white <jasonwhite...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> the load module is on one line > > >> i''m assuming that Passenger is loading, but not 100% sure how to > >> check. How can I pull up the log files? > > > Easiest way to see if Passenger is running is ps -eaf > > > You should see a couple of lines in the list like those below if it is. > > > root 18386 3685 0 Mar20 ? 00:00:01 > > /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/ext/apache2/ApplicationPoolServ erExecutable > > 0 > > root 18387 18386 0 Mar20 ? 00:00:00 Passenger spawn server > > > HTH, > > Bill > > > -- > > 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 this group athttp://groups.google.com/group/rubyonrails-talk?hl=en.-- 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.