Ubuntu fresh install (20.04), fails install?

ecomm1001

Registered
Apr 27, 2022
1
0
1
Australia
cPanel Access Level
Root Administrator
Hi - Fresh install of Ubuntu 20.04:

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal

Fails with " You can only install cPanel & WHM on a fresh installation of Ubuntu 20.04 or higher." - Any assistance, would be greatly appreciated.

Log of install below (It fails almost immediately) - I cant see any "obvious" reasons why its failing?

# cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 65899 0 65899 0 0 34683 0 --:--:-- 0:00:01 --:--:-- 34665
Verifying archive integrity... All good.
Uncompressing cPanel & WHM Installer...................
____ _
___| _ \ __ _ _ __ ___| |
/ __| |_) / _` | '_ \ / _ \ |
| (__| __/ (_| | | | | __/ |
\___|_| \__,_|_| |_|\___|_|

Installer Version v00123 raa123d83225ea6ee91d87a6d7e9abc99958c6dcb

Installing iproute2 ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
iproute2 is already the newest version (5.5.0-1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Beginning main installation.
2022-04-28 01:44:10 106 [1004] ( INFO): cPanel & WHM installation started at: Thu Apr 28 01:44:10 2022!
2022-04-28 01:44:10 107 [1004] ( INFO): This installation will require 10-50 minutes, depending on your hardware and network.
2022-04-28 01:44:10 108 [1004] ( INFO): Now is the time to go get another cup of coffee/jolt.
2022-04-28 01:44:10 109 [1004] ( INFO): The install will log to the /var/log/cpanel-install.log file.
2022-04-28 01:44:10 110 [1004] ( INFO):
2022-04-28 01:44:10 111 [1004] ( INFO): Beginning Installation v3...
2022-04-28 01:44:10 93 [1004] (DEBUG): Parsing command line arguments.
2022-04-28 01:44:10 127 [1004] ( INFO): Install type: standard
2022-04-28 01:44:10 300 [1004] ( INFO): Checking RAM now...
2022-04-28 01:44:10 348 [1004] ( INFO): Checking for any control panels...
2022-04-28 01:44:10 54 [1004] ( INFO): Running health checks prior to start.
2022-04-28 01:44:10 371 [1004] ( INFO): Checking for essential system files...
2022-04-28 01:44:10 401 [1004] ( INFO): The installation process will now set up the necessary empty cpanel directories.
2022-04-28 01:44:10 461 [1004] (DEBUG): - ssystem [BEGIN]: chown -R root:root /var/cpanel/activate
2022-04-28 01:44:10 461 [1004] (DEBUG): - ssystem [END]
2022-04-28 01:44:10 462 [1004] (DEBUG): - ssystem [BEGIN]: chmod -R 0700 /var/cpanel/activate
2022-04-28 01:44:10 462 [1004] (DEBUG): - ssystem [END]
2022-04-28 01:44:10 461 [1004] (DEBUG): - ssystem [BEGIN]: chown -R root:root /var/cpanel/activate/features
2022-04-28 01:44:10 461 [1004] (DEBUG): - ssystem [END]
2022-04-28 01:44:10 462 [1004] (DEBUG): - ssystem [BEGIN]: chmod -R 0700 /var/cpanel/activate/features
2022-04-28 01:44:10 462 [1004] (DEBUG): - ssystem [END]
2022-04-28 01:44:10 1137 [1004] (DEBUG): - ssystem [BEGIN]: usermod -g 99 nobody
2022-04-28 01:44:10 1137 [1004] (DEBUG): usermod: no changes
2022-04-28 01:44:10 1137 [1004] (DEBUG): - ssystem [END]
2022-04-28 01:44:10 48 [1004] (DEBUG): - ssystem [BEGIN]: sysctl fs.protected_regular=0
2022-04-28 01:44:10 48 [1004] (DEBUG): fs.protected_regular = 0
2022-04-28 01:44:10 48 [1004] (DEBUG): - ssystem [END]
2022-04-28 01:44:10 44 [1004] ( INFO): cPanel is here to help! Our Technical Support team is just a click away at https://support.cpanel.net/ or you can contact Customer Service via email [email protected]
2022-04-28 01:44:10 243 [1004] (FATAL): You can only install cPanel & WHM on a fresh installation of Ubuntu 20.04 or higher.

Thanks in advance.
 
Last edited by a moderator:

vacancy

Well-Known Member
Sep 20, 2012
557
223
93
Turkey
cPanel Access Level
Root Administrator
This is another install error.

Ubuntu has serious problems.

[2022-05-03 08:54:40 +0000] [21730] (DEBUG): - ssystem [END]
[2022-05-03 08:54:40 +0000] [21730] ( INFO): Completed execution of “/usr/local/bin/ea_install_profile --install /etc/cpanel/ea4/profiles/cpanel/default.json” in 19.205 second(s)
[2022-05-03 08:54:40 +0000] [21730] (ERROR): Could not install default EA4 profile
[2022-05-03 08:54:40 +0000] [21730] (FATAL): Failed to install EA4
[2022-05-03 08:54:40 +0000] [21160] (FATAL): The background process “EA4 Install” failed with a fatal error: The subprocess reported error number 1 when it ended.
2022-05-03 08:54:40 44 [2552] ( INFO): cPanel is here to help! Our Technical Support team is just a click away at https://support.cpanel.net/ or you can contact Customer Service via email [email protected]
2022-05-03 08:54:40 118 [2552] (FATAL): The system failed to run the /usr/local/cpanel/scripts/cpanel_initial_install script.
 

Spirogg

Well-Known Member
Feb 21, 2018
700
162
43
chicago
cPanel Access Level
Root Administrator
here is the docs on what you need to do to install ubuntu
You can install cPanel & WHM on Ubuntu version 20.04 LTS only

System Requirements for Ubuntu | cPanel & WHM Documentation


@ecomm1001 maybe this is the issue ?

you need to make sure you disable SELinux before installing cPanel
where are you hosted - server or vps ?
Disable SELinux
Note:
These instructions apply if you have installed SELinux on your server.
You must disable SELinux to make your system compatible with cPanel & WHM.

To disable SELinux security features, use one of the following methods:

  • Use the graphical interface to disable SELinux while you configure your operating system, and then reboot the server.
  • Edit the /etc/selinux/config file to set the SELINUX parameter to disabled, and then reboot the server. The contents of the /etc/selinux/config file should resemble the following example:
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    # This file controls the state of SELinux on the system.
    # SELINUX= can take one of these three values:
    # enforcing - SELinux security policy is enforced.
    # permissive - SELinux prints warnings instead of enforcing.
    # disabled - No SELinux policy is loaded.
    SELINUX=disabled
    # SELINUXTYPE= can take one of these two values:
    # targeted - SELinux only protects targeted daemons.
    # strict - Full SELinux protection.
    SELINUXTYPE=targeted
    Important:
    Make certain that the number sign (#) does not precede SELINUX=disabled. If a # precedes this configuration option, the system ignores the option.
Warning:
  • To run cPanel & WHM on your server, SELinux must remain disabled.
    • SELinux in enforcing mode does not allow cPanel & WHM to function properly. For more information about SELinux modes, read the SELinux Mode documentation.
    • While cPanel & WHM can function with SELinux in permissive mode, we recommend that you do not use it. Permissive mode generates a large number of log entries.
    • To check the status of SELinux on your server, run the sestatus command.
  • Do not transfer the SELinux configuration file between computers. It may destroy the file’s integrity.
 

Spirogg

Well-Known Member
Feb 21, 2018
700
162
43
chicago
cPanel Access Level
Root Administrator

another post with some other solved issue for selinux using vultr i think you can read that thread also might help