Control Web Panel

WebPanel => E-Mail => Topic started by: dzseti on June 01, 2022, 08:42:48 PM

Title: Roundcube update not working due to php version of cwpsrv
Post by: dzseti on June 01, 2022, 08:42:48 PM
Have been following this to check and update roundcube: https://www.awsmonster.com/2018/11/cwp-how-to-check-roundcube-all.html

When running the webmail installer I get this error message relating to the php used by roundcube:
Quote
Checking PHP version
Version:  NOT OK(PHP Version 7.3.0 or greater is required 7.2.30 detected)

7.2.30 is indeed the version used by cwpsrv and roundcube, which checks out with the bash:
Code: [Select]
/usr/local/cwp/php71/bin/php -v
which confirms:
Quote
PHP 7.2.30 (cli) (built: Apr 29 2020 02:29:42) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with the ionCube PHP Loader + ionCube24 v10.4.5, Copyright (c) 2002-2020, by ionCube Ltd.

I can't work out how to get cwpsrv to use a later version of php (I am using FPM selector for my domains that are using php versions 7.3 to 8.1)

Help please!


Title: Re: Roundcube update not working due to php version of cwpsrv
Post by: rcschaff on June 04, 2022, 04:26:29 PM
Cwpsrv has it's own fpm.  the service is called cwpsrv-phpfpm and cwp-phpfpm  They use /usr/local/cwp/php71 (It's actually 7.2).  I'm working on an update for you, but work 60 hours a week, so not a lot of time

Title: Re: Roundcube update not working due to php version of cwpsrv
Post by: tomkolp on July 29, 2022, 09:39:22 AM
I wanted to update roundcube to 1.6 but roundcube requires a minimum php 7.3 version. Unfortunately version 1.5.3 is the last one working.
Title: Re: Roundcube update not working due to php version of cwpsrv
Post by: tomkolp on January 13, 2023, 12:10:54 PM
Cwpsrv has it's own fpm.  the service is called cwpsrv-phpfpm and cwp-phpfpm  They use /usr/local/cwp/php71 (It's actually 7.2).  I'm working on an update for you, but work 60 hours a week, so not a lot of time
Do you know when the new version of Roundcube will be available? How to completely disable Roundcube in CWP when CVE vulnerabilities appear in outdated version 1.5.3
Title: Re: Roundcube update not working due to php version of cwpsrv
Post by: overseer on January 14, 2023, 11:57:35 PM
The CWP team should get to this, but their timeline is always opaque. Meanwhile, I myself am not too worried about it as a break-in vector, as my config is generally hardened, as is Postfix so I shouldn't become a UCE relay. Not being an open relay and rate-limiting your outbound mail flow will really make you NOT a juicy target for spammers.
Title: Re: Roundcube update not working due to php version of cwpsrv
Post by: Namaste on February 21, 2023, 01:19:55 PM
HOW DO WE CHECK WHICH VERSION IS INSTALLED?
Title: Re: Roundcube update not working due to php version of cwpsrv
Post by: maxwellins on February 21, 2023, 05:30:28 PM
HOW DO WE CHECK WHICH VERSION IS INSTALLED?

Open roundcube and click about in the bottom left corner.

I installed stable roundcube version 1.6.1 as the last version and after receiving the warning that it cannot be used because there is no php 7.3 in the system, I had to revert to the old version 1.4.11.
Title: Re: Roundcube update not working due to php version of cwpsrv
Post by: overseer on March 04, 2023, 04:55:09 PM
Sandeep has a guide on upgrading to the 1.5.x code branch of RoundCube. I wouldn't run the 1.4.x RoundCube branch...
https://www.uxlinux.com/upgrade-to-roundcube-version-mail-on-cwp-centos-webpanel/ (https://www.uxlinux.com/upgrade-to-roundcube-version-mail-on-cwp-centos-webpanel/)
Title: Re: Roundcube update not working due to php version of cwpsrv
Post by: mdenizli on March 04, 2023, 07:41:09 PM
Cwpsrv has it's own fpm.  the service is called cwpsrv-phpfpm and cwp-phpfpm  They use /usr/local/cwp/php71 (It's actually 7.2).  I'm working on an update for you, but work 60 hours a week, so not a lot of time


any update on this?
Title: Re: Roundcube update not working due to php version of cwpsrv
Post by: mdenizli on March 04, 2023, 09:02:10 PM
Cwpsrv has it's own fpm.  the service is called cwpsrv-phpfpm and cwp-phpfpm  They use /usr/local/cwp/php71 (It's actually 7.2).  I'm working on an update for you, but work 60 hours a week, so not a lot of time


any update on this?


/usr/local/cwpsrv/var/services/roundcube

It was already installed here. It had version 1.4. I updated to version 1.5. But now when I want to install 1.6.1, PHP 7.2.3 sees it and does not install it.
Title: Re: Roundcube update not working due to php version of cwpsrv
Post by: overseer on March 04, 2023, 10:11:15 PM
I imagine you would have to install it under a virtual host, not system-wide, so it meets the PHP requirements.
Title: Re: Roundcube update not working due to php version of cwpsrv
Post by: mdenizli on March 04, 2023, 10:15:55 PM
I imagine you would have to install it under a virtual host, not system-wide, so it meets the PHP requirements.

What setting do I need to move /usr/local/cwpsrv/var/services/roundcube from here and make it work in home/user/public_html?
Title: Re: Roundcube update not working due to php version of cwpsrv
Post by: overseer on March 04, 2023, 10:20:14 PM
You should download the complete source from roundcube.net into your virtual host and follow the installation instructions. (It will entail creating a MySQL or comparable database.) Hopefully your PHP 7.4 version is compiled with all the required modules and options! But the installer will check that for you as well.
Title: Re: Roundcube update not working due to php version of cwpsrv
Post by: diogorocha18 on June 27, 2023, 04:37:47 PM
Any news? Update to the new version and still get the error: "Unsupported PHP version. Required PHP >= 7.3."
Title: Re: Roundcube update not working due to php version of cwpsrv
Post by: imlemeciz on July 01, 2023, 05:55:22 PM
Run it in var/www/html/. Then it will support php version
Title: Re: Roundcube update not working due to php version of cwpsrv
Post by: Woytass on November 09, 2023, 02:28:15 PM
Run it in var/www/html/. Then it will support php version

Hi. How to change working directory for roundcube to run in in var/www/html/ ? Have same problem after update RC to newest version....
Another question is why roundcube is using quite different version of PHP than CPW?
Title: Re: Roundcube update not working due to php version of cwpsrv
Post by: Starburst on November 10, 2023, 11:14:37 AM
See this guide to upgrade to 1.5.4.

https://www.alphagnu.com/topic/33-update-cwp-roundcube-mail-version-154-%E2%80%93-control-web-panel/#comment-35

Unfortunately, as mention in that threads comments at the bottom, CWP can't support RoundCube 1.6.5 because it uses PHP 7.3, and CWP's core is only using 7.2 for some reason still.
Title: Re: Roundcube update not working due to php version of cwpsrv
Post by: Painkiller88 on November 10, 2023, 07:00:06 PM
Cwpsrv has it's own fpm.  the service is called cwpsrv-phpfpm and cwp-phpfpm  They use /usr/local/cwp/php71 (It's actually 7.2).  I'm working on an update for you, but work 60 hours a week, so not a lot of time
Do you know when the new version of Roundcube will be available? How to completely disable Roundcube in CWP when CVE vulnerabilities appear in outdated version 1.5.3

you can update to 1.5.6 this is the latest one that works acutally
Title: Re: Roundcube update not working due to php version of cwpsrv
Post by: Starburst on November 10, 2023, 09:31:46 PM
Saw some had problem with 1.5.5 on that thread I posted above.

Just saw 1.5.6 last night.
Title: Re: Roundcube update not working due to php version of cwpsrv
Post by: tomkolp on April 03, 2024, 07:52:32 PM
Quote
Installer for CentOS 9/stream, Alma Linux 9, and Rocky Linux 9 (beta)
CWP is released for EL9 as a beta, and old PHP versions are removed i.e. only PHP 7.4 to 8.3 are supported.
Does this mean that the latest version of roundcube will already work in the CWP beta version?
Title: Re: Roundcube update not working due to php version of cwpsrv
Post by: Starburst on April 04, 2024, 02:54:21 PM
Do not know, haven't gotten around to working with the beta yet.
Title: Re: Roundcube update not working due to php version of cwpsrv
Post by: overseer on April 04, 2024, 04:10:36 PM
My radar is up... keen to know what version of PHP is used internally for cwpsrv in EL9, and what version of Roundcube is included by default!
Title: Re: Roundcube update not working due to php version of cwpsrv
Post by: Starburst on April 04, 2024, 04:18:20 PM
Gonna work on that today.
Will post when I know.
Title: Test install of CWP beta on AlmaLinux 9.3
Post by: Starburst on April 04, 2024, 08:37:29 PM
OK.

@overseer

So, we all know this is a beta version so far...
It's a work in progress by the CWP team.


This is the bottom status bar after a clean install on AlmaLinux 9.3:
(Use scroll bar at bottom of message to see right side)
(https://starburstservices.com/image-links/CWP/AL9beta/Bottom-Status.jpg)


This is the Mail Services Tab:
(https://starburstservices.com/image-links/CWP/AL9beta/Mail-Services-Install.jpg)


This is the Mail Services Tab, AFTER manually installing AMaVis, ClamAV (* See Below), SpamAssassin
(https://starburstservices.com/image-links/CWP/AL9beta/Mail-Services-Manual.jpg)


The default version of RoundCube installed:
(https://starburstservices.com/image-links/CWP/AL9beta/RoundCube.jpg)


* I installed ClamAV & ClamD from the EPEL repo, got it to enable, but keeps giving an error when trying to start.
I might or might not work on this.


Default PHP is 7.4.33 Without ionCube.
Tried to build 8.3.4, said it worked, but still on 7.4.33. So it failed.

It also installed an Old, Non-LTS version of MariaDB, 10.5.22.
10.6 & 10.11 are LTS Versions.
Title: Re: Roundcube update not working due to php version of cwpsrv
Post by: tomkolp on April 05, 2024, 10:53:42 AM
OK.

@overseer

So, we all know this is a beta version so far...
It's a work in progress by the CWP team.


This is the bottom status bar after a clean install on AlmaLinux 9.3:
(Use scroll bar at bottom of message to see right side)
(https://starburstservices.com/image-links/CWP/AL9beta/Bottom-Status.jpg)


This is the Mail Services Tab:
(https://starburstservices.com/image-links/CWP/AL9beta/Mail-Services-Install.jpg)


This is the Mail Services Tab, AFTER manually installing AMaVis, ClamAV (* See Below), SpamAssassin
(https://starburstservices.com/image-links/CWP/AL9beta/Mail-Services-Manual.jpg)


The default version of RoundCube installed:
(https://starburstservices.com/image-links/CWP/AL9beta/RoundCube.jpg)


* I installed ClamAV & ClamD from the EPEL repo, got it to enable, but keeps giving an error when trying to start.
I might or might not work on this.


Default PHP is 7.4.33 Without ionCube.
Tried to build 8.3.4, said it worked, but still on 7.4.33. So it failed.

It also installed an Old, Non-LTS version of MariaDB, 10.5.22.
10.6 & 10.11 are LTS Versions.
You need to check what php version roundcube is running on:
Code: [Select]
/usr/local/cwp/php71/bin/php -v
Title: Re: Roundcube update not working due to php version of cwpsrv
Post by: Starburst on April 05, 2024, 04:58:12 PM
cwp-srv is running 7.4.33