Passbolt PHP 7.4 upgrade

hello Guys,
I have been running Passobolt with no issues, and I always update it as releases come out, however, I’d like to upgrade to a newer latest stable version of PHP, however, I can’t find a definitive guide to do it with Passbolt. Is there anyone who can help with this?
I have Debian 11 with PHP 7.4.33.
looking forward to your help.

Hi Shootify,

You didn’t mention which version of passbolt server you have (Hover your mouse over the heart on the bottom right corener of the web UI) and whether passbolt was installed via package or source.

Have you considered doing a backup and migration to a squeaky clean new Debian install?

If you’re running on physical hardware that’s more nerve-wracking than if you can spin up a virtual machine and test the backup/migration but… it may be worth it, especially if the machine doesn’t have other legacy services you’re using it for.

So “it depends” but you would certainly find value in doing a test run of migrating your backups to a Debian 12 VM.

I’m sorry not to be too helpful with vague advice but the great thing of getting a new Debian 12 OS up and running with your current passbolt backups is that you can then go back and try upgrade the Debian 11 server as a learning experience.

Backup: https://www.passbolt.com/docs/hosting/backup/from-packages/
Migrate: https://www.passbolt.com/docs/hosting/migrate/server/ce/debian/

What about the secret keys of my collaborators?
Every user private key should also be backed up, this is however not something we/you can automate easily for now (passbolt might provide a functionality for this in the future). We believe it is best if this is the responsibility of the end user. There is a dedicated step during the extension setup to that purpose.

I’m happy to answer more questions here if you have them.

cheers
gareth

hi thanks for the reply,
my Passbolt version is 4.11 .0 and it was installed using the the link https://www.passbolt.com/docs/hosting/install/ce/debian/
I can try to upgrade to debian 12, but that is going to take way more time, so if i can just upgrade php to install the latest Passbolt V5 once release then it will be better.
Is there any specific guide for this ?
thanks

Hi Shootify,

There’s no specific passbolt documentation for upgrading PHP 7.4 to 8.2 on Debian 11 as no matter which distribution or deployment method one chooses there’s still the underlying operating system (or container) to manage separately.

You didn’t mention if this is on bare metal or virtual hardware. If your system is bare metal then any kind of upgrade has potential risks. I could link to “how to upgrade PHP to 8.2 on Debian” but I don’t think that does you a favour because you might find that there are issues when you try doing that which end up with weird library issues.

If it’s a VM that you can snapshot then there’s no harm in following a guide but that is not an upgrade specific to passbolt, just to Debian 11.

Good luck, happy to answer your questions.

cheers
gareth

my system runs on Vm.
I think developers should consider providing an official guide regarding this. I can follow the debian 11 guide to upgrade php but will be better if passbolt suggest a way of doing this in a more secure way to avoid future issues.
thanks for the reply.

1 Like