Topic: Phusion Passenger3.0.11 with Rails3.1 on Ubuntu11

Hi all,

I am using passenger to serve a rails 3.1 app with Apache2.

Usually, I have no problems but for some reason I am unable to load the rails application this time.

Everything installs correctly.
I then add the following to the bottom of the apache.conf file:

LoadModule passenger_module /usr/local/rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.11/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.11
PassengerRuby /usr/local/rvm/wrappers/ruby-1.9.3-p0/ruby


And I create the virtual host and load it (a2ensite) with the correct directives, like:


<VirtualHost *:80>
      ServerName SERVERNAME
      DocumentRoot /root/www/sound/public
      <Directory /root/www/sound/public>
         AllowOverride all
         Options -MultiViews
      </Directory>
</VirtualHost>

I have let apache2 own the entire application folder using: sudo chmod -R www-data:www-data sound
And set permissions to 755 using: sudo chmod -R 755 sound

But when I restart apache2 I get the stupid

Re: Phusion Passenger3.0.11 with Rails3.1 on Ubuntu11

You might need sudo privileges to run on port 80. Or it looks like your running the server through root, which is a bad idea.

Re: Phusion Passenger3.0.11 with Rails3.1 on Ubuntu11

johnmcauley wrote:

But when I restart apache2 I get the stupid

It looks like your original post got cut off. What was the error message?