# Problem with deployment of rails application using passenger and apache (Very Important)

**URL:** <https://www.ruby-forum.com/t/problem-with-deployment-of-rails-application-using-passenger-and-apache-very-important/177447>\
**Category:** Rails\
**Created:** [October 17, 2009, 12:13pm UTC](https://www.ruby-forum.com/t/problem-with-deployment-of-rails-application-using-passenger-and-apache-very-important/177447 "2009-10-17T12:13:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sulabhjain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/258eb7/32.png) [@sulabhjain](https://www.ruby-forum.com/u/sulabhjain)\
**Post date:** [October 17, 2009, 12:13pm UTC](https://www.ruby-forum.com/t/problem-with-deployment-of-rails-application-using-passenger-and-apache-very-important/177447/1 "2009-10-17T12:13:37Z")

</div>

Hello All,

I have been facing a weird problem since long and sometimes the things  
worked for me on one or the other server.

Again, I have build a new server and facing same problem. Could anyone  
help me in finding the cause??

I have passenger modules loaded inside apache conf file and  
DocumentRoot set to point to public directory. This Document Root  
works for static pages.

When I am going to browser and hitting the [mydomain.com](http://mydomain.com) , I get the  
directory listing of public directory (similar to what we get using  
FTP links). I have been able to setup rails previously multiple times  
using mongrel but don’t know why this problem is coming.

This problem came before also when I tried setting up the apache conf  
pointing to /var/www/html and had stored a symbolic link of public  
directory inside /var/www/html. At that point also it used to display  
the directory structure instead of the web page.

The problem to me seems to be something that the rails application is  
not able to execute and display the web page. But exactly I don’t know  
the reason. I am not so much familiar with the apache configuration.

Thanks,

-S

---

<div class="post-metadata">

**Author:** ![sulabhjain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/258eb7/32.png) [@sulabhjain](https://www.ruby-forum.com/u/sulabhjain)\
**Post date:** [October 18, 2009, 10:35pm UTC](https://www.ruby-forum.com/t/problem-with-deployment-of-rails-application-using-passenger-and-apache-very-important/177447/2 "2009-10-18T22:35:38Z")

</div>

On Fri, Oct 16, 2009 at 10:00 PM, Sulabh J. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> DocumentRoot set to point to public directory.  
> Have you also set the

PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.x.x  
PassengerRuby /usr/bin/ruby

## sentences on Apachce conf?

Leonardo M…  
There’s no place like ~

---

<div class="post-metadata">

**Author:** ![sulabhjain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/258eb7/32.png) [@sulabhjain](https://www.ruby-forum.com/u/sulabhjain)\
**Post date:** [October 19, 2009, 5:42pm UTC](https://www.ruby-forum.com/t/problem-with-deployment-of-rails-application-using-passenger-and-apache-very-important/177447/3 "2009-10-19T17:42:21Z")

</div>

Yes I have set the two appropriate configuration lines in apache. I  
was wondering if I need to enable any specific apache module for this.

---

<div class="post-metadata">

**Author:** ![sulabhjain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/258eb7/32.png) [@sulabhjain](https://www.ruby-forum.com/u/sulabhjain)\
**Post date:** [November 4, 2009, 5:18pm UTC](https://www.ruby-forum.com/t/problem-with-deployment-of-rails-application-using-passenger-and-apache-very-important/177447/4 "2009-11-04T17:18:28Z")

</div>

Solved :

Linux Fedora’s security policy was blocking the Phusion from  
initiation.

Thanks to others for reply
