Fix php error Message: Module 'pdo_mysql' already loaded

Operating System & Version
Centos 7.8
cPanel & WHM Version
v88.0.13

DrDavid

Registered
Jul 25, 2020
1
0
0
Israel
cPanel Access Level
Website Owner
Hi everyone,

Since the upgrade of PHP to 7.2 the codeigniter webapp keeps showing this error message:

A PHP Error was encountered
Severity: Core Warning
Message: Module 'pdo_mysql' already loaded
Filename: Unknown


Although PHP error reporting is turned OFF in php.ini and edited /etc/security/limits.conf to set hard core 0.
Tried to change back PHP version - didn't help.
Tried to identify multiple PDO modules being loaded in php.ini - negative.

Nothing helped.

1595670404690.png
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,295
1,273
313
Houston
This really only happens if you're attempting to load the module twice. I see that you checked for it being loaded in the php.ini multiple times:
Tried to identify multiple PDO modules being loaded in php.ini - negative.
but where exactly did you look?