如果我使用以下命令运行 phusion:
rvmsudo passenger start -p 80
[编辑] 输出是
>> rvmsudo passenger start -p 80
=============== Phusion Passenger Standalone web server started ===============
PID file: /home/user/site/rails-webpage/tmp/pids/passenger.80.pid
Log file: /home/user/site/rails-webpage/log/passenger.80.log
Environment: development
Accessible via: http://0.0.0.0/
You can stop Phusion Passenger Standalone by pressing Ctrl-C.
===============================================================================
/usr/local/rvm/gems/ruby-1.9.3-p362/gems/therubyracer-0.10.2/ext/v8/v8.so: [BUG] Segmentation fault
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
[\编辑]
在浏览器上,我得到一个乘客制作的页面,其中包含很多无用的错误。至少对我来说。
The application spawner server exited unexpectedly: Unexpected end-of-file detected.
Exception class:
PhusionPassenger::Rack::ApplicationSpawner::Error
Backtrace:
# File Line Location
0 /var/lib/passenger-standalone/3.0.18-x86_64-ruby1.8.7-linux-gcc4.6.3-1002/support/lib/phusion_passenger/rack/application_spawner.rb 135 in `start'
1 /var/lib/passenger-standalone/3.0.18-x86_64-ruby1.8.7-linux-gcc4.6.3-1002/support/lib/phusion_passenger/spawn_manager.rb 253 in `spawn_rack_application'
2 /var/lib/passenger-standalone/3.0.18-x86_64-ruby1.8.7-linux-gcc4.6.3-1002/support/lib/phusion_passenger/abstract_server_collection.rb 132 in `lookup_or_add'
3 /var/lib/passenger-standalone/3.0.18-x86_64-ruby1.8.7-linux-gcc4.6.3-1002/support/lib/phusion_passenger/spawn_manager.rb 246 in `spawn_rack_application'
4 /var/lib/passenger-standalone/3.0.18-x86_64-ruby1.8.7-linux-gcc4.6.3-1002/support/lib/phusion_passenger/abstract_server_collection.rb 82 in `synchronize'
5 /var/lib/passenger-standalone/3.0.18-x86_64-ruby1.8.7-linux-gcc4.6.3-1002/support/lib/phusion_passenger/abstract_server_collection.rb 79 in `synchronize'
6 /var/lib/passenger-standalone/3.0.18-x86_64-ruby1.8.7-linux-gcc4.6.3-1002/support/lib/phusion_passenger/spawn_manager.rb 244 in `spawn_rack_application'
7 /var/lib/passenger-standalone/3.0.18-x86_64-ruby1.8.7-linux-gcc4.6.3-1002/support/lib/phusion_passenger/spawn_manager.rb 137 in `spawn_application'
8 /var/lib/passenger-standalone/3.0.18-x86_64-ruby1.8.7-linux-gcc4.6.3-1002/support/lib/phusion_passenger/spawn_manager.rb 275 in `handle_spawn_application'
9 /var/lib/passenger-standalone/3.0.18-x86_64-ruby1.8.7-linux-gcc4.6.3-1002/support/lib/phusion_passenger/abstract_server.rb 357 in `__send__'
10 /var/lib/passenger-standalone/3.0.18-x86_64-ruby1.8.7-linux-gcc4.6.3-1002/support/lib/phusion_passenger/abstract_server.rb 357 in `server_main_loop'
11 /var/lib/passenger-standalone/3.0.18-x86_64-ruby1.8.7-linux-gcc4.6.3-1002/support/lib/phusion_passenger/abstract_server.rb 206 in `start_synchronously'
12 /var/lib/passenger-standalone/3.0.18-x86_64-ruby1.8.7-linux-gcc4.6.3-1002/support/helper-scripts/passenger-spawn-server 99
apache错误日志是:
[Thu Jan 03 20:14:47 2013] [notice] caught SIGTERM, shutting down
[Thu Jan 03 20:14:47 2013] [notice] Apache/2.2.22 (Ubuntu) Phusion_Passenger/3.0.18 configured -- resuming normal operations
[Thu Jan 03 20:14:53 2013] [error] [client 2.34.83.82] File does not exist: /var/www/favicon.ico
[Thu Jan 03 20:14:55 2013] [error] [client 2.34.83.82] File does not exist: /var/www/favicon.ico
[Thu Jan 03 20:23:46 2013] [error] [client 2.34.83.82] File does not exist: /var/www/favicon.ico
[Thu Jan 03 20:24:50 2013] [notice] caught SIGTERM, shutting down
这让我发疯。我不知道从哪里开始。我在 ubuntu 12.04 上运行 rails 3.2,ruby 1.9.3-p362。
我想要的只是部署我的应用程序。
只是为了提供更多信息,即使它可能不相关,我尝试运行 apache-passenger-module。我所能做的就是显示标准的 apache 页面,就像没有 rails 一样。我添加了三行加上虚拟主机,但无济于事。厌倦了寻找原因并决定尝试独立服务器。但它也不起作用。