All articles

Preparing for Passbolt v5: PHP 8.2 Requirement

5 min. read

Max Zanardo

Max Zanardo

11 March, 2025

What's changing?

Why are we making this change?

  • Security first: PHP 7.4 reached its end-of-life (EOL) in 2022. Using unsupported EOL versions means relying on software in your passbolt stack that no longer receives security patches or bug fixes—posing a significant risk for a security-focused product like passbolt.
  • Modern foundation: Passbolt v5 is built on CakePHP 5, which has deprecated support for PHP 7.4. This framework update brings performance improvements and new features that benefit all passbolt users.
  • Breaking changes: Major version releases, such as passbolt v5, are the appropriate moment to introduce breaking changes and update an application’s dependencies. This ensures passbolt continues to evolve and improve.

Who is affected?

Fig. Common distributions and their default PHP versions
Fig. Common distributions and their default PHP versions

How to prepare?

2. Stay on passbolt v4

3. Update existing stack

  1. Upgrade your OS: Perform an operating system upgrade to a version that supports at least PHP 8.2. While technically possible, this approach can be error-prone and isn not recommended for production environments without thorough testing.
  2. Upgrade PHP using alternative repositories: Some distributions allow PHP 8.2+ installation through alternative repositories like Ondřej Surý's PPA for Ubuntu/Debian or Remi's RPM repository for RHEL/CentOS. This approach can be complex and should also be tested carefully.

Upgrading PHP on RHEL 9/8 and Redhat-like distros using Remi's repository

dnf module reset php -y
dnf module disable php -y
dnf module enable php:remi-8.2 -y
dnf install -y php php-cli php-curl php-fpm php-gd php-intl php-json php-mbstring php-mysqlnd php-pecl-gnupg php-pgsql php-process php-xml php-ldap
php -v
systemctl enable php-fpm
systemctl start php-fpm
systemctl restart nginx

Upgrading PHP on Debian 11 and Ubuntu 22.04 using Ondrej's repository

sudo apt update 
sudo apt upgrade
curl -fsSL https://packages.sury.org/php/apt.gpg | sudo gpg --dearmor -o /usr/share/keyrings/php-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/php-archive-keyring.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php.list
sudo apt update 
sudo apt install -y php8.2 php8.2-cli php8.2-common php8.2-curl php8.2-fpm php8.2-gd php8.2-intl php8.2-mbstring php8.2-mysql php8.2-opcache php8.2-xml php8.2-gnupg php8.2-pgsql php8.2-ldap
php8.2 -v

sudo update-alternatives --set php /usr/bin/php8.2
php -v
sudo systemctl enable php8.2-fpm
sudo systemctl start php8.2-fpm
# Edit your passbolt nginx configuration
sudo nano /etc/nginx/sites-enabled/nginx-passbolt.conf
# Change the PHP-FPM socket path if necessary
# From: fastcgi_pass unix:/run/php/php7.4-fpm.sock;
# To: fastcgi_pass unix:/run/php/php8.2-fpm.sock;
sudo nginx -t
sudo systemctl restart nginx

Getting help

  • Community Edition users: If you have questions about upgrading to passbolt v5, the community forum is a great place to ask.
  • Pro and Cloud users: If you need assistance with your migration strategy, our support team is here to help, do not hesitate to contact us on our website.

The road ahead

Continue reading

The Definitive Guide to Credential Collaboration

6 min. read

The Definitive Guide to Credential Collaboration

In this TechRadar Pro opinion piece, discover tips for securing sensitive digital credentials.

Kevin Muller

Kevin Muller

21 March, 2025

Passbolt Clears Three Security and Compliance Audits

3 min. read

Passbolt Clears Three Security and Compliance Audits

This blog breaks down key findings from three independent assessments, reinforcing our commitment to strong security and compliance.

RB

Remy Bertot

4 March, 2025

Flag of European UnionMade in Europe. Privacy by default.