karns
karns

Reputation: 5887

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.

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. 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. I tried continue but it fails.

So, how do I got about fixing this issue?

Upvotes: 0

Views: 1051

Answers (1)

Hongli
Hongli

Reputation: 18944

You have two choices:

  1. Fix Apache. How to fix this depends on how you installed Apache in the first place. If you installed Apache by installing it from source, then reinstall Apache by compiling it from source, but this time using the worker MPM. Refer to the Apache documentation to learn how to do that.

  2. Don't use Apache. Instead, use Phusion Passenger + Nginx, or use Phusion Passenger Standalone.

Upvotes: 1

Related Questions