Operating System & Version
Linux
cPanel & WHM Version
CENTOS 7.8 kvm v86.0.18

kawonice

Member
May 8, 2020
6
0
1
Nigeria
cPanel Access Level
Root Administrator
Good Day,

Please I have this issue with my wordpress website and when I checked on my error_log, I found this error clogging the whole log

PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/mbstring.so' - /opt/cpanel/ea-php56/root/usr/lib64/php/modules/mbstring.so: cannot open shared object file: No such file or directory in Unknown on line 0

Initially when I upgraded my website's PHP version from 5.6 to 7.3/7.4. I do lock me out, so I have to change the version back to PHP 5.6 again to make the site run again, but I later noticed that sometimes the website get hanged and then I decided to check the error log and I saw tons of file with .so extension problem.

Please what do I need to do?
And I want to actually upgrade my PHP version to PHP 7.3 or PHP 7.4. What do I need to do?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
It looks like the issue is that mbstring isn't added for php 7.4 - you'd need to add this through WHM>>Software>>EasyApache 4 or by running the following:

Code:
yum -y install ea-php74-php-mbstring.x86_64
Was there a specific issue on PHP 7.3?
 

kawonice

Member
May 8, 2020
6
0
1
Nigeria
cPanel Access Level
Root Administrator
There was issue on all the PHP 7.1+ series, one I activate them on MultiPHP Manager, the site will lock me out automatically until I revert back to earlier version PHP 5.6.

Let me post all the files affected


PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/imap.so' - /opt/cpanel/ea-php56/root/usr/lib64/php/modules/imap.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/mbstring.so' - /opt/cpanel/ea-php56/root/usr/lib64/php/modules/mbstring.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/mcrypt.so' - /opt/cpanel/ea-php56/root/usr/lib64/php/modules/mcrypt.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/soap.so' - /opt/cpanel/ea-php56/root/usr/lib64/php/modules/soap.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/sockets.so' - /opt/cpanel/ea-php56/root/usr/lib64/php/modules/sockets.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/bcmath.so' - /opt/cpanel/ea-php56/root/usr/lib64/php/modules/bcmath.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/calendar.so' - /opt/cpanel/ea-php56/root/usr/lib64/php/modules/calendar.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/curl.so' - /opt/cpanel/ea-php56/root/usr/lib64/php/modules/curl.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/gd.so' - /opt/cpanel/ea-php56/root/usr/lib64/php/modules/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0

I am really tired of the whole thing as at now.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
one I activate them on MultiPHP Manager, the site will lock me out automatically until I revert back to earlier version PHP 5.6.
What do you mean by lock you out? Can you explain errors you're receiving specifically? What's noted in the apache error logs when this happens? You can find it at /etc/apache2/logs/error_log

Let me post all the files affected
All of those are modules associated with PHP 5.6 - do you have the corresponding modules installed for PHP 5.6? This can be seen in WHM>>Software>>EasyApache4 -> Customize under your current profile.
 

kawonice

Member
May 8, 2020
6
0
1
Nigeria
cPanel Access Level
Root Administrator
Thanks for your prompt reply,

The error log I noted in the apache log file is extracted below. I just picked out this ones. It is so voluminous but they bear similar resemblance to the below

[Wed May 06 16:15:24.244614 2020] [mpm_worker:notice] [pid 27781:tid 47397531649088] AH00297: SIGUSR1 received. Doing graceful restart
[Wed May 06 16:15:24.337840 2020] [mpm_worker:notice] [pid 27781:tid 47397531649088] AH00292: Apache/2.4.43 (cPanel) OpenSSL/1.1.1g mod_bwlimited/1.4 configured -- resuming normal operations
[Wed May 06 16:15:24.337877 2020] [core:notice] [pid 27781:tid 47397531649088] AH00094: Command line: '/usr/sbin/httpd'

[Thu May 07 04:16:11.425420 2020] [access_compat:error] [pid 2666:tid 47397764720384] [client 62.151.182.209:42942] AH01797: client denied by server configuration: /.../.../public_html/xmlrpc.php
[Thu May 07 04:16:12.619877 2020] [access_compat:error] [pid 21071:tid 47397851891456] [client 62.151.182.209:43158] AH01797: client denied by server configuration: /.../.../public_html/xmlrpc.php, referer: https://...//xmlrpc.php

[Thu May 07 05:54:56.277926 2020] [:notice] [pid 26222:tid 47064801727552] ModSecurity: Status engine is currently disabled, enable it by set SecStatusEngine to On.
[Thu May 07 05:54:56.278478 2020] [suexec:notice] [pid 26222:tid 47064801727552] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu May 07 05:54:56.316783 2020] [mpm_worker:notice] [pid 26225:tid 47064801727552] AH00292: Apache/2.4.43 (cPanel) OpenSSL/1.1.1g mod_bwlimited/1.4 configured -- resuming normal operations

[Fri May 08 18:55:55.399727 2020] [core:error] [pid 9271:tid 47065024292608] [client 213.149.103.132:58056] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

[Fri May 08 18:56:22.680923 2020] [access_compat:error] [pid 9269:tid 47065026393856] [client 35.229.45.205:46416] AH01797: client denied by server configuration: /../../public_html/xmlrpc.php



I installed all the modules or is there anything that I am doing wrong. When some pages are loaded it just throws up Error 500 (Internal Server Error).
Please I need serious assistance.
 
Last edited:

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
None of these errors seem to be related. Are you indicating that you did install the modules for PHP 5.6? Really I'd be more concerned about what is happening specifically when you switch to PHP 7.4 - lets focus on that?

So when you switch and you "get locked out" can you show me the errors output in the apache error log for that?
 

kawonice

Member
May 8, 2020
6
0
1
Nigeria
cPanel Access Level
Root Administrator
None of these errors seem to be related. Are you indicating that you did install the modules for PHP 5.6? Really I'd be more concerned about what is happening specifically when you switch to PHP 7.4 - lets focus on that?

So when you switch and you "get locked out" can you show me the errors output in the apache error log for that?
it is pasted below

[core:notice] [pid 1174:tid 47555670066240] AH00094: Command line: '/usr/sbin/httpd'
[ssl:error] [pid 4637:tid 47555960375040] (70007)The timeout specified has expired: [client 139.59.10.121:55842] AH01985: error reading response from OCSP server
[ssl:error] [pid 4637:tid 47555960375040] AH01941: stapling_renew_response: responder error
[core:error] [pid 4639:tid 47555960375040] [client 139.59.10.121:56540] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[core:error] [pid 4639:tid 47555960375040] [client 139.59.10.121:56540] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
The only one of these That I believe would cause you to be unable to view the site would be the redirect issue - is the site redirected to another site? But both of these would occur regardless of PHP version as far as I am aware.
 

kawonice

Member
May 8, 2020
6
0
1
Nigeria
cPanel Access Level
Root Administrator
The only one of these That I believe would cause you to be unable to view the site would be the redirect issue - is the site redirected to another site? But both of these would occur regardless of PHP version as far as I am aware.
That is the issue when I switch to PHP 5.6, i could access the site, the only issue that I experience on the site is that when people tends to navigate to some pages after some time it will just freeze and continue loading until you go back to the home page.
But when I check the error log file on the public_html, i found the issue to be related to mysql soap files about 9 of them that I posted at the beginning of this thread. However despite that I am able to enter into the site. But on switching to any of the PHP 7 version the only thing I see on the site is

"There has been a critical error on your website. Please check your site admin email inbox for instructions."
On checking the error log file on the public_html I found that they also have related issue as below, with only 5 (.so) files affected

PHP Warning: PHP Startup: Unable to load dynamic library 'mcrypt.so' (tried: /opt/cpanel/ea-php74/root/usr/lib64/php/modules/mcrypt.so (/opt/cpanel/ea-php74/root/usr/lib64/php/modules/mcrypt.so: cannot open shared object file: No such file or directory), /opt/cpanel/ea-php74/root/usr/lib64/php/modules/mcrypt.so.so (/opt/cpanel/ea-php74/root/usr/lib64/php/modules/mcrypt.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

PHP Warning: PHP Startup: Unable to load dynamic library 'mysqlnd_mysql.so' (tried: /opt/cpanel/ea-php74/root/usr/lib64/php/modules/mysqlnd_mysql.so (/opt/cpanel/ea-php74/root/usr/lib64/php/modules/mysqlnd_mysql.so: cannot open shared object file: No such file or directory), /opt/cpanel/ea-php74/root/usr/lib64/php/modules/mysqlnd_mysql.so.so (/opt/cpanel/ea-php74/root/usr/lib64/php/modules/mysqlnd_mysql.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

PHP Warning: PHP Startup: Unable to load dynamic library 'mysqlnd_mysqli.so' (tried: /opt/cpanel/ea-php74/root/usr/lib64/php/modules/mysqlnd_mysqli.so (/opt/cpanel/ea-php74/root/usr/lib64/php/modules/mysqlnd_mysqli.so: cannot open shared object file: No such file or directory), /opt/cpanel/ea-php74/root/usr/lib64/php/modules/mysqlnd_mysqli.so.so (/opt/cpanel/ea-php74/root/usr/lib64/php/modules/mysqlnd_mysqli.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_mysqlnd.so' (tried: /opt/cpanel/ea-php74/root/usr/lib64/php/modules/pdo_mysqlnd.so (/opt/cpanel/ea-php74/root/usr/lib64/php/modules/pdo_mysqlnd.so: cannot open shared object file: No such file or directory), /opt/cpanel/ea-php74/root/usr/lib64/php/modules/pdo_mysqlnd.so.so (/opt/cpanel/ea-php74/root/usr/lib64/php/modules/pdo_mysqlnd.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

PHP Warning: PHP Startup: Unable to load dynamic library 'wddx.so' (tried: /opt/cpanel/ea-php74/root/usr/lib64/php/modules/wddx.so (/opt/cpanel/ea-php74/root/usr/lib64/php/modules/wddx.so: cannot open shared object file: No such file or directory), /opt/cpanel/ea-php74/root/usr/lib64/php/modules/wddx.so.so (/opt/cpanel/ea-php74/root/usr/lib64/php/modules/wddx.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

[08-May-2020 21:23:41 UTC] PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /.../.../public_html/wp-includes/wp-db.php:1661


Could it be a database issue?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
No it looks like you don't have the correct modules installed on PHP 7.4 what is the output of the following:
Code:
rpm -qa |egrep 'mysqlnd|pdo|wddx|mcrypt'|grep php74
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
I did forget to mention that mcrypt is not available for PHP 7.4 right now, are these modules being called from the .htaccess or the php.ini file in the domain's document root? You have mysqlnd for php 7.4 so there shouldn't be an issue with it being recognized, mcrypt and wddx aren't available (mcrypt just not on 7.4 and wddx not available in general)