I'm at the end of ability, so time to ask for help. My hosting company are moving me to a new server. I've got my own VPS. It's a fresh CentOS 5 install with Plesk 9.5.2

Essentially Passenger just doesnt seem to be booting the Rails app. It's like it doesnt see it's a Rails app to be booted.

I've got Rails 3.0 install with Ruby 1.9.2 built from source. I can run Bundle Install and that works.

I've currently got Passenger 3 RC1 installed as per here, but have tried v2 as well.

My conf/vhost.conf file looks like this:

DocumentRoot /var/www/vhosts/foosite.com.au/httpdocs/public/
RackEnv development
#Options Indexes

I've got a /etc/httpd/conf.d/passenger.conf file which looks like this:

LoadModule passenger_module /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.0.pre4/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.0.pre4
PassengerRuby /usr/local/bin/ruby
PassengerLogLevel 2

and all I get is a 403 forbidden or the directory listing if I enable Indexes.

I dont know what else to do! Yikes. There's nothing in the Apache error log that I can see. The new server admin isnt much help as I think he's a bit junior and says he doesnt know about Rails... sigh :/

I'm a programmer and server admin isnt my bag :(

link|improve this question
feedback

2 Answers

I'm 99% sure this is a classic Apache permission problem. Put 'Allow from all' in your config (lookup docs about it if you don't know what it does).

link|improve this answer
Thanks - well, it 'magically' started working. My admin says they didnt do anything, but who knows... :) – firecall Oct 19 '10 at 21:37
feedback

The Apache permission problem is the right diagnostic. Don't forget to look at your 'public/.htaccess' file. You really don't need this file if you're using Passengger for serving rails.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.