Phusion passenger works in standalone, but fails as virtual

27 views
Skip to first unread message

Ed Bruner

unread,
Apr 16, 2013, 9:46:40 AM4/16/13
to phusion-...@googlegroups.com
Complete newb to rails & passenger.
I'm running passenger 3.0.19 on Linux Mint.  My app runs fine with WEBrick(rails server) and with standalone passenger.  When I try to use mod_passenger I get "FATAL: Peer authentication failed for user "mmum_user" (PG::Error)":
apach2.conf:

#Phusion Passenger config info
   LoadModule passenger_module /var/lib/gems/1.9.1/gems/passenger-3.0.19/ext/apache2/mod_passenger.so
   PassengerRoot /var/lib/gems/1.9.1/gems/passenger-3.0.19
   PassengerRuby /usr/bin/ruby1.9.1

#Suppose you have a Rails application in /somewhere. Add a virtual host to your
#Apache configuration file and set its DocumentRoot to /somewhere/public:

   <VirtualHost *:80>
      ServerName localhost
      # !!! Be sure to point DocumentRoot to 'public'!
      DocumentRoot /var/www/myapp/public
      <Directory /var/www/myapp/public>
         # This relaxes Apache security settings.
         AllowOverride all
         # MultiViews must be turned off.
         Options -MultiViews
      </Directory>
   </VirtualHost>


Ed Bruner

unread,
Apr 16, 2013, 10:12:22 AM4/16/13
to phusion-...@googlegroups.com
I should note: that the db account works via commandline and is configured in database.yml.  I've seen ppl indicate that this is an issue with pg_hba.conf...but if that were my problem then the application wouldn't work in standalone either...but it does. 
Reply all
Reply to author
Forward
0 new messages