Roundcube update fails after updating default PHP version

adam12

Verified User
Joined
Feb 19, 2016
Messages
148
Not sure what's going on with this. Maybe someone else has seen it.

I've swapped PHP slots so PHP 8.2 is now default, in order to facilitate a Roundcube upgrade. I also updated config files to reference the change in slots and triggered a configuration rewrite.

Code:
# PHP Settings
php1_release=8.2
php1_mode=php-fpm
php2_release=7.4
php3_release=7.0
php4_release=7.3

And now upgrading Roundcube fails.

Code:
# da build roundcube
download_cached: using cached '/usr/local/directadmin/custombuild/cache/roundcubemail-1.7.2-complete.tar.gz' file
updating database user da_roundcube@localhost password
Unsupported PHP version. Required PHP >= 8.1.Unsupported PHP version. Required PHP >= 8.1.Roundcube 1.7.2 installed

I assume it's using the php binary on PATH, but not sure what manages that symlink.

Code:
# which php
/usr/local/bin/php
# ls -fl /usr/local/bin/php
lrwxrwxrwx 1 root root 24 Aug 17 12:41 /usr/local/bin/php -> /usr/local/php73/bin/php
 
Switching the version of "php1_release" to 8.2 is not enough to start using PHP 8.2 as the default one. You also need to rebuild PHP 8.2 to get it built and applied using such command:
Code:
da build php 8.2
The command you ran:
Code:
da build php
did the similar job, but for all PHP versions which where assigned to "phpX_release" option.
 
Back
Top