sqlite and pdo_mysql errors after Apache 4 upgrade

maestroc

Well-Known Member
Aug 23, 2012
91
2
58
cPanel Access Level
Reseller Owner
We recently upgraded WHM to use Apache 4. After the upgrade one of the websites has started throwing 500 errors. If I turn on error reporting nothing shows up but if I look in the error_log I see this every time I try to access the page:

[03-Oct-2018 12:19:12 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/sqlite.so' - /opt/cpanel/ea-php56/root/usr/lib64/php/modules/sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0
[03-Oct-2018 12:19:12 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php56/root/usr/lib64/php/modules/pdo_mysql.so' - /opt/cpanel/ea-php56/root/usr/lib64/php/modules/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
[03-Oct-2018 12:19:12 UTC] PHP Warning: Module 'PDO' already loaded in Unknown on line 0
[03-Oct-2018 12:19:12 UTC] PHP Warning: Module 'pdo_sqlite' already loaded in Unknown on line 0
[03-Oct-2018 12:19:12 UTC] PHP Warning: Module 'PDO' already loaded in Unknown on line 0
[03-Oct-2018 12:19:12 UTC] PHP Warning: Module 'pdo_sqlite' already loaded in Unknown on line 0


Things I have tried:
  • I renamed the existing php.ini files that were in the home folder and in the /administrator folders.
  • I tried turning on error reporting both in the Joomla configuration file and also in the cpanel php options (nothing showed up either way).
  • I removed the existing .htaccess file
None of these things changed anything. I still get a 500 error when trying to access /administrator but the front end of the site loads fine.

My guess on this is that when the new versions of php were installed that some module or setting was not set up correctly to mimick the old PHP5.5 setup. I now have it temporarily at 5.6 with the intent to go up to 7 once this error message is fixed. Switching to 7 right now has no effect.

Any ideas of other things to try would be greatly appreciated. Thank you!
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
Hi @maestroc


Can you confirm whether or not you actually have pdo_mysql and sqlite installed for php 5.6? You can do this by checking in WHM>>Software>>EasyApache 4 or using the CLI by doing the following:

Code:
rpm -qa |egrep 'pdo|sqlite'