The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PDO and pdo_mysql

Discussion in 'EasyApache' started by byrcar, May 5, 2015.

  1. byrcar

    byrcar Member

    Joined:
    May 6, 2014
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I'm getting the following errors:
    Code:
    PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20121212/pdo.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20121212/pdo.so: cannot open shared object file: No such file or directoryin Unknown on line 0
    
    PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20121212/pdo_mysql.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20121212/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
    I've marked to install both in EasyApache and built a few times with no result.

    php -m shows that both are installed:
    Code:
    # php -m
    [PHP Modules]
    bcmath
    bz2
    calendar
    Core
    ctype
    curl
    date
    dom
    ereg
    filter
    ftp
    gd
    hash
    iconv
    imap
    intl
    ionCube Loader
    json
    libxml
    mbstring
    mcrypt
    mysql
    mysqli
    mysqlnd
    openssl
    pcre
    PDO
    pdo_mysql
    pdo_sqlite
    Phar
    posix
    Reflection
    session
    SimpleXML
    soap
    sockets
    SPL
    sqlite3
    standard
    tidy
    tokenizer
    xml
    xmlreader
    xmlrpc
    xmlwriter
    xsl
    zip
    zlib
    
    [Zend Modules]
    the ionCube PHP Loader
    "find -name pdo.so" finds a file, however "find -name pdo_mysql.so" finds nothing.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    It's likely you are using a custom php.ini file within the account's home or public_html directory. Try disabling this file to see if the issue persists. You can then copy /usr/local/lib/php.ini to the account if you want to edit the version of the file with the correct paths.

    Thank you.
     
    byrcar likes this.
  3. byrcar

    byrcar Member

    Joined:
    May 6, 2014
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thanks for the response!
    There were indeed custom php.ini files (in the wp-admin directory), presumeably created by wordpress.
    I commented both of the pdo drivers out in the custom php.ini and it does appear to have resolved the error message.
    Strangely, this configuration had been working without error for quite some time until we upgraded to Centos 6.6.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page