Here's my http-vhosts:
NameVirtualHost 123.123.123.123:80
<VirtualHost 123.123.123.123:80>
ServerAdmin webs...@website.com
ServerName website.com
ServerAlias www.website.com
DocumentRoot /var/www/apps/website/www.website/current/public
<Directory "/var/www/apps/website/www.website/current/public">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/www/apps/website/www.website/shared/log/
www.website.com-error_log
CustomLog /var/www/apps/website/www.website/shared/log/
www.website.com-access_log combined
</VirtualHost>
<VirtualHost 123.123.123.123:80>
ServerAdmin webs...@website.com
ServerName dev.website.com
ServerAlias www.dev.website.com
DocumentRoot /var/www/apps/website/dev.website/current/public
<Directory "/var/www/apps/website/dev.website/current/public">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/www/apps/website/dev.website/shared/log/
dev.website.com-error_log
CustomLog /var/www/apps/website/dev.website/shared/log/
dev.website.com-access_log combined
</VirtualHost>
<VirtualHost 123.123.123.123:80>
ServerAdmin webs...@website.com
ServerName staging.website.com
ServerAlias www.staging.website.com
DocumentRoot /var/www/apps/website/staging.website/current/public
<Directory "/var/www/apps/website/staging.website/current/public">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/www/apps/website/staging.website/shared/log/
staging.website.com-error_log
CustomLog /var/www/apps/website/staging.website/shared/log/
staging.website.com-access_log combined
</VirtualHost>
On Jan 13, 4:41 pm, Matt R <matt.rog...@gmail.com> wrote:
> Trying to replace mongrel_cluster with passenger. Installed via the
> gem and ran the install "OK". Added the correct entries to my
> httpd.conf and vhosts.
> Restarting apache results in every child process failing:
> [Tue Jan 13 16:37:42 2009] [notice] SIGHUP received. Attempting to
> restart
> [Tue Jan 13 16:37:42 2009] [notice] Digest: generating secret for
> digest authentication ...
> [Tue Jan 13 16:37:42 2009] [notice] Digest: done
> [Tue Jan 13 16:37:42 2009] [notice] Apache/2.2.6 (Unix) mod_ssl/2.2.6
> \x10\xf7\x0e\b DAV/2 Phusion_Passenger/2.0.6 configured -- resuming
> normal operations
> [Tue Jan 13 16:37:51 2009] [notice] child pid 6678 exit signal
> Segmentation fault (11)
> [Tue Jan 13 16:37:51 2009] [notice] child pid 6679 exit signal
> Segmentation fault (11)
> Running the spawner from the command line gives:
> passenger-spawn-server
> *** Exception Errno::EBADF in spawn manager (Bad file descriptor)
> (process 16929):
> from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.6/bin/passenger-
> spawn-server:32:in `initialize'
> from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.6/bin/passenger-
> spawn-server:32:in `new'
> from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.6/bin/passenger-
> spawn-server:32
> from /usr/local/bin/passenger-spawn-server:19:in `load'
> from /usr/local/bin/passenger-spawn-server:19
> which is
> input = IO.new(DEFAULT_INPUT_FD)
> It fails with both regular ruby and ruby ee.
> The rails production log shows requests making it just fine (e.g. it
> is processing). Any ideas?
> Thanks!!!!
> Version info follows:
> uname -a
> Linux 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:58:04 EST 2007 i686 athlon
> i386 GNU/Linux
> ruby -v (regular)
> ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-linux]
> ruby -v (enterprise edition)
> ruby 1.8.6 (2008-08-08 patchlevel 286) [i686-linux]
> http -v
> Server version: Apache/2.2.6 (Unix)
> gem list --local
> *** LOCAL GEMS ***
> actionmailer (2.2.2, 2.0.2)
> actionpack (2.2.2, 2.0.2)
> activerecord (2.2.2, 2.0.2)
> activeresource (2.2.2, 2.0.2)
> activesupport (2.2.2, 2.0.2)
> cgi_multipart_eof_fix (2.5.0)
> columnize (0.3.0)
> daemons (1.0.10, 1.0.9)
> daylife (0.1.0)
> fastercsv (1.4.0, 1.2.3)
> fastthread (1.0.1)
> ferret (0.11.6)
> gem_plugin (0.2.3)
> heywatch (0.0.1)
> hoe (1.8.2, 1.4.0)
> hpricot (0.6.164, 0.6)
> image_science (1.1.3)
> linecache (0.43)
> mislav-will_paginate (2.3.2)
> mongrel (1.1.5, 1.1.3, 1.1.2)
> mongrel_cluster (1.0.5)
> mysql (2.7)
> passenger (2.0.6)
> rack (0.9.1)
> rails (2.2.2, 2.0.2)
> rake (0.8.3, 0.8.1)
> ruby-debug (0.10.3, 0.10.0)
> ruby-debug-base (0.10.3, 0.10.0)
> rubyforge (1.0.2)
> rubygems-update (1.3.1, 1.0.1)
> RubyInline (3.8.1, 3.6.6)
> sources (0.0.1)
> tattle (1.0.3)
> xml-simple (1.0.11)
> ZenTest (3.11.0)