ajmal
August 31, 2022, 10:34pm
1
Im using multi PHP version, the default PHP version is 7.3, but my domain using 8.1 PHP version. I’m getting error Unsupported PHP version. Required PHP >= 7.3 at webmail.domain.com . How can i update PHP version for roundcube.
eris
August 31, 2022, 10:53pm
2
#!/bin/bash
# Update www.conf to a different version so users can safely delete older php version.
# www.conf is used for Roundcube, Rainloop and phpmyadmin
# Removal of the "www.conf" php version will cause issues with Rainloop not working. Current script updates it to the latest version of PHP installed. If that is not wanted use this script
version=$1
if [ ! -x "$(command -v php)" ]; then
echo "PHP is not installed. Aborting."
exit 1
fi
# Verify php version format
if [[ ! $version =~ ^[0-9]\.[0-9]+ ]]; then
echo "The PHP version format is invalid, it should look like [0-9].[0-9]."
echo "Example: 7.0, 7.4"
exit
fi
if [ ! -f /etc/php/$version/fpm/pool.d/dummy.conf ]; then
echo "PHP versions doesn't exists"
This file has been truncated. show original
/usr/local/hestia/install/upgrade/manual/upgrade_multi_php.sh 8.0
I don’t know if Roundcube has 8.1 support yet
ajmal
September 1, 2022, 10:01am
3
root@domain:/usr/bin# cd local
bash: cd: local: No such file or directory
root@domain:/usr/bin#
potap
September 1, 2022, 10:20am
4
/usr/local/hestia/install/upgrade/manual/upgrade_multi_php.sh 8.0
1 Like
ajmal
September 1, 2022, 11:01am
5
This path existing, But make sure i want to change PHP version for single domain Roundcube
eris
September 1, 2022, 11:35am
6
It only changes the php version for phpmyadmin and all webmail domains.
eris
September 1, 2022, 11:43am
8
Use:
./upgrade_multi_php 8.0
potap
September 1, 2022, 11:52am
9
/usr/local/hestia/install/upgrade/manual/upgrade_multi_php.sh 8.0
without CD
1 Like
ajmal
September 1, 2022, 7:18pm
10
I did it but still same problem can be seen
eris
September 1, 2022, 7:58pm
11
ls /etc/php/*/fpm/pool.d/www.conf
ajmal
September 1, 2022, 9:53pm
12
root@apps:/# ls /etc/php/*/fpm/pool.d/www.conf
/etc/php/8.0/fpm/pool.d/www.conf
root@apps:/#
eris
September 6, 2022, 12:34pm
14
v-rebuild-mail-domains user
?
Install PHP 7.4, rebuild and try again.
ajmal
September 8, 2022, 7:59am
19
I registered 3 users with 8 websites. all the websites are online with different PHP versions. I can’t rebuild is there any solutions? it’s excruciating for me.