Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SOLVED Install on RHEL 7.5 fails

Discussion in 'General Discussion' started by jtaylor0522, May 11, 2018.

  1. jtaylor0522

    jtaylor0522 Registered

    Joined:
    Jul 20, 2013
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    This was a fresh install of RHEL 7.5. Install aborted with:

    2018-05-11 10:09:39 461 ( INFO): The 'mysql-version' key is set to: 5.7.

    No repository exists for “Mysql57” at “/usr/local/cpanel/etc/rpm/generic/Mysql57/yumrepo”. at /usr/local/cpanel/Cpanel/Repos.pm line 171.

    I don't seem to be able to try again because I get:

    2018-05-11 10:23:44 673 ( INFO): Checking for any control panels...

    2018-05-11 10:23:45 689 (ERROR): The installation process found evidence that the following control panels were installed on this server:

    2018-05-11 10:23:45 690 (ERROR): cPanel & WHM

    2018-05-11 10:23:45 691 (FATAL): You must install cPanel & WHM on a clean server.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,961
    Likes Received:
    1,821
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @jtaylor0522,

    Internal case CPANEL-19769 is open to address an issue where systems using RHEL version 7 are unable to update to MySQL version 5.7. This is also resulting in cPanel installation failures now that cPanel & WHM version 70 is utilized for new installations (MySQL version 5.7 is the default in version 70). I'll monitor this case and update this thread with more information as it becomes available.

    In the meantime, a temporary workaround is to create /root/cpanel_profile/cpanel.config and add the following line to it prior to starting the installation:

    Code:
    mysql-version=5.6
    This will set MySQL 5.6 as the version to install during the cPanel installation. You can then upgrade to MySQL version 5.7 once internal case CPANEL-19769 is solved.

    Alternatively, you could preconfigure the cPanel & WHM release tier to version 68 using the following steps prior to starting the installation:

    1. As the root user, create the /etc/cpupdate.conf file.
    2. In the /etc/cpupdate.conf file, use the CPANEL parameter to set the release tier. For example, to configure the installer to use cPanel & WHM version 68, add the the following entry to the /etc/cpupdate.conf file:

    Code:
    CPANEL=11.68
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. jtaylor0522

    jtaylor0522 Registered

    Joined:
    Jul 20, 2013
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I'll give that a try. Do I really need to start with a clean server or is there a magic way to tell the installer to try again and ignore the partial existing cpanel install attempt?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,961
    Likes Received:
    1,821
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Generally the best approach is to reinstall the OS and start the installation again. That said, you could try forcing the installation with the use of the "--force" flag. EX:

    Code:
    sh latest --force
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,961
    Likes Received:
    1,821
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    To update, this is fixed as of cPanel and WHM version 70.0.38:

    Fixed case CPANEL-19769: Provide YUM repo RPM for RHEL to install MySQL 7.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Eli Sheets

    Eli Sheets Registered

    Joined:
    Jun 15, 2018
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Hawaii
    cPanel Access Level:
    Root Administrator
    I'm getting the same error and I don't see the answer to how I am supposed to restart or resume the installation process:

    2018-06-15 13:00:22 681 ( INFO): Checking for any control panels...
    2018-06-15 13:00:22 697 (ERROR): The installation process found evidence that the following control panels were installed on this server:
    2018-06-15 13:00:22 698 (ERROR): cPanel & WHM
    2018-06-15 13:00:22 699 (FATAL): You must install cPanel & WHM on a clean server.

    The first time through the installation failed because of a MySQL issue. Now that is resolved but it keeps getting stuck on the above errors as though it was already installed, but it's not. So how do I finish the installation???
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,961
    Likes Received:
    1,821
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @Eli Sheets,

    Did you try using the force flag referenced on Post 4 above?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. RadWebHosting

    RadWebHosting Active Member

    Joined:
    May 6, 2016
    Messages:
    32
    Likes Received:
    4
    Trophy Points:
    8
    Location:
    Dallas, Texas
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Not specific to 7.5, but we've noticed that installing cPanel to a bare-bones, minimal fresh install often works better than even running a quick update script on, oftentimes outdated, OS templates.

    This is definitely relative to network configuration and not all servers would experience any slowdown by running an update, but just wanted to post this for the admin who comes here tearing their hair out trying to install cPanel. My suggestion, if you've got a fairly good understanding/familiarity with installing cPanel, yet are running into similar issues would be to reload the OS and literally use the cPanel install script as the first command upon entry.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice