我试图在Debian系统上部署Phusion Passenger中的3.1.3应用程序,但当我访问任何页面时都会出现异常:
*** Exception NoMethodError in spawn manager (undefined method `passenger_tmpdir=' for PhusionPassenger::Utils:Module) (process 15041, thread #<Thread:0x00000001219750>):
from /usr/lib/phusion_passenger/passenger-spawn-server:57:in `<main>'
[ pid=14670 file=ext/apache2/Hooks.cpp:727 time=2012-02-26 19:41:33.844 ]:
Unexpected error in mod_passenger: Cannot spawn application '/usr/local/share/www/the-app-location': The spawn server has exited unexpectedly.
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)谷歌搜索什么也没找到。这个错误看起来像是配置问题,但我找不到任何设置passenger_tmpdir anywhere的东西。
该环境的一个可能相关的特性:同时安装了Ruby1.8和1.9.1。/usr/bin/ruby指出了Ruby1.8。
遗漏了什么?
发布于 2012-03-21 02:36:53
您可能已经将passenger安装为本机包。通过gem安装它应该可以很好地完成这项工作(对我来说也是如此)。
查看官方文档:http://www.modrails.com/documentation/Users%20guide%20Apache.html#_installing_via_the_gem
https://stackoverflow.com/questions/9456746
复制相似问题