Rails application doesn't work with apache2 and passenger

心不动则不痛 提交于 2019-12-11 18:22:33

问题


Can't make my rails 2.3.5 application work correctly with apache2. In apache errors log i get the following:

/usr/lib/phusion_passenger/passenger-spawn-server:53:in `require': no such file to load -- phusion_passenger/utils (LoadError)
from /usr/lib/phusion_passenger/passenger-spawn-server:53
[ pid=9437 file=ext/apache2/Hooks.cpp:727 time=2012-04-02 20:04:49.923 ]:
Unexpected error in mod_passenger: Cannot spawn application '/home/user/projects/pname/trunk': The spawn server has exited unexpectedly.
  Backtrace:
     (empty)

I've tried to reinstall passenger, apache but that didn't help. What should i do to start the application? How can i get phusion-passenger to work?


回答1:


from the error, I suppose you haven't installed some gems/components.

Follow the official document step by step, and you will make it done: http://www.modrails.com/install.html

p.s. from this post: http://markmail.org/message/pyikfcnn3nczhoiz, did you installed 2 versions of ruby?

It was a problem of having both ruby and ruby enterprise edition. I removed the former, installed phusion passenger again and it worked.



来源:https://stackoverflow.com/questions/9980733/rails-application-doesnt-work-with-apache2-and-passenger

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!