Jump to content

Featured Replies

Posted
comment_35

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

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

Solved by Sandeep B.

Go to solution
  • 2 weeks later...
comment_50

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?

  • Author
comment_51
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

 

  • 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
  • Author
comment_205
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

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

  • 1 month later...
  • Sandeep B. changed the title to Update CWP RoundCube Mail Version 1.5.6 – Control Web Panel
  • 3 weeks later...
comment_319
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.

comment_322

I'm also having "Server error!" into the Roundcube interface after updating. Not sure if there are necessary changes into the config.inc.php in roundcube installation folder. Do I need to change anything there?

comment_323

Ok. Forget about my previous message. I had to run this:

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

but AFTER the installation. Not sure why. Now it works and no "Server error!" messages anymore.

  • 3 weeks later...
comment_360

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.

 

  • Author
comment_361
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?

  • 2 weeks later...
comment_369
On 12/16/2023 at 8:45 PM, Sandeep B. said:

try to uninstall the fix with the upper script and install it again

I followed the instructions from the beginning a lot of times but with no success. Am I missing something?

  • 1 month later...
comment_565

Hi Sandeep,

Followed your instructions and it worked almost flawless. the version numbers do not mach in some command lines.. After i changed it it worked as expected.

spacer.png

I marked the errors.

thanks

comment_626

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?

  • 1 month later...
  • 2 months later...
comment_1002

I had the same internal server error and was unable to resolve the issue until now.
Apparently it's something related to the ICU library, which should be >=4.2.
Among some installations, I have an old CWP installation and it may be that some necessary libraries are missing over time.
I disabled WAF and the problem persists.
So I decided to follow the workaround pointed out here:
https://www.roundcubeforum.net/index.php?topic=29678.0

At least now I can use roundcube.

EDIT:

Strangely, I checked the problem was my old CWP installation hadn't the directory '/usr/local/cwp/php71/php.d', because I was being deleted it in the first step "To remove INTL".

So, I execute the same steps, without removing it, and the problem was solved without the above workaround.

Regards,
Netino

Edited by Netino

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

Posts