Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

passenger-install-apache2-module unable to detect MPM with Apache 2.4 #1577

Closed
betesh opened this issue Aug 10, 2015 · 5 comments
Closed

passenger-install-apache2-module unable to detect MPM with Apache 2.4 #1577

betesh opened this issue Aug 10, 2015 · 5 comments
Assignees
Milestone

Comments

@betesh
Copy link

betesh commented Aug 10, 2015

When running passenger-install-apache2-module, I get this warning:

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

Phusion Passenger has only been tested on Apache with the 'prefork', the
'worker' and the 'event' MPM. Your Apache installation is compiled with
the '' MPM. We recommend you to abort this installer and to recompile
Apache with either the 'prefork', the 'worker' or the 'event' MPM.

However, this warning is not applicable in RHEL 7, since these modules don't need to be compiled with Apache, but rather are loaded as modules in the configuration file. See the "Processing Model" section at https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/ch-Web_Servers.html#s2-apache-version2-changes

There probably still is some sort of check that should be done--perhaps make sure that exactly 1 of the modules is loaded by the configuration file. But the warning needs to be reworded.

Passenger installed as gem. RVM 1.26.11. Ruby 2.2.2.

@betesh betesh changed the title Warning message is not application on RHEL 7/ CENTOS 7 Warning message is not applicable on RHEL 7/ CENTOS 7 Aug 10, 2015
@FooBarWidget FooBarWidget changed the title Warning message is not applicable on RHEL 7/ CENTOS 7 passenger-install-apache2-module unable to detect MPM on RHEL 7/ CENTOS 7 Aug 10, 2015
@betesh
Copy link
Author

betesh commented Aug 12, 2015

By the way I'm getting the same warning on Ubuntu 15. I think it really just depends on the Apache version: 2.4.x

@betesh betesh changed the title passenger-install-apache2-module unable to detect MPM on RHEL 7/ CENTOS 7 passenger-install-apache2-module unable to detect MPM with Apache 2.4 Aug 12, 2015
@FooBarWidget
Copy link
Member

Which Passenger version are you using?

@OnixGH
Copy link
Contributor

OnixGH commented Aug 12, 2015

@FooBarWidget I get the message also on Ubuntu 14.04, apache 2.4.7, latest stable.

@betesh
Copy link
Author

betesh commented Aug 12, 2015

5.0.15

@FooBarWidget
Copy link
Member

It turns out the problem is not related to the Apache version, but to the way distributions wrap around the apache2ctl script. We run 'apache2ctl -V' to detect the MPM, but that command doesn't work on recent Ubuntu versions if the config file contains an error. And now, it seems Red Hat behaves like that too. I am on OS X, which doesn't do this.

We already check for broken config files and display a different warning in that case, but it seems the check didn't work correctly. This has now been fixed.

FooBarWidget added a commit that referenced this issue Aug 13, 2015
…dates the system

Together with f039db1913, closes GH-1577.
@FooBarWidget FooBarWidget added this to the 5.0.16 milestone Aug 13, 2015
@FooBarWidget FooBarWidget self-assigned this Aug 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants