Upgrading php7.3 on Oracle Linux Server 7.9 [upgrade OS or use 3rd party yum repo]

WARNING : PHP 7.3 have reached its “End of Life” in
December 2021. Even, if this package includes some of
the important security fixes, backported from 8.0, the
UPGRADE to a maintained version is very strongly RECOMMENDED.

What is the latest php version for Passbolt? And how can I upgrade?

Hey @Morgoth the latest version of PHP that we support is 8.1

How to update will be dependent on what distribution you’ve installed on. Which are you on?

Oh great. I didn’t found the upgrade guide for it
My OS is: Oracle Linux Server release 7.9

We don’t have a guide for specifically updating PHP.

I’d suggest migrating to Oracle Linux 8 though which we have a guide for here. This will by make your new server have PHP 8.1 by default.

Same question here. CentOS 7.9, currently, and PHP 7.3.
I did make a snapshot of the VM, and then upgraded to php 8.0. But then Passbolt only gave me a blank page, and didn’t load. Poking around I think it might have had to do with gnupg, not sure. But I wasn’t able to get it to work again, and reverted my snapshot.

any advise?
thanks.

I cannot upgrade linux 7.9 to 8 at the moment. but I tried this and it works for me

yum install -y https://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum -y install yum-utils -y
yum-config-manager --disable ‘remi-php*’
yum-config-manager --enable remi-php80
yum update -y
pecl install gnupg
reboot

after that I test it by
php -v

and then I did update passbolt to 3.10.0

cd /var/www/passbolt/
sudo systemctl stop nginx
sudo -su nginx git remote set-branches origin “*”
sudo -su nginx git fetch
sudo -su nginx git checkout tags/v3.10.0
sudo -su nginx php -d allow_url_fopen=on /bin/composer.phar install --no-dev -n -o
sudo -su nginx bash -c “./bin/cake passbolt migrate --backup”
sudo -su nginx bash -c “./bin/cake cache clear_all”
sudo systemctl start nginx
sudo su -s /bin/bash -c “/var/www/passbolt/bin/cake passbolt healthcheck --jwt” nginx

now it works.

1 Like

@Morgoth that seems like a good short term thing for me too. thanks.
i did also fine this. and will keep it handy.