Update RoundCube Mail to Version 1.5.8 in CWP on AlmaLinux 8


This article is based on Sandeep’s article at AlphaGNU.
Update CWP RoundCube Mail Version 1.5.6 – Control Web Panel – CWP – Control WEB Panel – AlphaGNU

It is meant to be a backup, just in case the other site gives an error.

It also has been modified to use 1.5.8 as of the creation of this article.


INTRODUCTION

Update Roundcube on CWP, the new Version of Roundcube 1.5 LTS have clear Interface with modern look also in this version some major security holes were fixed. It is recommended to update the Roundcube to latest version.


READ ME FIRST

This article is provided as a courtesy.
Installing, configuring, and troubleshooting third-party applications is outside the scope of basic support provided by Starburst Services.

We are not liable for any damages and/or data loss.


REQUIRMENTS

  • SSH credentials or File Manager access Logged In as Root

STEP 1

Install Required php extension INTL in CWP:

dnf update ca-certificates -y
rpm -ivh https://github.com/mysterydata/md-disk/raw/main/libicu69-69.1-4.el8.x86_64.rpm
curl -s -L https://www.alphagnu.com/upload/tmp/el8/cwp_rc_fix_el8.sh | bash

To remove INTL:

curl -s -L https://www.alphagnu.com/upload/tmp/cwp_rc_fix_remove.sh | bash

STEP 2

Download roundcube script from the Official source:

cd /usr/local/src
rm -rf roundcube*
wget https://github.com/roundcube/roundcubemail/releases/download/1.5.8/roundcubemail-1.5.8-complete.tar.gz

Now extract the archive file:

tar xf roundcubemail-1.5.8-complete.tar.gz

STEP 3

Update the Roundcube installation:

cd roundcubemail-1.5.8
sed -i "s@\/usr\/bin\/env php@\/usr\/bin\/env \/usr\/local\/cwp\/php71\/bin\/php@g" /usr/local/src/roundcubemail-1.5.8/bin/installto.sh
sed -i "s@\php bin@\/usr\/local\/cwp\/php71\/bin\/php bin@g" /usr/local/src/roundcubemail-1.5.8/bin/installto.sh
bin/installto.sh /usr/local/cwpsrv/var/services/roundcube

Installation Instructions, you will see:

Upgrading from 1.4.11. Do you want to continue? (y/N)

Type “y” and hit Enter


You will see this message when the installation is complete:

Running update script at target…
Executing database schema update.
Updating database schema (2020020100)… [OK]
Updating database schema (2020020101)… [OK]
Updating database schema (2020091000)… [OK]
Updating database schema (2020122900)… [OK]
This instance of Roundcube is up-to-date.
Have fun!
All done.


All done, check new version by logging into Roundcube.


If you receive the error:

Server error! (Internal Server Error)

Run:

sh /scripts/restart_cwpsrv

If you still have the error, try:

curl -s -L https://www.alphagnu.com/upload/tmp/cwp_rc_fix_remove.sh | bash

And the re-run the upgrade script above again.


A backup of the scripts above, can be found at: https://starburstservices.com/downloads/files/cwp/


Thanks for learning with Starburst Services.

Make sure to visit AlphaGNU at: https://www.alphagnu.com/

Learn more about our services


KB Article Created: 2024-09-01

people found this article helpful. What about you?