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.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


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...
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
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...
  • 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

  • 3 weeks later...

Hello,

I followed the instructions above and updated Roundcube to 1.5.6, but it doesn't display any messages. It just gives error, "Server Error! (error)"

Also, I can send emails.

Below the Roundcube status:

dovecot.service - Dovecot IMAP/POP3 email server
   Loaded: loaded (/usr/lib/systemd/system/dovecot.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2023-12-15 14:17:39 EET; 48min ago
     Docs: man:dovecot(1)
           https://doc.dovecot.org/
  Process: 1036240 ExecStop=/usr/bin/doveadm stop (code=exited, status=0/SUCCESS)
  Process: 1036245 ExecStartPre=/usr/libexec/dovecot/prestartscript (code=exited, status=0/SUCCESS)
 Main PID: 1036252 (dovecot)
    Tasks: 26 (limit: 408567)
   Memory: 27.1M
   CGroup: /system.slice/dovecot.service
           ├─1036252 /usr/sbin/dovecot -F
           ├─1036254 dovecot/anvil
           ├─1036255 dovecot/log
           ├─1036256 dovecot/config
           ├─1036258 dovecot/imap-login
           ├─1036259 dovecot/stats
           ├─1036260 dovecot/auth
           ├─1036261 dovecot/imap-login
           ├─1036262 dovecot/imap-login
           ├─1036263 dovecot/imap-login
           ├─1036264 dovecot/imap-login
           ├─1036265 dovecot/imap-login
           ├─1036266 dovecot/auth -w
           ├─1036268 dovecot/imap
           ├─1036270 dovecot/imap
           ├─1036272 dovecot/imap
           ├─1036273 dovecot/imap
           ├─1036274 dovecot/imap
           ├─1036275 dovecot/imap
           ├─1057834 dovecot/imap-login
           ├─1057841 dovecot/imap
           ├─1057912 dovecot/imap-login
           ├─1057913 dovecot/imap
           ├─1057921 dovecot/imap-login
           ├─1057922 dovecot/imap
           └─1059197 dovecot/imap-login

Dec 15 14:17:39 example.com systemd[1]: Starting Dovecot IMAP/POP3 email server...
Dec 15 14:17:39 example.com systemd[1]: Started Dovecot IMAP/POP3 email server.

 

Link to comment
Share on other sites

17 hours ago, vtheod said:

Hello,

I followed the instructions above and updated Roundcube to 1.5.6, but it doesn't display any messages. It just gives error, "Server Error! (error)"

Also, I can send emails.

Below the Roundcube status:

dovecot.service - Dovecot IMAP/POP3 email server
   Loaded: loaded (/usr/lib/systemd/system/dovecot.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2023-12-15 14:17:39 EET; 48min ago
     Docs: man:dovecot(1)
           https://doc.dovecot.org/
  Process: 1036240 ExecStop=/usr/bin/doveadm stop (code=exited, status=0/SUCCESS)
  Process: 1036245 ExecStartPre=/usr/libexec/dovecot/prestartscript (code=exited, status=0/SUCCESS)
 Main PID: 1036252 (dovecot)
    Tasks: 26 (limit: 408567)
   Memory: 27.1M
   CGroup: /system.slice/dovecot.service
           ├─1036252 /usr/sbin/dovecot -F
           ├─1036254 dovecot/anvil
           ├─1036255 dovecot/log
           ├─1036256 dovecot/config
           ├─1036258 dovecot/imap-login
           ├─1036259 dovecot/stats
           ├─1036260 dovecot/auth
           ├─1036261 dovecot/imap-login
           ├─1036262 dovecot/imap-login
           ├─1036263 dovecot/imap-login
           ├─1036264 dovecot/imap-login
           ├─1036265 dovecot/imap-login
           ├─1036266 dovecot/auth -w
           ├─1036268 dovecot/imap
           ├─1036270 dovecot/imap
           ├─1036272 dovecot/imap
           ├─1036273 dovecot/imap
           ├─1036274 dovecot/imap
           ├─1036275 dovecot/imap
           ├─1057834 dovecot/imap-login
           ├─1057841 dovecot/imap
           ├─1057912 dovecot/imap-login
           ├─1057913 dovecot/imap
           ├─1057921 dovecot/imap-login
           ├─1057922 dovecot/imap
           └─1059197 dovecot/imap-login

Dec 15 14:17:39 example.com systemd[1]: Starting Dovecot IMAP/POP3 email server...
Dec 15 14:17:39 example.com systemd[1]: Started Dovecot IMAP/POP3 email server.

 

Did you followed all steps? Any error recieved?

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...

I have the DOS protection on frequent requests return 403 ... but on normal RoundCube operations like delete and etc. it activates too often. Can i fix this just for the RoundCube or do I need to raise the request count for the entire server?

Link to comment
Share on other sites

  • 1 month later...

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...