PHP Version (updates)

SYSTEM INFORMATION
OS type and version Debian 12.6 (latest)
Virtualmin version 7.20.2 Pro

Hello,

Currently i’m running only one default PHP server. Version: PHP-FPM 8.2.20 Server.
The new PHP version 8.3 is not yet available in the regular debian repositories.

But as time passes and the 8.3 version does become the standard latest version will I be able to upgrade it from 8.2 to 8.3 with apt-get update && apt-get upgrade? Or should i manually install 8.3 next to the 8.2 one. I’d rather update it (when possible after time passes) from 8.2 to 8.3 , so i only have one PHP installation server. Thank you for your time.

Did you read the docs??

Yes I did, got that one in my bookmarks, but it doesn’t elaborate if it is possible to upgrade from 8.2 to 8.3. I’d rather not have multiple PHP configurations. I couldn’t find a simple anwser to this.

You don’t upgrade you switch.

Thats the ways its done in virtualmin. Its very simple system.

Just install the new version and remove theold version, if that’s what you want to do, remembering to upgrade all existing domains to the version you installed rather than the one you removed. TBF running 2 versions of php does not cause issues

Thanks! Seems fair enough. I guess the only way to go, is to have multiple configurations then. I wasn’t sure on that, forgive me. I will then later remove the older version (purge it).

You can just remove if not used, yes. I use rocky so not great at Debian package manager.
I would use the remove switch like
dnf remove php81-php-{cli,fpm,pdo,gd,mbstring,mysqlnd,opcache,curl,xml,zip}

Yea, once all domains are switched to 8.3. And running fine I can do:
sudo apt purge php8.2*

I now know what to do in the future.

1 Like

I dont know how it works for debian/ubuntu, but maybe you can achieve the same with ppa sury

for alma/rocky/rhel there is the REMI repo.

It can be used to replace the stock php, so you dont have to deal with different versions.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.