Project

General

Profile

mod_passenger problems

Added by Александр Попов over 10 years ago

Hello!
Environment:
CentOS release 6.5 (Final)
ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-linux]
Rails 4.0.4
passenger (4.0.40)
Apache 2.2.15-29
Redmine: 2.5
I installed redmine, including mod_passenger.
My virtual-host configuration:
<VirtualHost *:800>
ServerName redmine.obla.ru
ServerAdmin
DocumentRoot /var/lib/redmine-2.5/public/
Directory /var/lib/redmine-2.5/public/
AllowOverride All
Options MultiViews
Directory
ErrorLog "/var/log/httpd/redmine-error.log"
CustomLog "/var/log/httpd/redmine-access.log" combined
VirtualHost
My passenger configuration:
LoadModule passenger_module /usr/local/rvm/gems/ruby-2.0.0-p247/gems/passenger-4.0.40/buildout/apache2/mod_passenger.so
<IfModule mod_passenger.c>
PassengerRoot /usr/local/rvm/gems/ruby-2.0.0-p247/gems/passenger-4.0.40
PassengerDefaultRuby /usr/local/bin/ruby
</IfModule>
When connected via the web to see the following error:
cannot load such file -- bundler/setup (LoadError)
/usr/local/lib/ruby/site_ruby/2.1.0/rubygems/custom_require.rb:36:in `require'
/usr/local/lib/ruby/site_ruby/2.1.0/rubygems/custom_require.rb:36:in `require'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/passenger-4.0.40/lib/phusion_passenger/loader_shared_helpers.rb:245:in `block in run_load_path_setup_code'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/passenger-4.0.40/lib/phusion_passenger/loader_shared_helpers.rb:348:in `running_bundler'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/passenger-4.0.40/lib/phusion_passenger/loader_shared_helpers.rb:243:in `run_load_path_setup_code'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/passenger-4.0.40/helper-scripts/rack-preloader.rb:100:in `preload_app'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/passenger-4.0.40/helper-scripts/rack-preloader.rb:158:in `<module:App>'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/passenger-4.0.40/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/passenger-4.0.40/helper-scripts/rack-preloader.rb:28:in `<main>'

When rebooted the server, all display the correct. To check rebooted the server again and again got the same error.
Please help me!
Thanks!


Replies (2)

RE: mod_passenger problems - Added by Александр Попов over 10 years ago

I rebooted the server again and all display the correct...

RE: mod_passenger problems - Added by Александр Попов over 10 years ago

After "service httpd restart" again annot load such file -- bundler/setup (LoadError).
Please help!

    (1-2/2)