Skip to main content

cPanel Update Issue

Comments

7 comments

  • cPanelMichael
    Hello, Please post the output from the following commands on the affected system:
    cat /etc/redhat-release grep mysql-version /var/cpanel/cpanel.config rpm -qa|grep MySQL cat /etc/systemd/system/mysql.service cat /var/cpanel/rpm.versions.d/cloudlinux.versions
    Note that last command is only applicable if you have installed CloudLinux. Thank you.
    0
  • bdariyes
    thanks for quick reply. The outputs are below:
    cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core)

    grep mysql-version /var/cpanel/cpanel.config mysql-version=5.5

    rpm -qa|grep MySQL compat-MySQL50-shared-5.0.96-4.cp1136.x86_64 cpanel-perl-522-MySQL-Diff-0.43-1.cp1156.x86_64 MySQL56-test-5.6.30-1.cp1156.x86_64 MySQL56-server-5.6.30-1.cp1156.x86_64 MySQL56-client-5.6.30-1.cp1156.x86_64 compat-MySQL51-shared-5.1.73-1.cp1150.x86_64 MySQL56-shared-5.6.30-1.cp1156.x86_64 MySQL56-devel-5.6.30-1.cp1156.x86_64

    cat /etc/systemd/system/mysql.service [Unit] Description=MySQL Server ConditionPathExists=!/etc/mysqldisable [Service] Type=simple ExecStart=/usr/bin/mysqld_safe User=mysql Group=mysql WorkingDirectory=/usr LimitNOFILE=65536 [Install] WantedBy=multi-user.target
    And i dont have Cloud linux installed. regards
    0
  • cPanelMichael
    Code: grep mysql-version /var/cpanel/cpanel.config mysql-version=5.5

    Edit this file and replace this value with:
    mysql-version=5.6
    This will match the installed RPMs on your system. Then, run the following commands:
    /scripts/update_local_rpm_versions --edit target_settings.MySQL55 uninstalled /scripts/update_local_rpm_versions --edit target_settings.MySQL56 installed /scripts/check_cpanel_rpms --fix
    Let us know if this helps to address the issue. Thank you.
    0
  • bdariyes
    At first thanks, I have edit the cpanel.config file. But when i run this command I got an error. I try to fix it by reading several forum post but still its giving same error. Any suggestion?
    /scripts/update_local_rpm_versions --edit target_settings.MySQL55 uninstalled perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_CTYPE = "UTF-8", LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
    Kind regards
    0
  • cPanelMichael
    perl: warning: Falling back to a fallback locale ("en_US.UTF-8").

    The command should have still completed successfully, despite that warning message. The warning message is unrelated, and discussed on the following third-party URL: How to fix a locale setting warning from Perl? Thanks!
    0
  • bdariyes
    Thanks for your help, The Problem was solved. I just need to restart the server and try your commands.
    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.