Upgrade Passbolt from CE to Pro on Ubuntu
For this tutorial, you will need:
- A minimal Ubuntu 20.04 server.
- Passbolt CE Ubuntu package installed.
1. Take down your site
It is generally a good idea to stop running the site prior to the upgrade. This is to avoid having side effects such as active users corrupting the data in the middle of an upgrade.
$ sudo systemctl stop nginx
2. Backup passbolt
First things first, as this is a sensitive operation a backup of the instance must be performed to prevent any data loss. You can follow our backup process.
3. Upload your subscription key
You should copy your subscription key to
/etc/passbolt/license and ensure the permissions are correct.
sudo chown root:www-data /etc/passbolt/license sudo chmod 640 /etc/passbolt/license
4. Uninstall passbolt CE
Passbolt CE package should be removed prior to installing passbolt Pro.
sudo apt-get remove passbolt-ce-server
5. Update passbolt package repository
Update your repository to make passbolt-pro available for installation.
echo "deb https://download.passbolt.com/pro/ubuntu focal stable" | sudo tee /etc/apt/sources.list.d/passbolt-pro.list sudo apt-get update
6. Install passbolt Pro
Now you can install the passbolt Pro package.
sudo apt-get install passbolt-pro-server
As you have already configured passbolt CE, and passbolt Pro relies on the same configuration, you should reply:
- No for mysql configuration
- No to nginx configuration
7. Migrate the data
Once the package installed, run the following command to migrate the data to passbolt Pro:
sudo -H -u www-data /bin/bash -c "/usr/share/php/passbolt/bin/cake passbolt migrate"
8. Clear the cache
Make sure you clear the application cache, to make sure any changes in the database structure are reflected in model cache files:
sudo -H -u www-data bash -c "/usr/share/php/passbolt/bin/cake cache clear_all"
9. Take your site back up
Finally take passbolt back up:
sudo systemctl start nginx
This article was last updated on February 10th, 2021.