# Deploying with Passenger question

**URL:** <https://www.ruby-forum.com/t/deploying-with-passenger-question/169896>\
**Category:** Rails\
**Created:** [June 10, 2009, 3:24am UTC](https://www.ruby-forum.com/t/deploying-with-passenger-question/169896 "2009-06-10T03:24:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![calvin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f475e1/32.png) [@calvin](https://www.ruby-forum.com/u/calvin)\
**Post date:** [June 10, 2009, 3:24am UTC](https://www.ruby-forum.com/t/deploying-with-passenger-question/169896/1 "2009-06-10T03:24:38Z")

</div>

Hi,

I followed the instructions for deploying a site with Passenger from  
the screencast that is on the Phusion Passenger site and it didn’t  
work. I am using Dreamhost to host my site- could the problem be on  
their end? Someone suggested that I do:

passenger-install-apache2-module

on my command line but I already did that when I first installed  
Passenger and the Passenger Pref pane and I don’t understand why you  
would have to install the apache2 module again when you want to deploy  
a site. Here are the steps I followed:

I added this to my configuration file underneath the Loadmodule text  
(the same place Ryan B. pasted it in the screencast):

\<VirtualHost \*:80\>  
ServerName [www.blah.com](http://www.blah.com)  
DocumentRoot /Sites/work/blah/public/

Then I restarted apache:

sudo apachectl graceful

and when I go to my sites url I get a “Index of /” page. Should I  
change the name of the server from [www.blah.com](http://www.blah.com) to the name of my  
Dreamhost private server?

I don’t know if this is relevant but I am using Mac OSX 10.5.7

Any help would be greatly appreciated.

Thanks for your time,

Calvin

---

<div class="post-metadata">

**Author:** ![calvin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f475e1/32.png) [@calvin](https://www.ruby-forum.com/u/calvin)\
**Post date:** [June 10, 2009, 4:14am UTC](https://www.ruby-forum.com/t/deploying-with-passenger-question/169896/2 "2009-06-10T04:14:55Z")

</div>

Oh- “[blah.com](http://blah.com)” is just placeholder text for what my my servername  
really is not the actual [blah.com](http://blah.com) site which i did not create and am  
not involved with.

---

<div class="post-metadata">

**Author:** ![calvin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f475e1/32.png) [@calvin](https://www.ruby-forum.com/u/calvin)\
**Post date:** [June 10, 2009, 4:40am UTC](https://www.ruby-forum.com/t/deploying-with-passenger-question/169896/3 "2009-06-10T04:40:04Z")

</div>

Just throwing the obvious out there since you didn’t specify if you  
did it or not:

The LoadModule, PassengerRoot, and PassengerRuby lines are in your  
apache conf file right? If not, that’s your problem.

---

<div class="post-metadata">

**Author:** ![calvin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f475e1/32.png) [@calvin](https://www.ruby-forum.com/u/calvin)\
**Post date:** [June 10, 2009, 5:34am UTC](https://www.ruby-forum.com/t/deploying-with-passenger-question/169896/4 "2009-06-10T05:34:25Z")

</div>

Yes- the LoadModule, PassengerRoot and PassengerRuby lines are in my  
apache conf file.

---

<div class="post-metadata">

**Author:** ![calvin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f475e1/32.png) [@calvin](https://www.ruby-forum.com/u/calvin)\
**Post date:** [June 10, 2009, 12:35pm UTC](https://www.ruby-forum.com/t/deploying-with-passenger-question/169896/5 "2009-06-10T12:35:56Z")

</div>

What do your Apache logs say when you restart the server? You should  
see a line similar to:

[notice] Apache/2.2.9 (Unix) mod\_ssl/2.2.9 OpenSSL/0.9.7l DAV/2  
Phusion\_Passenger/2.2.2 configured – resuming normal operations

-Matt

---

<div class="post-metadata">

**Author:** ![calvin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f475e1/32.png) [@calvin](https://www.ruby-forum.com/u/calvin)\
**Post date:** [June 10, 2009, 9:05pm UTC](https://www.ruby-forum.com/t/deploying-with-passenger-question/169896/6 "2009-06-10T21:05:21Z")

</div>

It turns out that the instructions for deploying a site with  
passenger are different for Dreamhost. You have to enable Passenger in  
a domain management panel and then FTP your application. However,  
Dreamhost admits that their process of deploying and starting up a  
Rails application does not fully work… I get a Passenger error  
message when I go to my site’s url: [www.pwrpop.com](http://www.pwrpop.com)  
and I don’t know what steps to take to fix the problem.
