Problems activating a couple of PHP extensions in EasyApache 4

Operating System & Version
CENTOS 7.7 kvm [vps]
cPanel & WHM Version
v86.0.4

aztopdavid

Well-Known Member
Jan 1, 2016
53
9
58
Arizona
cPanel Access Level
Root Administrator
A WordPress plugin was complaining about the lack of a couple of PHP extensions ("iconv" and "mbstring"), so in WHM, I went into WHM > Software > EasyApache 4 > Customize > PHP Extensions and found that both of those were turned off. I clicked to activate each of those, saved a profile (just in case), restarted Apache and then, when I would try to access EasyApache 4 in WHM, I got a fatal error and couldn't get to EasyApache. I started an SSH session and ran the upcp script as well as yum update, but was still getting the fatal error when trying to access EasyApache in WHM. Here's a tail of the error_log file:

[2020-02-25 13:55:26 -0700] warn [whostmgrd] The subprocess (whostmgr (whostmgr7)) exited with an error: The subprocess reported error number 2 when it ended. at /usr/local/cpanel/Cpanel/Server/Handlers/SubProcess.pm line 251.
Cpanel::Server::Handlers::SubProcess::_report_subprocess_errors(Cpanel::Server::Handlers::SubProcess=HASH(0x21a9c68)) called at /usr/local/cpanel/Cpanel/Server/Handlers/SubProcess.pm line 109
Cpanel::Server::Handlers::SubProcess::handler(Cpanel::Server::Handlers::SubProcess=HASH(0x21a9c68), "subprocess_name", "whostmgr (whostmgr7)", "subprocess_read_handle", GLOB(0x2047680), "subprocess_write_handle", GLOB(0x21eb570), "subprocess_pid_to_reap", ...) called at cpsrvd.pl line 7411
cpanel::cpsrvd::cpHandler("app", "whostmgr", "json", 0, "document", "./scripts7/EasyApache4") called at cpsrvd.pl line 6537
cpanel::cpsrvd::dodoc_whostmgrd() called at cpsrvd.pl line 1984
cpanel::cpsrvd::dodoc(HASH(0x129a998)) called at cpsrvd.pl line 1729
cpanel::cpsrvd::handle_one_connection(6) called at cpsrvd.pl line 1109
cpanel::cpsrvd::script() called at cpsrvd.pl line 429

However, I waited a bit longer and now I'm able to get into the EasyApache screens in WHM, but those two PHP extensions still appear to be inactive (the slider is grey and slid to the left). I uploaded a PHPINFO() file to the site and here's the mention of those two extensions in the details of the configure command:

'--with-iconv' ... enable-mbstring=shared

I'm not sure I want to try clicking on the activation sliders for those in the PHP extensions configuration screen for EasyApache, lest I cause more errors. Any suggestions about how I should proceed, assuming that I'd like to get those extensions activated for the plugin?
 

quietFinn

Well-Known Member
Feb 4, 2006
1,273
113
193
Finland
cPanel Access Level
Root Administrator
When you activated the extensions in EA did you click Provision?
And if you provision a profile you don't have to restart Apache after that.
 

HostNoc

Well-Known Member
Feb 20, 2020
45
4
8
Ontario
cPanel Access Level
Root Administrator
Hi

It seems after you saved a profile you did not provision that profile. Kindly go to EasyApache 4 and click on Available Profiles and select the profile you saved and click provision.

Regards