Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7518015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:37:56+00:00 2026-05-30T01:37:56+00:00

I have a RoR web app that I’m trying to serve up with Passenger

  • 0

I have a RoR web app that I’m trying to serve up with Passenger on Apache. The weird thing is that I can access the web app if I use Passenger Standalone, but I can’t seem to access the web app using Apache with the Passenger module.

The passenger module appears to be running as evidenced by the fact that I can start Apache with no errors and that Passenger-status returns the following:

----------- General information -----------
max      = 6
count    = 0
active   = 0
inactive = 0
Waiting on global queue: 0

----------- Application groups ----------- 

When I try to access the web app I get a listing of the public folder directory.

Here is my virtual hosts file:

<VirtualHost *:80>
ServerAdmin smith@example.com

DocumentRoot /home/smith/www/dashboard/public
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>
<Directory /home/smith/www/dashboard/public>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

I have the following at the end of my apache2.conf file:

LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger 3.0.11/ext/apache2/mod_passenger.so
   PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11
   PassengerRuby /usr/bin/ruby1.8

I am pulling my hair out trying to figure this out. Would appreciate some help with this.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T01:37:58+00:00Added an answer on May 30, 2026 at 1:37 am

    After weeks of trial and error I have finally been able to fix this by RTFM. I am surprised that there were no responses to my question on Stackoverflow and I was not able to find any other articles elsewhere that helped with my question. This issue has to be affecting everyone who is deploying a RoR app using Capistrano on a Linux server running Apache2 and Passenger.

    I have Capistrano deploying the app to /home/smith/www/dashboard which creates a current folder which symlinks to releases/

    Passenger needs to find config/environment.rb to launch the Rails app. By default, Phusion Passenger assumes that the application’s root directory is the parent directory of the public directory.See: http://www.modrails.com/documentation/Users%20guide%20Apache.html#PassengerAppRoot

    The problem is that when using Capistrano, by default it deploys the app to

    /home/smith/www/dashboard/current/

    So by default Passenger reckons the path to be:

    /home/smith/www/dashboard/config/environment.rb

    Passenger provides the ability to set the PassengerAppRoot configuration option in Apache virtual host file like so:

    PassengerAppRoot /home/smith/www/dashboard/current

    This allows Passenger to find the config/environment.rb file correctly:

    PassengerAppRoot /home/scervera/www/dashboard/current/config/environment.rb

    Here is the rest of my virtual host file:

    <VirtualHost *:80>
        ServerName www.example.com        
        DocumentRoot /home/smith/www/dashboard/current/public
    
       <Directory /home/smith/www/dashboard/current/public>
            Options FollowSymLinks
        AllowOverride none
        Order allow,deny
        Allow from all
       </Directory>
    
        PassengerAppRoot /home/smith/www/dashboard/current
    
    </VirtualHost>
    

    There may be other ways to fix this, but I believe this is “by the book”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say I have a RoR app with 3 pages. The user can get
I have a list view in my RoR web app. The view is a
I have a situation where I'm trying to build a web app which takes
I have a web application that i have developed in RoR 2.1 . In
I'm new to RoR and I'm trying to create a web application that acts
I have two applications: c++ service and a RoR web server (they are both
I have a RoR application (ruby v1.8.7; rails v2.3.5) that is caching a page
I have recently moved my RoR app on the Heroku platform, and almost everything
I am trying to introduce RoR to my company and I have two ways
I have taken over a medium sized project that was written originally using RoR.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.