Jump to content

Update CWP RoundCube Mail Version 1.5.6 – Control Web Panel


Go to solution Solved by Sandeep B.,

Recommended Posts

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.

Step1
Install Required php extension INTL in CWP :-

Centos 7/EL7 :

To install INTL :

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


To remove INTL :

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


Centos 8 stream/EL8 :

To install INTL :

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 official source :

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


Now extract the archive file :

tar xf roundcubemail-1.5.6-complete.tar.gz


Step 3
Update the Roundcube installation :

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


Installation Instructions :

Upgrading from 1.4.11. Do you want to continue? (y/N)
type : y and hit enter 


At last you’ll see this message upon installation 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 by login into roundcube

Link to comment
Share on other sites

  • 2 weeks later...

Hello,

after update step by step everything is fine well just like your example but now after login in webmail return this error:

Server error! (Internal Server Error)

Any idea how to fix it?

Link to comment
Share on other sites

4 hours ago, Plamen K. said:

Hello,

after update step by step everything is fine well just like your example but now after login in webmail return this error:

Server error! (Internal Server Error)

Any idea how to fix it?

Hi internal server error is not expected in update process, you maybe have issue with other thing. Try to restart cwp services

sh /scripts/restart_cwpsrv

 

Link to comment
Share on other sites

  • 3 months later...
  • Sandeep B. changed the title to Update CWP RoundCube Mail Version 1.6.3 – Control Web Panel
  • Sandeep B. changed the title to Update CWP RoundCube Mail Version 1.5.4 – Control Web Panel
14 hours ago, Starburst said:

Current version is Roundcube Webmail 1.6.3

You just have to change where it says 1.5.3 to 1.6.3

As always with update, do a backup or snapshot first.

it requires php 7.3 and not fully supported with CWP as it uses php 7.2 as core php version

Link to comment
Share on other sites

On 9/27/2023 at 7:27 PM, Sandeep B. said:

it requires php 7.3 and not fully supported with CWP as it uses php 7.2 as core php version

Just tried the 1.6.3 upgrade and gave:

# bin/installto.sh /usr/local/cwpsrv/var/services/roundcube
Unsupported PHP version. Required PHP >= 7.3.

So since CWP still uses the obsolete PHP 7.1, we are limited to old version of RoundCube.

Is there an ETA when CWP might finally make it to PHPP 8.1, 8.2 or the new 8.3 RC?
No to mention 0.9.8.1170 is behind on it's PHP version now by quite a bit with 8.1 & 8.2.

Link to comment
Share on other sites

  • 1 month later...

i tried upgrading ti version 1.5.5 and the problem is that roundcube says imap connection failed. What am i doing wrong,. i am also iunable to downgrade to version 1.5.4 i used 1.5.5 because of an security update

 

Link to comment
Share on other sites

  • Sandeep B. changed the title to Update CWP RoundCube Mail Version 1.5.6 – Control Web Panel
  • 3 weeks later...
On 6/4/2023 at 3:29 PM, Sandeep B. said:

Step 3
Update the Roundcube installation :

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

I believe that there is an error in these lines. It should say: 

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

So the example is about 1.5.6 version.

I'm trying to follow these steps but using the latest one to date https://github.com/roundcube/roundcubemail/releases/download/1.6.5/roundcubemail-1.6.5-complete.tar.gz

But it complains that "Unsupported PHP version. Required PHP >= 7.3"

I suppose that there is no solution until CWP gets updated to use PHP > 7.3

Anyway, thanks a lot, as always, for detailed instructions.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...