Thursday, August 6, 2015

apache 2.2 - passenger-status - ERROR: Phusion Passenger doesn't seem to be running



My server is:



Server version: Apache/2.2.11 (Ubuntu)
Server built: Aug 16 2010 17:44:11


My ruby version ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-linux].




I've installed passenger 3.0.7 via RubyGems. I've run passenger-install-apache2-module and everything went fine. I've modified configuration (load module, edit virtualhost etc.) and restarted Apache. Module is loading fine (apache does not complain). But Passenger is obviously not working:



sudo passenger-status
ERROR: Phusion Passenger doesn't seem to be running.


How can I get it working ?



Edit 1:




/etc/apache2/mods-enabled/passenger.load



LoadModule passenger_module /usr/lib/ruby/gems/1.9.1/gems/passenger-3.0.7/ext/apache2/mod_passenger.so


Root of passenger:



passenger-config --root
/usr/lib/ruby/gems/1.9.1/gems/passenger-3.0.7



Apache VirtualHost sub URI configuration in /etc/apache2/sites-enabled/railsapps:



:80>                                                                                                                                                                                    
ServerAdmin webmaster@localhost
ServerName my.server.name

PassengerRoot /usr/lib/ruby/gems/1.9.1/gems/passenger-3.0.7
PassengerRuby /usr/bin/ruby

RailsEnv development

DocumentRoot /www/vhosts/railsapps


Options FollowSymlinks -MultiViews
AllowOverride None
Order allow,deny
Allow from all



RailsBaseURI /siteA

Options -MultiViews
AllowOverride All
Order allow,deny
Allow from all


RailsBaseURI /siteB


AllowOverride All
Options -MultiViews
Order allow,deny
Allow from all


LogLevel info

ErrorLog /var/log/apache2/railsapps_error.log

CustomLog /var/log/apache2/railsapps_access.log combined




Of course as in 'users guide apache.html' siteA and siteB are symlinks to siteA/public and siteB/public absolute paths respectively.



Edit 2:



In logs there is nothing related to passenger. Permissions are also fine (read and executable) on directories in paths. Even if it was some misconfiguration or permission problem isn't passenger suppose to be running? I mean sudo passenger-status should at least output --- general information ---. When I place some test html file in railsapps directory it is served fine.




/var/log/apache2/railsapps_error.log



[Sun Jun 19 12:19:08 2011] [error] [client ] Directory index forbidden by Options directive: /www/vhosts/railsapps/siteA/
[Sun Jun 19 12:19:08 2011] [error] [client ] File does not exist: /www/vhosts/railsapps/favicon.ico

Answer



The log entry was about unable to start watchdog because its executable path does not exist. The one of many sites had PassengerRoot set to old path and old version of passenger. And that was causing a problem.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...