Problems activating a couple of PHP extensions in EasyApache 4
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?
-
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. 0 -
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 0 -
Oops -- no, I didn't. I was only in the "PHP extensions" menu and didn't see an action button, but had I clicked on "Review" then I would have. Thanks! 0 -
To confirm, you've got this resolved now correct? 0
Please sign in to leave a comment.
Comments
4 comments