Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

sqlite and pdo_mysql errors after Apache 4 upgrade

Discussion in 'EasyApache' started by maestroc, Oct 3, 2018.

  1. maestroc

    maestroc Well-Known Member

    Joined:
    Aug 23, 2012
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    6
    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!
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,072
    Likes Received:
    215
    Trophy Points:
    173
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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'
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice