jtaylor0522

Registered
Jul 20, 2013
3
1
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.
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,902
2,228
363
cPanel Access Level
DataCenter Provider
Twitter
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.
 

jtaylor0522

Registered
Jul 20, 2013
3
1
1
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.

Thank you.
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?
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,902
2,228
363
cPanel Access Level
DataCenter Provider
Twitter
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?
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.
 

Eli Sheets

Registered
Jun 15, 2018
1
0
1
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???
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,902
2,228
363
cPanel Access Level
DataCenter Provider
Twitter
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???
Hello @Eli Sheets,

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

Thank you.
 

RadWebHosting

Well-Known Member
May 6, 2016
52
11
8
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.