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.

Php library change

Discussion in 'General Discussion' started by Zabidin, Jan 6, 2016.

  1. Zabidin

    Zabidin Active Member

    Joined:
    Jan 6, 2016
    Messages:
    28
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    Malaysia
    cPanel Access Level:
    Root Administrator
    Hi,

    After cpanel doing auto update, our client experience an error on their website. After checking we found this:

    Code:
    Client API version => 5.6.28
    Client API library version => 5.6.28
    Client API header version => 5.5.42
    
    How to fix this? We already compare to other cpanel in our server. It's not gap like this.
    Please advice.

    This the error show on website:
    Code:
    Warning: mysql_connect(): Headers and client library minor version mismatch. Headers:50542 Library:50628 in /home/domain/public_html/domain.com/system/database/mysql.php on line 6
    Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/domain/public_html/domain.com/system/database/mysql.php:6) in /home/domain/public_html/domain.com/system/library/session.php on line
    11Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/domain/public_html/domain.com/system/database/mysql.php:6) in /home/domain/public_html/domain.com/system/library/session.php on line
    11Warning: Cannot modify header information - headers already sent by (output started at /home/domain/public_html/domain.com/system/database/mysql.php:6) in /home/domain/public_html/domain.com/index.php on line
    173Warning: Cannot modify header information - headers already sent by (output started at /home/domain/public_html/domain.com/system/database/mysql.php:6) in /home/domain/public_html/domain.com/system/library/currency.php on line 45
     
    #1 Zabidin, Jan 6, 2016
    Last edited by a moderator: Jan 7, 2016
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Are you using a custom version of MySQL? Please post the output from the following commands:

    Code:
    mysql --version
    cat /var/cpanel/rpm.versions.d/local.versions
    Thank you.
     
  3. Zabidin

    Zabidin Active Member

    Joined:
    Jan 6, 2016
    Messages:
    28
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    Malaysia
    cPanel Access Level:
    Root Administrator
    Here is output:
    Code:
    root@server2 [~]# mysql --version
    mysql  Ver 14.14 Distrib 5.6.28, for Linux (x86_64) using  EditLine wrapper
    root@server2 [~]# cat /var/cpanel/rpm.versions.d/local.versions
    ---
    file_format:
      version: 2
    install_targets: {}
    
    rpm_locations: {}
    
    srpm_sub_packages: {}
    
    srpm_versions: {}
    
    target_settings:
      clamav: installed
      easy-tomcat7: uninstalled
      munin: installed
    url_templates: {}
    
    root@server2 [~]#
    
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Did you recently upgrade the version of MySQL on this system? If so, could you rebuild Apache/PHP via EasyApache and let us know if the issue persists?

    Thank you.
     
  5. ecommercesussex

    Joined:
    Sep 19, 2013
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I've got the same issue. New server, most of the sites I moved over from testing don't work.

    mysql Ver 15.1 Distrib 10.0.24-MariaDB, for Linux (x86_64) using readline 5.1

    Running Cloudlinux + cPanel
     
  6. ecommercesussex

    Joined:
    Sep 19, 2013
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    As a follow up to this. When I did easy apache, I found the following problem with mysql.

    Could not compile a simple mysql.h program: -compile- -output-

    The error was listed under Mysql and Mysql improved extension with a "Click Here for Details".
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You can use the following command to ensure the required RPMs are installed:

    Code:
    /scripts/check_cpanel_rpms --fix
    If that installs some missing RPMS, you can then proceed to run EasyApache again.

    Thank you.
     
  8. ecommercesussex

    Joined:
    Sep 19, 2013
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Im on my 8th compile now.

    dryrun test 'MySQL Compile Test' did not return true
     
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
Loading...

Share This Page