If RoundCube is not present on your cPanel server, you can follow the steps outlined below:
1. Log in to the server as root through WHM. Navigate to Tweak Settings and search for "Roundcube." Ensure that the option to Enable Roundcube webmail is enabled. If it's not enabled, select "On" as shown in the attached screenshot and click the "Save" button.
2. Open the terminal and execute the following command:
rpm -qa | grep -i roundcube
If the command doesn't produce any output, run the following:
/scripts/update_local_rpm_versions --edit target_settings.roundcube installed
/usr/local/cpanel/scripts/check_cpanel_pkgs --fix --fix --targets=roundcube
This will promptly install Roundcube on the server. However, it's essential to verify it by using the previous command mentioned.
You may see some messages during this process, which is normal. Here's the output of the commands:
[2023-10-30 10:59:12 +0600] Problems were detected with cPanel-provided files which are controlled by packages.
[2023-10-30 10:59:12 +0600] If you did not make these changes intentionally, you can correct them by running:
[2023-10-30 10:59:12 +0600] > /usr/local/cpanel/scripts/check_cpanel_pkgs --fix
[2023-10-30 10:59:12 +0600] The following packages are missing from your system:
[2023-10-30 10:59:12 +0600] cpanel-roundcubemail-1.6.0.10-1.cp110~el7
[2023-10-30 10:59:13 +0600] Maximum sync children set to 16 based on 11517M available memory.
[2023-10-30 10:59:13 +0600] Downloading http://httpupdate.cpanel.net/RPM/11.110/centos/7/x86_64/sha512
[2023-10-30 10:59:13 +0600] Successfully verified signature for cpanel (key types: release).
[2023-10-30 10:59:13 +0600] Downloading http://httpupdate.cpanel.net/RPM/11.110/centos/7/x86_64/cpanel-roundcubemail-1.6.0.10-1.cp110~el7.noarch.rpm
[2023-10-30 10:59:16 +0600] Disabling service monitoring.
[2023-10-30 10:59:16 +0600] Hooks system enabled.
[2023-10-30 10:59:16 +0600] Checking for and running RPM::Versions 'pre' hooks for any Packages about to be installed
[2023-10-30 10:59:16 +0600] All required 'pre' hooks have been run
[2023-10-30 10:59:16 +0600] No packages need to be uninstalled
[2023-10-30 10:59:16 +0600] Installing new rpms: cpanel-roundcubemail-1.6.0.10-1.cp110~el7.noarch.rpm
[2023-10-30 10:59:16 +0600] Preparing packages...
[2023-10-30 10:59:17 +0600] No existing Roundcube database detected; skipping database backup.
[2023-10-30 10:59:17 +0600] cpanel-roundcubemail-1.6.0.10-1.cp110~el7.noarch
[2023-10-30 10:59:21 +0600] Roundcube is configured to use SQLite.
[2023-10-30 10:59:21 +0600] This update is for Roundcube using MySQL. Running /usr/local/cpanel/bin/update-roundcube-sqlite-db.
[2023-10-30 10:59:21 +0600] /usr/local/cpanel/bin/update-roundcube-sqlite-db: running in the background.
[2023-10-30 10:59:21 +0600] Hooks system enabled.
[2023-10-30 10:59:21 +0600] Checking for and running RPM::Versions 'post' hooks for any Packages about to be installed
[2023-10-30 10:59:21 +0600] All required 'post' hooks have been run
[2023-10-30 10:59:21 +0600] Restoring service monitoring.
3. Subsequently, check your cPanel account, go to Webmail, and you should now find Roundcube listed there for login or access.
That's it! Your Roundcube installation should now be complete.