I installed Passenger into Apache but my Rails application won't be
served. I get a 500 Internal Server Error. The Apache error log says:
---------- error_log ----------
/opt/bitnami/ruby/bin/.ruby.bin: error while loading shared libraries:
libruby.so.1.8: cannot open shared object file: No such file or
directory
[ pid=9113 file=ext/apache2/Hooks.cpp:727 time=2010-03-24
10:24:18.271 ]:
Unexpected error in mod_passenger: Cannot spawn application '/opt/
bitnami/projects/event/current': Could not read from the spawn server:
Connection reset by peer (104)
Backtrace:
in 'virtual boost::shared_ptr<Passenger::Application::Session>
Passenger::ApplicationPoolServer::Client::get(const
Passenger::PoolOptions&)' (ApplicationPoolServer.h:471)
in 'int Hooks::handleRequest(request_rec*)' (Hooks.cpp:523)
---------------------------------
There's a neat installation of the required ruby lib within /opt/
bitnami/ruby/lib. It contains libruby.so.1.8, which is a symbolic link
and points to the file libruby.so.1.8.7 in the same directory. The
ruby configuration seems to point to that directory as well.
Static content of the "public" directory is served fine, btw.
I feel I'm missing something very basic here but I just can't get it
to work. Any help from you would be highly appreciated. Thanks in
advance,
Sebastian
Looks like the Bitnami stack's Ruby needs some environment variables.
Is there a /opt/bitname/ruby/bin/ruby? Try setting PassengerRuby to
that.
--
Phusion | The Computer Science Company
Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)
Thanks for the hint. I included that like the installation
instructions of passenger said:
----------- httpd.conf snippet ------------
LoadModule passenger_module /opt/bitnami/ruby/lib/ruby/gems/1.8/gems/
passenger-2.2.11/ext/apache2/mod_passenger.so
PassengerRoot /opt/bitnami/ruby/lib/ruby/gems/1.8/gems/
passenger-2.2.11
PassengerRuby /opt/bitnami/ruby/bin/ruby
---------------------------------------------------
Meaning: It has already been there, so that wasn't the problem
I think you need to ask the Bitnami guys. This is almost certainly a
problem in the Ruby installation.