×
UpdatePHP Pro Log in Register
PHP expiry alert : PHP v8.1 has recently expired. Is your website still running this version? Click here for more details
SAFE versions of PHP: 8.5.12, 8.4.27, 8.3.36, 8.2.35
☰

PHP2Shell (CVE-2026-109618 / CVE-2026-109619) is a critical security problem in PHP itself that lets attackers take over web servers. Every website that runs PHP should be updated to 8.5.12, 8.4.27, 8.3.36, 8.2.35 or newer as soon as possible. Read our PHP2Shell check and patch guide.

Disclaimer: before attempting to update the PHP version of your website we would highly recommend that you make a full backup of it, just in case anything goes wrong.

openSUSE comes in two main editions. Leap is a fixed release that changes slowly and suits servers, while Tumbleweed is a rolling release that always carries the newest software. Both use the zypper package manager, and in both of them the PHP packages are named php8 rather than after a specific minor version.

Check which PHP version you have now

Run the command below to see which PHP version is used on the command line, and then use our free PHP version checker to confirm which version your website is actually running.

php -v

To see which PHP packages and extensions are installed, and which version the repositories you have enabled can offer, run these two commands:

zypper search --installed-only php8 zypper info php8

Option 1: update from the standard repositories

On Tumbleweed, PHP is updated to each new release shortly after it comes out, so a normal distribution upgrade is all you need:

sudo zypper refresh sudo zypper dup

On Leap, the PHP branch stays the same for the whole life of a release, but SUSE applies security fixes to it. Running sudo zypper refresh followed by sudo zypper update keeps it patched. If you need a newer branch than your Leap release offers, you can either upgrade to the next Leap release or use option 2.

Option 2: add the devel:languages:php repository

The openSUSE Build Service hosts a project called devel:languages:php, which is where the openSUSE PHP maintainers prepare new versions before they reach the main distribution. It provides newer PHP releases for Leap. Because it is a development project, packages can change quickly, so test your site carefully after using it.

Open https://download.opensuse.org/repositories/devel:/languages:/php/ in a browser and find the folder that matches your Leap release. Then add that folder as a repository, replacing the address below with the one you found:

sudo zypper addrepo --refresh https://download.opensuse.org/repositories/devel:/languages:/php/YOUR-RELEASE-FOLDER/ php sudo zypper refresh

When zypper asks you to trust the new signing key, check that it belongs to the devel:languages:php project before accepting it. Now switch the installed PHP packages over to the versions in the new repository:

sudo zypper dup --from php --allow-vendor-change

Install the extensions your site needs

openSUSE packages each extension separately. The list below covers what most content management systems need, but you should compare it with the packages you had installed before and add anything else your site uses.

sudo zypper install php8 php8-cli php8-fpm php8-mysql php8-mbstring php8-gd php8-curl php8-intl php8-zip php8-xmlreader php8-opcache

Restart your web server

If you use Apache with the PHP module, make sure the module package is installed and enabled, and then restart Apache:

sudo zypper install apache2-mod_php8 sudo a2enmod php8 sudo systemctl restart apache2

If you use PHP-FPM with Apache or Nginx, restart the PHP-FPM service after the upgrade so that it loads the new version:

sudo systemctl restart php-fpm

Your PHP settings live in /etc/php8/, with separate folders for Apache, the command line and PHP-FPM. Check that any changes you made to php.ini are still in place after the upgrade.

Are you still stuck?

If your site shows errors after the upgrade, our guide to common PHP errors after upgrading explains the usual causes. It may also be time to call in a professional to assist, so check out our listings of PHP developers that can help upgrade or maintain your website.

Back to Updating PHP manually on Linux systems
Article last updated: 24th October, 2026