SOLVED Can't switch to mod_mpm_event to enable mod_http2

PeteS

Well-Known Member
Jun 8, 2017
235
48
28
Oregon
cPanel Access Level
Root Administrator
When attempting to install mod_http2 in WHM I get:

The following conflicts are installed on this machine.
They will be removed as part of this package selection:
mod_cgi
mod_ruid2
mod_mpm_prefork

The following requirements are not installed on this machine.
They will be added as part of this package selection:
mod_http2
This makes total sense to me, and after selecting "yes" and selecting mod_mpm_event it is configured to also install mod_cgid. So far so good, but on review I get:

Code:
Error: ea-apache24-mod_mpm_event conflicts with ea-apache24-mod_mpm_prefork-2.4.29-7.7.2.cpanel.x86_64
Error: ea-apache24-mod_cgid conflicts with ea-apache24-mod_cgi-2.4.29-7.7.2.cpanel.x86_64
Error: ea-apache24-mod_mpm_prefork conflicts with ea-apache24-mod_mpm_event-2.4.29-7.7.2.cpanel.x86_64
Error: ea-apache24-mod_cgi conflicts with ea-apache24-mod_mpm_event-2.4.29-7.7.2.cpanel.x86_64
Error: ea-apache24-mod_mpm_prefork conflicts with ea-apache24-mod_cgid-2.4.29-7.7.2.cpanel.x86_64
Error: ea-apache24-mod_cgid conflicts with ea-apache24-mod_mpm_prefork-2.4.29-7.7.2.cpanel.x86_64
Error: ea-apache24-mod_mpm_event conflicts with ea-apache24-mod_cgi-2.4.29-7.7.2.cpanel.x86_64
Error: ea-apache24-mod_cgi conflicts with ea-apache24-mod_cgid-2.4.29-7.7.2.cpanel.x86_64
Error: ea-apache24-mod_http2 conflicts with ea-apache24-mod_mpm_prefork-2.4.29-7.7.2.cpanel.x86_64
Error: ea-apache24-mod_mpm_prefork conflicts with ea-apache24-mod_http2-2.4.29-7.7.2.cpanel.x86_64
How do I get this to work?
 
Last edited by a moderator:

PeteS

Well-Known Member
Jun 8, 2017
235
48
28
Oregon
cPanel Access Level
Root Administrator
EasyApache 4 not resolving conflict correctly addressed this over a year ago, and indicated it should be fixed in v60 but apparently this wasn't.

cPanel 68 (soon to be 70) still has this problem.

Shouldn't this have been fixed by now?!

----

Per the above link I tried the yum shell CLI option (thanks, @cPJacob) and got the following:

Code:
# yum shell
Loaded plugins: fastestmirror, langpacks, universal-hooks
> remove ea-apache24-mod_mpm_prefork
> install ea-apache24-mod_mpm_worker
Loading mirror speeds from cached hostfile
 * EA4: 69.72.212.11
 * cpanel-addons-production-feed: 69.72.212.11
 * base: mirror.metrocast.net
 * epel: epel.mirror.constant.com
 * extras: mirror.metrocast.net
 * updates: mirror.metrocast.net
> run
--> Running transaction check
---> Package ea-apache24-mod_mpm_prefork.x86_64 0:2.4.29-7.7.3.cpanel will be erased
---> Keeping package: ea-apache24-mod_mpm_prefork-2.4.29-7.7.3.cpanel.x86_64 due to ea-apache24-2.4.29-7.7.3.cpanel.x86_64
---> Package ea-apache24-mod_mpm_worker.x86_64 0:2.4.29-7.7.3.cpanel will be installed
--> Processing Dependency: ea-apache24-mod_cgid for package: ea-apache24-mod_mpm_worker-2.4.29-7.7.3.cpanel.x86_64
--> Running transaction check
---> Package ea-apache24-mod_cgid.x86_64 0:2.4.29-7.7.3.cpanel will be installed
--> Processing Conflict: ea-apache24-mod_cgi-2.4.29-7.7.3.cpanel.x86_64 conflicts ea-apache24-mod_cgid
--> Processing Conflict: ea-apache24-mod_cgi-2.4.29-7.7.3.cpanel.x86_64 conflicts ea-apache24-mod_mpm_worker
--> Processing Conflict: ea-apache24-mod_mpm_prefork-2.4.29-7.7.3.cpanel.x86_64 conflicts ea-apache24-mpm = threaded
--> Processing Conflict: ea-apache24-mod_mpm_prefork-2.4.29-7.7.3.cpanel.x86_64 conflicts ea-apache24-mod_mpm_worker
--> Processing Conflict: ea-apache24-mod_mpm_prefork-2.4.29-7.7.3.cpanel.x86_64 conflicts ea-apache24-mod_cgid
--> Processing Conflict: ea-apache24-mod_mpm_worker-2.4.29-7.7.3.cpanel.x86_64 conflicts ea-apache24-mpm = forked
--> Processing Conflict: ea-apache24-mod_mpm_worker-2.4.29-7.7.3.cpanel.x86_64 conflicts ea-apache24-mod_mpm_prefork
--> Processing Conflict: ea-apache24-mod_mpm_worker-2.4.29-7.7.3.cpanel.x86_64 conflicts ea-apache24-mod_cgi
--> Processing Conflict: ea-apache24-mod_cgid-2.4.29-7.7.3.cpanel.x86_64 conflicts ea-apache24-mod_mpm_prefork
--> Processing Conflict: ea-apache24-mod_cgid-2.4.29-7.7.3.cpanel.x86_64 conflicts ea-apache24-mod_cgi
--> Finished Dependency Resolution
Error: ea-apache24-mod_cgid conflicts with ea-apache24-mod_mpm_prefork-2.4.29-7.7.3.cpanel.x86_64
Error: ea-apache24-mod_mpm_worker conflicts with ea-apache24-mod_cgi-2.4.29-7.7.3.cpanel.x86_64
Error: ea-apache24-mod_cgi conflicts with ea-apache24-mod_cgid-2.4.29-7.7.3.cpanel.x86_64
Error: ea-apache24-mod_mpm_worker conflicts with ea-apache24-mod_mpm_prefork-2.4.29-7.7.3.cpanel.x86_64
Error: ea-apache24-mod_mpm_prefork conflicts with ea-apache24-mod_mpm_worker-2.4.29-7.7.3.cpanel.x86_64
Error: ea-apache24-mod_cgi conflicts with ea-apache24-mod_mpm_worker-2.4.29-7.7.3.cpanel.x86_64
Error: ea-apache24-mod_mpm_prefork conflicts with ea-apache24-mod_cgid-2.4.29-7.7.3.cpanel.x86_64
Error: ea-apache24-mod_cgid conflicts with ea-apache24-mod_cgi-2.4.29-7.7.3.cpanel.x86_64
 
Last edited by a moderator:

cPWilliamL

cP Technical Analyst II
Staff member
May 15, 2017
258
30
103
America
cPanel Access Level
Root Administrator
Hi @PeteS,

It looks like there are conflicts with packages which support threading; mod_cgi and mod_mpm_prefork are not threaded, mod_cgid and http2 are threaded. The mod_cgi package is preventing mod_mpm_worker from being installed because mod_cgid cannot be installed, as the two cgi(d) packages conflict due to threading.

Could you ensure mod_cgi is also removed when trying to install event and http2?

Thanks,
 

PeteS

Well-Known Member
Jun 8, 2017
235
48
28
Oregon
cPanel Access Level
Root Administrator
Could you ensure mod_cgi is also removed when trying to install event and http2?

Thanks,
If you notice at the top, WHM sets up properly, to remove prefork, cgi, and ruid2, and to install event, cgid, and http2, but on running review, it can't sort out the dependencies properly and won't allow it.

Same happens in yum shell.

Same happens with other types of changes (see the other sited thread which describe the same issues with screne shots).

This is not just a problem with my server install or I would open an incident; it appears to be a problem in cPanel and/or yum.
 
Last edited:

PeteS

Well-Known Member
Jun 8, 2017
235
48
28
Oregon
cPanel Access Level
Root Administrator
Home > Software > Install an RPM (looks to just implement yum shell command) does the same thing if I try to install http2, or event, or cgid.

Example:

Loaded plugins: fastestmirror, langpacks, universal-hooks
Loading mirror speeds from cached hostfile
* EA4: 69.72.212.11
* cpanel-addons-production-feed: 69.72.212.11
* base: mirror.metrocast.net
* extras: mirror.metrocast.net
* updates: mirror.metrocast.net
Resolving Dependencies
--> Running transaction check
---> Package ea-apache24-mod_mpm_event.x86_64 0:2.4.29-7.7.3.cpanel will be installed
--> Processing Dependency: ea-apache24-mod_cgid for package: ea-apache24-mod_mpm_event-2.4.29-7.7.3.cpanel.x86_64
--> Running transaction check
---> Package ea-apache24-mod_cgid.x86_64 0:2.4.29-7.7.3.cpanel will be installed
--> Processing Conflict: ea-apache24-mod_cgi-2.4.29-7.7.3.cpanel.x86_64 conflicts ea-apache24-mod_cgid
--> Processing Conflict: ea-apache24-mod_cgi-2.4.29-7.7.3.cpanel.x86_64 conflicts ea-apache24-mod_mpm_event
--> Processing Conflict: ea-apache24-mod_mpm_prefork-2.4.29-7.7.3.cpanel.x86_64 conflicts ea-apache24-mpm = threaded
--> Processing Conflict: ea-apache24-mod_mpm_prefork-2.4.29-7.7.3.cpanel.x86_64 conflicts ea-apache24-mod_mpm_event
--> Processing Conflict: ea-apache24-mod_mpm_prefork-2.4.29-7.7.3.cpanel.x86_64 conflicts ea-apache24-mod_cgid
--> Processing Conflict: ea-apache24-mod_mpm_event-2.4.29-7.7.3.cpanel.x86_64 conflicts ea-apache24-mpm = forked
--> Processing Conflict: ea-apache24-mod_mpm_event-2.4.29-7.7.3.cpanel.x86_64 conflicts ea-apache24-mod_mpm_prefork
--> Processing Conflict: ea-apache24-mod_mpm_event-2.4.29-7.7.3.cpanel.x86_64 conflicts ea-apache24-mod_cgi
--> Processing Conflict: ea-apache24-mod_cgid-2.4.29-7.7.3.cpanel.x86_64 conflicts ea-apache24-mod_mpm_prefork
--> Processing Conflict: ea-apache24-mod_cgid-2.4.29-7.7.3.cpanel.x86_64 conflicts ea-apache24-mod_cgi
--> Finished Dependency Resolution
Error: ea-apache24-mod_mpm_event conflicts with ea-apache24-mod_mpm_prefork-2.4.29-7.7.3.cpanel.x86_64
Error: ea-apache24-mod_mpm_event conflicts with ea-apache24-mod_cgi-2.4.29-7.7.3.cpanel.x86_64
Error: ea-apache24-mod_mpm_prefork conflicts with ea-apache24-mod_cgid-2.4.29-7.7.3.cpanel.x86_64
Error: ea-apache24-mod_cgi conflicts with ea-apache24-mod_mpm_event-2.4.29-7.7.3.cpanel.x86_64
Error: ea-apache24-mod_mpm_prefork conflicts with ea-apache24-mod_mpm_event-2.4.29-7.7.3.cpanel.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
(XID gdf7re) The system failed to execute yum with the arguments “--assumeyes --config /etc/yum.conf install ea-apache24-mod_mpm_event --disablerepo=epel” because of an error: The “/usr/bin/yum” command (process 1180) reported error number 1 when it ended. : Error: ea-apache24-mod_mpm_event conflicts with ea-apache24-mod_mpm_prefork-2.4.29-7.7.3.cpanel.x86_64
Error: ea-apache24-mod_cgid conflicts with ea-apache24-mod_mpm_prefork-2.4.29-7.7.3.cpanel.x86_64
Error: ea-apache24-mod_mpm_event conflicts with ea-apache24-mod_cgi-2.4.29-7.7.3.cpanel.x86_64
Error: ea-apache24-mod_cgi conflicts with ea-apache24-mod_cgid-2.4.29-7.7.3.cpanel.x86_64
Error: ea-apache24-mod_cgid conflicts with ea-apache24-mod_cgi-2.4.29-7.7.3.cpanel.x86_64
Error: ea-apache24-mod_mpm_prefork conflicts with ea-apache24-mod_cgid-2.4.29-7.7.3.cpanel.x86_64
Error: ea-apache24-mod_cgi conflicts with ea-apache24-mod_mpm_event-2.4.29-7.7.3.cpanel.x86_64
Error: ea-apache24-mod_mpm_prefork conflicts with ea-apache24-mod_mpm_event-2.4.29-7.7.3.cpanel.x86_64
 

PeteS

Well-Known Member
Jun 8, 2017
235
48
28
Oregon
cPanel Access Level
Root Administrator
UPDATE
In attempting to use yum to remove the unwanted prefork I see this:
Keeping package: ea-apache24-mod_mpm_prefork-2.4.29-7.7.3.cpanel.x86_64 due to ea-apache24-2.4.29-7.7.3.cpanel.x86_64
It's as though a special cPanel version is preventing it from being removed. I hesitate to start hacking away at the Apache install until I get what I want because I want the WHM interface to still work. ;)

I have also opened a support ticket as well, but I feel it needs to be addressed here since it does not appear to be anything wrong with my specific server. (Incident #9267607)
 

PeteS

Well-Known Member
Jun 8, 2017
235
48
28
Oregon
cPanel Access Level
Root Administrator
You can mark this solved.

cPanel tech support was able to find the problem, though it took some time. Apparently non-default settings in /etc/yum.conf were the culprit.

These two settings in /etc/yum.conf are not put into place by cPanel:

remove_leaf_only=1
groupremove_leaf_only=1

Lines for these variables do not exist with a base OS or cPanel installation, meaning that they're set to the defaults (disabled).
After removing, commenting out, or setting these to "0" all is well. Packages can be changed from CLI and WHM.
 
  • Like
Reactions: cPWilliamL