Skip to main content

Is pdo mysql enabled?

Comments

9 comments

  • cPanelMichael
    Hello :) Check the output of the following command:
    php -m|grep pdo
    You should see "pdo_mysql" in the output if it's installed. Thank you.
    0
  • postcd
    Thx, this is only output Your command returns: pdo_sqlite
    please can You help how can i enable pdo_mysql? In WHM/EasyApache/Customize previously saved config/Exhaustive options, i had "PDO MySQL" ticked (so appears it was already installed). Is it possible i did not saved previous config and i actually do not have it enabled/installed? Is there any way to discover it without needing to build easyapache again?
    0
  • cPanelMichael
    Hello :) It's possible that you saved the build profile and did not build Apache. What versions of Apache and PHP are you using? You can find the previous EasyApache build logs in the following directory: /usr/local/cpanel/logs/easy/apache/ Thank you.
    0
  • vikramverma
    recently started using cPanel, PDO isn't enabled by default you need to add it in EasyApache there's some module which needs to be enabled to get mysqli and pdo work in cPanel
    0
  • postcd
    Hello, i tried to rebuild while selecting PDO MySQL option and saving the profile. But still im getting only this: # php -m|grep pdo pdo_sqlite ... httpd restarted
    0
  • cPanelMichael
    Hello :) What versions of Apache and PHP are you using? Thank you.
    0
  • postcd
    On this server i have: PHP 5.3.3 Apache/2.2.15 i submitted cpanel ticket for this #6896043 staff asked if can recompile apache, but i dont want that because on php 5.4 or on default config., some scripts did not worked.
    0
  • postcd
    Update: cPanel staff discoverred that the line that includes pdo_mysql in global php.ini was malformed: extension= "pdo_mysql.so" as opposed to extension = "pdo_mysql.so" then it started WORKING.
    0
  • cPanelMichael
    I'm happy to see the issue is now resolved. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.