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

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

On Mar 21, 1:43pm, jason white [email protected] wrote:

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

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 C.

Hi Jason,

On Mon, Mar 21, 2011 at 10:17 AM, jason white [email protected]
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

On Mar 21, 1:43pm, jason white [email protected] wrote:

PassengerRoot /user/lib/ruby/gems/1.8/gems/passenger-3.0.5

Is that really right (rather than /usr) ?

Fred

On Mar 21, 3:17pm, jason white [email protected] 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

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 C.

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 Mar 21, 3:52pm, jason white [email protected] 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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs