This guide will assist you on how to upgrade your server’s PHP version to PHP 7.x. Your new server is configured to use PHP 7.4 by default. You can upgrade or downgrade to a different version using the Cloudways Platform. Available versions of PHP include PHP 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, and 8.0.

Important Announcement for PHP Older Versions

PHP 5.6, 7.0, 7.1, 7.2, and 7.3 versions are deprecated as of August 15th, 2022. As a result, new and existing servers with default PHP 7.4 or newer versions will not have an option to downgrade to older and deprecated versions; however, existing servers with deprecated versions will continue to work for the time being.

The deprecated versions will reach the end of life on February 28th, 2023; therefore, you are requested to upgrade to the latest version. Please refer to Cloudways deprecation process and policy for more details.

Please note that PHP 7 requires Debian 8 or greater and it does not work with the older Debian versions such as Debian 7.


How to Upgrade PHP Version

Step #1 — Navigate to Server Packages

Log in to your Cloudways Platform using your email address and password.

  1. From the top menu bar, open Servers.

  2. Then, choose your desired server.

3. Under Server Management, select Settings & Packages.

4. Choose the Packages tab.

Step #2 — Upgrading to PHP 7.x

  1. Edit the PHP version.

2. Choose your desired PHP version.

3. Next, click Save.

4. You will be shown a warning to check if all your web applications are compatible with your selected PHP version. If you have followed all the required steps and want to pursue them, click Ok.

You have successfully upgraded the PHP version. Similarly, you can also downgrade to a different PHP version as well. Also, see the PHP modules of your chosen PHP version.

That’s it! We hope this article was helpful. If you need any help, then feel free to search your query on Cloudways Support Center or contact us via chat (Need a Hand > Send us a Message). Alternatively, you can also create a support ticket.

Did this answer your question?