Yes, I agree this could be configuration related. The actual number of
Passenger related configuration lines is pretty small, I would think a
configuration problem would jump out at me. I'm concerned the problem
has something to do with how our Apache instance is compiled (which is
one big difference from the other environments where Passenger is
working for me) or possibly file permission related.
Thank you for taking a look at my configuration: Here are the Apache
configuration files:
--Rob
httpd.conf:
ServerRoot "/opt/coolstack/apache2"
Listen
0.0.0.0:80
#CoreDumpDirectory /tmp/apache2-gdb-dump
ServerSignature Off
ServerTokens Full
Options -Indexes
Options -Includes
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_cert_module modules/mod_auth_cert.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule env_module modules/mod_env.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule headers_module modules/mod_headers.so
LoadModule unique_id_module modules/mod_unique_id.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule ssl_module modules/mod_ssl.so
LoadModule mime_module modules/mod_mime.so
LoadModule status_module modules/mod_status.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule dir_module modules/mod_dir.so
<IfModule !mpm_netware_module>
User websrvr
Group dev
</IfModule>
ServerAdmin
he...@example.com
ServerName
coi.example.com:80
DocumentRoot "/export/home/websrvr/rails/current/public"
LoadModule passenger_module /opt/coolstack/lib/ruby/gems/1.8/gems/
passenger-2.2.11/ext/apache2/mod_passenger.so
PassengerRoot /opt/coolstack/lib/ruby/gems/1.8/gems/passenger-2.2.11
PassengerRuby /opt/coolstack/bin/ruby
RailsEnv development
PassengerLogLevel 9
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
<Directory "/export/home/websrvr/rails/current/public">
Options Indexes FollowSymLinks -MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory "/opt/coolstack/apache2/htdocs">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
ErrorLog "/opt/coolstack/apache2/logs/error_log"
LogLevel debug
<IfModule log_config_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-
Agent}i\""
combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
<IfModule logio_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-
Agent}i\" %I
%O" combinedio
</IfModule>
CustomLog "/opt/coolstack/apache2/logs/access_log" common
</IfModule>
<IfModule rewrite_module>
#RewriteEngine On
#Disable TRACE Method
#RewriteCond "%{REQUEST_METHOD}" ^TRACE
#RewriteRule ".*" - [F]
# Redirect all port 80 traffic to secure HTTPS/port 443
#RewriteCond "%{SERVER_PORT}" "^80$"
#RewriteRule "^(.*)$" "https://%{SERVER_NAME}$1" [R,L]
</IfModule>
<IfModule alias_module>
ScriptAlias /cgi-bin/ "/opt/coolstack/apache2/cgi-bin/"
</IfModule>
<Directory "/opt/coolstack/apache2/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
DefaultType text/plain
<IfModule mime_module>
TypesConfig conf/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
</IfModule>
ErrorDocument 400 "400 Error - Please contact your administrator"
ErrorDocument 401 "401 Error - Please contact your administrator"
ErrorDocument 403 "403 Error - Please contact your administrator"
ErrorDocument 404 "404 Error - Please contact your administrator"
ErrorDocument 405 "405 Error - Please contact your administrator"
ErrorDocument 406 "406 Error - Please contact your administrator"
ErrorDocument 500 "500 Error - Please contact your administrator"
ErrorDocument 501 "501 Error - Please contact your administrator"
ErrorDocument 503 "503 Error - Please contact your administrator"
# Server-pool management (MPM specific)
Include conf/extra/httpd-mpm.conf
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
conf/extra/httpd-mpm.conf:
#
# Server-Pool Management (MPM specific)
#
#
# PidFile: The file in which the server should record its process
# identification number when it starts.
#
# Note that this is the default PidFile for most MPMs.
#
<IfModule !mpm_netware_module>
PidFile "logs/httpd.pid"
</IfModule>
#
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
#
<IfModule !mpm_winnt_module>
<IfModule !mpm_netware_module>
LockFile "logs/accept.lock"
</IfModule>
</IfModule>
#
# Only one of the below sections will be relevant on your
# installed httpd. Use "apachectl -l" to find out the
# active mpm.
#
# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept
spare
# MaxSpareServers: maximum number of server processes which are kept
spare
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process
serves
<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept
spare
# MaxSpareThreads: maximum number of worker threads which are kept
spare
# ThreadsPerChild: constant number of worker threads in each server
process
# MaxRequestsPerChild: maximum number of requests a server process
serves
<IfModule mpm_worker_module>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
# BeOS MPM
# StartThreads: how many threads do we initially spawn?
# MaxClients: max number of threads we can have (1 thread == 1
client)
# MaxRequestsPerThread: maximum number of requests each thread will
process
<IfModule mpm_beos_module>
StartThreads 10
MaxClients 50
MaxRequestsPerThread 10000
</IfModule>
# NetWare MPM
# ThreadStackSize: Stack size allocated for each worker thread
# StartThreads: Number of worker threads launched at server startup
# MinSpareThreads: Minimum number of idle threads, to handle request
spikes
# MaxSpareThreads: Maximum number of idle threads
# MaxThreads: Maximum number of worker threads alive at the same time
# MaxRequestsPerChild: Maximum number of requests a thread serves. It
is
# recommended that the default value of 0 be set
for this
# directive on NetWare. This will allow the
thread to
# continue to service requests indefinitely.
<IfModule mpm_netware_module>
ThreadStackSize 65536
StartThreads 250
MinSpareThreads 25
MaxSpareThreads 250
MaxThreads 1000
MaxRequestsPerChild 0
MaxMemFree 100
</IfModule>
# OS/2 MPM
# StartServers: Number of server processes to maintain
# MinSpareThreads: Minimum number of idle threads per process,
# to handle request spikes
# MaxSpareThreads: Maximum number of idle threads per process
# MaxRequestsPerChild: Maximum number of connections per server
process
<IfModule mpm_mpmt_os2_module>
StartServers 2
MinSpareThreads 5
MaxSpareThreads 10
MaxRequestsPerChild 0
</IfModule>
# WinNT MPM
# ThreadsPerChild: constant number of worker threads in the server
process
# MaxRequestsPerChild: maximum number of requests a server process
serves
<IfModule mpm_winnt_module>
ThreadsPerChild 150
MaxRequestsPerChild 0
</IfModule>
On May 5, 4:34 pm, Hongli Lai <
hon...@phusion.nl> wrote:
> E-mail:
i...@phusion.nl