Hi --
I'm having difficulty getting Passenger working on a 32-bit CentOS 5.8
platform with Apache2 (2.2.3).
This is to support a Redmine installation... however, Redmine seems to be
working okay using webrick.
The problem seems to be with Passenger.
The observed behavior is that when I access it with a web browser the
browser times out.
I don't see anything in any of the log files (production.log, error.log,
access_log, etc.)
So -- What am I missing here? This installation is almost identical to
another one I did, and that one is working.
Logging doesn't seem to help much, but I'm not sure what I should expect to
be seeing there.
Help?
I used passenger-install-apache2-module to install, and it compiled
successfully.
I added to httpd.conf and restarted httpd:
> LoadModule passenger_module
> /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.18/ext/apache2/mod_passen ger.so
> PassengerRoot /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.18
> PassengerRuby /usr/local/bin/ruby
> PassengerLogLevel 3
The VirtualHost looks like:
> <VirtualHost *:80>
> ServerName hpredmine.example.com
> DocumentRoot /var/www/vhosts/redmine.example.com/public
> ErrorLog logs/redmine.example.com-error_log
> CustomLog logs/redmine.example.com-access_log common
> <Directory "/var/www/vhosts/redmine.example.com/public">
> Options Indexes ExecCGI FollowSymLinks
> AllowOverride All
> Options -MultiViews
> Order allow,deny
> Allow from all
> </Directory>
> # set max-age expiration to 10 days
> <FilesMatch "\.(js|css)$">
> Header set Cache-Control "max-age=864000, must-revalidate"
> </FilesMatch>
> </VirtualHost>
The contents of /var/www/vhosts/redmine.example.com/ include:
> -rw-rw-r-- 1 apache apache 626 Nov 3 04:50 config/environment.rb
> -rw-r--r-- 1 apache apache 160 Nov 5 17:04 config.ru
> -rw-rw-r-- 1 apache apache 101 Nov 5 17:05 config.ru.hello
> public/:
> total 52
> -rw-rw-r-- 1 apache apache 485 Sep 30 06:42 404.html
> -rw-rw-r-- 1 apache apache 674 Sep 30 06:42 500.html
> -rwxrwxr-x 1 apache apache 473 Sep 30 06:42 dispatch.fcgi.example
> -rwxr-xr-x 1 apache apache 508 Nov 5 16:58 dispatch.fcgi.test
> -rw-rw-r-- 1 apache apache 7886 Sep 30 06:42 favicon.ico
> drwxrwxr-x 2 apache apache 4096 Sep 30 06:41 help
> -rw-r--r-- 1 apache apache 1528 Nov 5 13:24 htaccess
> -rw-rw-r-- 1 apache apache 1441 Sep 30 06:42 htaccess.fcgi.example
> drwxrwxr-x 4 apache apache 4096 Sep 30 06:41 images
> drwxrwxr-x 4 apache apache 4096 Sep 30 06:41 javascripts
> drwxrwxr-x 3 apache apache 4096 Sep 30 06:42 stylesheets
> drwxrwxr-x 4 apache apache 4096 Sep 30 06:41 themes
I believe that dispatch.fcgi and .htaccess are ignored by Passenger. Is
that correct?
I've also tried getting it to run with config.ru looking like:
> app = proc do |env|
> [200, { "Content-Type" => "text/html" }, ["hello <b>world</b>"]]
> end
> run app
Same behavior -- timeout.
/usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.18/bin/passenger-status
--verbose
> ----------- General information -----------
> max = 6
> count = 0
> active = 0
> inactive = 0
> Waiting on global queue: 0
> ----------- Application groups -----------
script/about
> /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.8/lib/active_support/ dependencies.rb:251:in
> `block in require': iconv will be deprecated in the future, use
> String#encode instead.
> Environment:
> Redmine version 2.1.2.stable
> Ruby version 1.9.3 (i686-linux)
> Rails version 3.2.8
> Environment production
> Database adapter Mysql2
> Redmine plugins:
> no plugin installed
gem -v
> 1.8.11
Logging output in /var/log/httpd/error_log:
> [ pid=16336 thr=3086595856 file=ext/apache2/Hooks.cpp:1411 time=2012-11-05
> 18:31:40.569 ]: Initializing Phusion Passenger...
> [ pid=16348 thr=3086276320 file=ext/common/LoggingAgent/Main.cpp:283
> time=2012-11-05 18:31:40.755 ]: Logging agent online, listening at
> unix:/tmp/passenger.1.0.16336/generation-0/logging.socket
> [Mon Nov 05 18:31:40 2012] [notice] FastCGI: wrapper mechanism enabled
> (wrapper: /usr/sbin/suexec)
> [Mon Nov 05 18:31:40 2012] [notice] FastCGI: process manager initialized
> (pid 16354)
> [Mon Nov 05 18:31:41 2012] [notice] Apache/2.2.3 (CentOS) configured --
> resuming normal operations
> [ pid=16312 thr=3085973200 file=ext/common/Watchdog.cpp:966
> time=2012-11-05 18:31:45.27 ]: All Phusion Passenger agent processes have
> exited.
> [ pid=16335 thr=3086526160 file=ext/common/Watchdog.cpp:966
> time=2012-11-05 18:31:48.23 ]: All Phusion Passenger agent processes have
> exited.
> [ pid=16348 thr=3086276320
> file=ext/common/LoggingAgent/LoggingServer.h:829 time=2012-11-05
> 18:31:55.755 ]: Flushing all sinks (periodic action)
> [ pid=16348 thr=3086276320
> file=ext/common/LoggingAgent/LoggingServer.h:829 time=2012-11-05
> 18:32:10.756 ]: Flushing all sinks (periodic action)