We generally support every official PHP version. Some discrepancies between the officially supported and Servebolt-supported versions are expected. We, for example, can’t support newer versions when they come out right away. This is because we rigorously test new versions to be secure and bug-free with our infrastructure. Additionally, we might support older versions longer than what is officially supported.
Here, you can check out all officially supported PHP versions from the PHP Foundation.
We recommend always running the most modern, stable version of PHP that your application supports. It is almost always faster, more secure and better maintained. It will also give your application the longest possible life instead of choosing tech that will soon be discontinued.
Changing PHP version
On the new Servebolt Platform, PHP versions can easily be changed per environment directly from our Admin Panel.
As of this writing, changing PHP versions requires a full site migration. This is because only one PHP version can exist per Bolt since PHP is server-specific.
To update the PHP version for your site, you first have to create a new Bolt with your new desired version. Copy all your files and database(s) over and test to see if anything breaks. Changing between major PHP versions is prone to breaking your site, so we recommend you test thoroughly. If everything works as expected, do another live migration. We recommend you enable maintenance so no new orders/signups, etc., get generated whilst the Data transfer ensues. Upgrade the new Bolt to a paid plan if not done already, add your domain and update your DNS with the new server IP or hostname. You can now alternatively cancel your old Bolt.
This is just a fresh reminder with an overview of the whole process. If you need a more detailed explanation for each step, please check out How to upgrade the PHP version of your Bolt.
Contact our Support chat for further assistance with PHP upgrades and downgrades.