简体   繁体   English

警告:Apache似乎没有使用'prefork','worker'或'event'MPM进行编译-Rails-Apache2-Passenger

[英]WARNING: Apache doesn't seem to be compiled with the 'prefork', 'worker' or 'event' MPM - Rails - Apache2 - Passenger

I am deploying a Rails application on an ubuntu server that has Apache2 installed, Rails installed, and I am trying to get the application deployed using Passenger. 我在已安装Apache2,安装了Rails的ubuntu服务器上部署了Rails应用程序,并且尝试使用Passenger部署该应用程序。

Apache is installed just fine - I can view static files, reload it, start it, stop it, etc.. Rails is installed just fine - I can run the WeBrick server from the application root. Apache安装得很好-我可以查看静态文件,重新加载它,启动它,停止它,等等。Rails安装得很好-我可以从应用程序根目录运行WeBrick服务器。 Now I want to use passenger to deploy. 现在我想用乘客来部署。

When I run the following command: 当我运行以下命令时:

passenger-install-apache2-module

It goes through some stuff then the following error comes up: 它经历了一些事情,然后出现以下错误:

WARNING: Apache doesn't seem to be compiled with the 'prefork', 'worker' or 'event' MPM - Rails - Apache2 - Passenger

Basically, the Passenger installer tells me to recompile Apache with one of those MPM's or continue the installation process. 基本上,乘客安装程序告诉我用那些MPM之一重新编译Apache或继续安装过程。 I tried continue but it fails. 我尝试继续,但失败了。

So, how do I got about fixing this issue? 那么,如何解决这个问题呢?

You have two choices: 您有两种选择:

  1. Fix Apache. 修复Apache。 How to fix this depends on how you installed Apache in the first place. 如何解决此问题,首先取决于您如何安装Apache。 If you installed Apache by installing it from source, then reinstall Apache by compiling it from source, but this time using the worker MPM. 如果通过从源代码安装Apache来安装Apache,请通过从源代码编译Apache来重新安装Apache,但是这次使用辅助MPM。 Refer to the Apache documentation to learn how to do that. 请参阅Apache文档以了解如何执行此操作。

  2. Don't use Apache. 不要使用Apache。 Instead, use Phusion Passenger + Nginx, or use Phusion Passenger Standalone. 而是使用Phusion Passenger + Nginx,或使用Phusion Passenger独立版。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM