SOLVED PHP 7.2 Keeps getting re-enabled

Neal_C

Member
May 30, 2019
8
1
3
United States
cPanel Access Level
Root Administrator
I have woken up to High Importance alerts everyday for a week now. Every time, one of the issues is PHP 7.2 is enabled. I have deleted every single profile in EasyApache that contains any PHP reference below 8.0. And before doing this, I had a lot of code to change in old WP Themes and non-WordPress code that had to be tested. It was a big chore and I did it. But even more so, I have saved the profile and provisioned it repeatedly (NO PHP below 8.0). I have multiple profiles (some with profane names) that have been enabled.

I have checked every single domain and nothing in WHM references PHP below 8.0. What's worse, is that I had moved to nothign less than PHP 7.4 months ago (maybe a year). Has anyone else had this kind of middle-of-the-night PHP reversion in EasyApache?

At this point, it is beyond annoying. Is this something where I need to open a support ticket or has anyone else faced this and corrected the issue? One of the biggest reasons I have WHM is make server maintenance easier and I am now at the point of spending more time on this EasyApache reversion than I did getting ready for that awesome Elevate script that moved from CentOS 7 to Alma.

Any help, advise or experience with this would be very much appreciated.
 
Last edited by a moderator:

Neal_C

Member
May 30, 2019
8
1
3
United States
cPanel Access Level
Root Administrator
Hey there! Can you run this command on the server and share the output?

Code:
rpm -qa | grep ea-php72
Whether I run it with sudo or as my normal user, it comes back with nothing. To be sure it wasn't an error I ran it like
Code:
rpm -qa | grep ea-php
and got all the various php80 and php81 packages. So it would seem there is no php72 to be installed.
 

Neal_C

Member
May 30, 2019
8
1
3
United States
cPanel Access Level
Root Administrator
Hey there! Can you run this command on the server and share the output?

Code:
rpm -qa | grep ea-php72
SO... This morning, I re-run the rpm command above that you had and 72 is back!

YESTERDAY:
sudo rpm -qa | grep ea-php72
produces nothing

TODAY:
ea-php72-php-xml-7.2.34-7.9.39.cpanel.x86_64
ea-php72-php-ftp-7.2.34-7.9.39.cpanel.x86_64
ea-php72-php-pdo-7.2.34-7.9.39.cpanel.x86_64
ea-php72-php-mbstring-7.2.34-7.9.39.cpanel.x86_64
ea-php72-php-litespeed-7.2.34-7.9.39.cpanel.x86_64
ea-php72-php-posix-7.2.34-7.9.39.cpanel.x86_64
ea-php72-php-common-7.2.34-7.9.39.cpanel.x86_64
ea-php72-php-mysqlnd-7.2.34-7.9.39.cpanel.x86_64
ea-php72-php-devel-7.2.34-7.9.39.cpanel.x86_64
ea-php72-pear-1.10.12-6.15.4.cpanel.noarch
ea-php72-php-cli-7.2.34-7.9.39.cpanel.x86_64
ea-php72-php-iconv-7.2.34-7.9.39.cpanel.x86_64
ea-php72-7.2.34-2.2.43.cpanel.x86_64
ea-php72-runtime-7.2.34-2.2.43.cpanel.x86_64
 

JohnD60

Member
Jul 23, 2008
6
0
51
Cobourg, Canada
I have the same issue. I run Easy Apache to remove PHP 7.2 then overnight it's back again with a recommendation that PHP 7.2 should be removed. This has been happening for a couple of weeks.
 

Neal_C

Member
May 30, 2019
8
1
3
United States
cPanel Access Level
Root Administrator
I have the same issue. I run Easy Apache to remove PHP 7.2 then overnight it's back again with a recommendation that PHP 7.2 should be removed. This has been happening for a couple of weeks.
Did you have PHP7.2 turned on purposefully before now? What's most curious to me is that I had whittled all the PHP down to 7.4 several months ago (maybe a year ago) and haven't had 7.2 on for any site for any reason. I also double-checked and not a single domain / site has anything but PHP 8.0 or 8.1 turned on.

Well, if no one has any ideas for how to help, I'll open a support ticket.

I'm running AlmaLinux — 8.7
WHM/CPanel — 106.0.13

I ran the CPanel Elevate script to move off of CentOS 7 a few weeks ago.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,286
2,434
363
cPanel Access Level
Root Administrator
We were able to determine that WordPress Manager was installed on the machine, which is an older tool that has been deprecated for a few years:


Once you remove that tool, PHP 7.2 will stop being reinstalled.

@JohnD60 - can you check and see if that tool exists on your machine as well?
 

JohnD60

Member
Jul 23, 2008
6
0
51
Cobourg, Canada
We were able to determine that WordPress Manager was installed on the machine, which is an older tool that has been deprecated for a few years:


Once you remove that tool, PHP 7.2 will stop being reinstalled.

@JohnD60 - can you check and see if that tool exists on your machine as well?