Announcement

Collapse
No announcement yet.

problem on Headers and client library minor version mismatch

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • problem on Headers and client library minor version mismatch

    hello sir
    after i enabled on cpanel MySQL Governor.
    i have this error :

    Warning: mysqli::mysqli() [mysqli.mysqli]: Headers and client library minor version mismatch. Headers:100023 Library:50628

    need help !

  • #2
    Hi,

    Where is it happening? What was done with enabled MySQL Governor, any mysql versions changes? What mysql version is currently used? And, is native PHP used or alternate for problematic account?

    Comment


    • #3
      hello sir
      i am a bit amature on cloudlinux
      i search on internet and i installed MySQL Governor
      user have native php
      sql is 5.5
      and when you enter on admin error will be show


      tell me command and i will tell you results on my server
      thanks

      Comment


      • #4
        Hello,

        Please try running /scripts/easyapache and just recompile php.

        Comment


        • #5
          hello
          thank you for your reply
          this not fix problem !
          error shown after recompile apache

          Comment


          • #6
            Ok, now please show me following:
            as root

            Code:
            php -v
            
            php -i | grep ini
            
            mysql -v
            now become user and show this:

            Code:
            su -l azurcomp -s /bin/bash
            
            php -v
            
            php -i | grep ini
            
            php -i | grep mysqli

            Comment


            • #7
              hello
              as root

              root@server2 [~]# php -v
              PHP 5.3.29 (cli) (built: Feb 3 2016 08:28:10)
              Copyright (c) 1997-2014 The PHP Group
              Zend Engine v2.3.0, Copyright (c) 1998-2014 Zend Technologies
              with the ionCube PHP Loader v4.7.5, Copyright (c) 2002-2014, by ionCube Ltd., and
              with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies
              with Suhosin v0.9.33, Copyright (c) 2007-2012, by SektionEins GmbH

              root@server2 [~]# php -i | grep ini
              Configuration File (php.ini) Path => /usr/local/lib
              Loaded Configuration File => /usr/local/lib/php.ini
              Scan this dir for additional .ini files => (none)
              Additional .ini files parsed => (none)
              disable_functions => apache_child_terminate, ini_set(), apache_setenv, define_syslog_variables, phpinfo, escapeshellarg, escapeshellcmd, eval, show_source, exec, fp, fput, ftp_connect, ftp_exec, ftp_get, ftp_login, ftp_nb_fput, ftp_put, ftp_raw, ftp_rawlist, highlight_file, ini_alter, ini_get_all, ini_restore, inject_code, mysql_pconnect, openlog, passthru, php_uname, phpAds_remoteInfo, phpAds_XmlRpc, phpAds_xmlrpcDecode, phpAds_xmlrpcEncode, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, posix_setuid, posix_uname, proc_close, proc_get_status, proc_nice, proc_open, proc_terminate, shell_exec, syslog, system, xmlrpc_entity_decode => apache_child_terminate, ini_set(), apache_setenv, define_syslog_variables, phpinfo, escapeshellarg, escapeshellcmd, eval, show_source, exec, fp, fput, ftp_connect, ftp_exec, ftp_get, ftp_login, ftp_nb_fput, ftp_put, ftp_raw, ftp_rawlist, highlight_file, ini_alter, ini_get_all, ini_restore, inject_code, mysql_pconnect, openlog, passthru, php_uname, phpAds_remoteInfo, phpAds_XmlRpc, phpAds_xmlrpcDecode, phpAds_xmlrpcEncode, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, posix_setuid, posix_uname, proc_close, proc_get_status, proc_nice, proc_open, proc_terminate, shell_exec, syslog, system, xmlrpc_entity_decode
              user_ini.cache_ttl => 300 => 300
              user_ini.filename => .user.ini => .user.ini
              Classes => AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueException
              open sourced by => Epinions.com
              root@server2 [~]#

              root@server2 [~]# mysql -v
              Welcome to the MariaDB monitor. Commands end with ; or g.
              Your MariaDB connection id is 456573
              Server version: 10.0.20-MariaDB-cll-lve MariaDB Server

              Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others.

              Reading history-file /root/.mysql_history
              Type help; or h for help. Type c to clear the current input statement.

              MariaDB [(none)]>

              !!!! i downgraded from mariaDB but why it is mariaDB !!!!!

              now as customer

              root@server2 [~]# su -l azurcomp -s /bin/bash
              Attempting to create directory /home/azurcomp/perl5
              azurcomp@server2 [~]#

              azurcomp@server2 [~]# php -v
              PHP 5.3.29 (cli) (built: Feb 3 2016 08:28:10)
              Copyright (c) 1997-2014 The PHP Group
              Zend Engine v2.3.0, Copyright (c) 1998-2014 Zend Technologies
              with the ionCube PHP Loader v4.7.5, Copyright (c) 2002-2014, by ionCube Ltd., and
              with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies
              with Suhosin v0.9.33, Copyright (c) 2007-2012, by SektionEins GmbH
              azurcomp@server2 [~]#

              azurcomp@server2 [~]# php -i | grep ini
              Configuration File (php.ini) Path => /usr/local/lib
              Loaded Configuration File => /usr/selector.etc/php.ini
              Scan this dir for additional .ini files => (none)
              Additional .ini files parsed => (none)
              disable_functions => apache_child_terminate, ini_set(), apache_setenv, define_syslog_variables, phpinfo, escapeshellarg, escapeshellcmd, eval, show_source, exec, fp, fput, ftp_connect, ftp_exec, ftp_get, ftp_login, ftp_nb_fput, ftp_put, ftp_raw, ftp_rawlist, highlight_file, ini_alter, ini_get_all, ini_restore, inject_code, mysql_pconnect, openlog, passthru, php_uname, phpAds_remoteInfo, phpAds_XmlRpc, phpAds_xmlrpcDecode, phpAds_xmlrpcEncode, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, posix_setuid, posix_uname, proc_close, proc_get_status, proc_nice, proc_open, proc_terminate, shell_exec, syslog, system, xmlrpc_entity_decode => apache_child_terminate, ini_set(), apache_setenv, define_syslog_variables, phpinfo, escapeshellarg, escapeshellcmd, eval, show_source, exec, fp, fput, ftp_connect, ftp_exec, ftp_get, ftp_login, ftp_nb_fput, ftp_put, ftp_raw, ftp_rawlist, highlight_file, ini_alter, ini_get_all, ini_restore, inject_code, mysql_pconnect, openlog, passthru, php_uname, phpAds_remoteInfo, phpAds_XmlRpc, phpAds_xmlrpcDecode, phpAds_xmlrpcEncode, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, posix_setuid, posix_uname, proc_close, proc_get_status, proc_nice, proc_open, proc_terminate, shell_exec, syslog, system, xmlrpc_entity_decode
              user_ini.cache_ttl => 300 => 300
              user_ini.filename => .user.ini => .user.ini
              Classes => AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueException
              open sourced by => Epinions.com
              azurcomp@server2 [~]#

              azurcomp@server2 [~]# php -i | grep mysqli
              Configure Command => ./configure --disable-cgi --disable-fileinfo --enable-bcmath --enable-calendar --enable-ftp --enable-gd-native-ttf --enable-libxml --enable-magic-quotes --enable-mbstring --enable-pdo=shared --enable-soap --enable-sockets --enable-wddx --enable-zip --prefix=/usr/local --with-bz2 --with-curl=/opt/curlssl/ --with-curlwrappers --with-freetype-dir=/usr --with-gd --with-gettext --with-imap=/opt/php_with_imap_client/ --with-imap-ssl=/usr --with-jpeg-dir=/usr --with-kerberos --with-libdir=lib64 --with-libexpat-dir=/usr --with-libxml-dir=/opt/xml2 --with-libxml-dir=/opt/xml2/ --with-mcrypt=/opt/libmcrypt/ --with-mysql --with-mysqli --with-openssl=/usr --with-openssl-dir=/usr --with-pcre-regex=/opt/pcre --with-pdo-mysql=shared --with-pdo-sqlite=shared --with-pic --with-png-dir=/usr --with-sqlite=shared --with-tidy=/opt/tidy/ --with-xmlrpc --with-xpm-dir=/usr --with-xsl=/opt/xslt/ --with-zlib --with-zlib-dir=/usr
              mysqli
              mysqli.allow_local_infile => On => On
              mysqli.allow_persistent => On => On
              mysqli.default_host => no value => no value
              mysqli.default_port => 3306 => 3306
              mysqli.default_pw => no value => no value
              mysqli.default_socket => /var/tmp/mysql.sock => /var/tmp/mysql.sock
              mysqli.default_user => no value => no value
              mysqli.max_links => Unlimited => Unlimited
              mysqli.max_persistent => Unlimited => Unlimited
              mysqli.reconnect => Off => Off
              azurcomp@server2 [~]#

              thank you my bro
              if you want i can give you root login too
              thanks

              Comment


              • #8
                Yeah, the core of the issue is due to MariaDB used, and not mysql5.5 as you said. How did you install it? With governor or with cpanel WHM service?

                Now, the recommended solution from MariaDB is to start using mysqlnd driver: https://mariadb.com/kb/en/mariadb/in...ues-with-php5/

                Comment


                • #9
                  hello
                  i switch back from mariadb to mysql by this article


                  after that i installed governor

                  now how can i fix it
                  can you do it for me ?! if not can you tell me command that i use it
                  thanks

                  Comment


                  • #10
                    I worry we are not sure how it fix that now, better to check it in place. Please create support ticket at https://helpdesk.cloudlinux.com and provide access to server.

                    Our ssh key and outgoing IP are listed here: http://kb.cloudlinux.com/2014/10/ssh...-to-my-server/

                    Thanks.

                    Comment


                    • #11
                      hello
                      ticket crated
                      Ticket ID#VZJ-577-58253

                      thanks

                      Comment


                      • #12
                        We have customers seeing this same problem. We are not running MySQL Governor or MariaDB.

                        The only solution we have found is to run: /usr/bin/alt-php-mysql-reconfigure

                        - Scott

                        Comment


                        • #13
                          Scott, is this happening to alternate PHP version only? I suppose somethign went wrong with symlinks to mysql libraries.

                          If this issue happens to anyone other in future:

                          Plase save following information for us:

                          Code:
                          ls -la /opt/alt/php*/usr/lib*/php/modules/mysql*.so > /root/alt-php-mysql-libs.txt
                          Then run /usr/bin/alt-php-mysql-reconfigure to fix it, and after that create a ticket at https://helpdesk.cloudlinux.com and provide cldoctor report. We are interesting to find why is this happening originally.

                          Comment


                          • #14
                            Hi Bogdan. The next time I have the problem with "Headers and client library minor version mismatch" I will be sure to document this fully and contact CloudLinux, before I run the /usr/bin/alt-php-mysql-reconfigure command.

                            - Scott

                            Comment


                            • #15
                              Do you still need help help with this?

                              Comment

                              Working...
                              X