This tutorial will guide you on how to upgrade your server to the latest PHP 8.0 version. 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.


Please note that PHP 8.x requires Debian 9 at a minimum. It is not compatible with Debian 7 and Debian 8.

How to Upgrade to PHP 8.x Version


Prerequisite for upgrading to PHP 8.x:

  1. Check the compatibility of your application code with the selected version of PHP.


It is recommended to take a server backup before updating the PHP version if you may need to revert to a previous PHP version and restore your application.

Upgrade PHP Version — 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.

Upgrade PHP Version — Upgrading to PHP 8.x

  1. Click edit to view the available PHP versions.

2. Select PHP 8.0 version.

3. Finally, click Save.

4. You will be prompted to check if your web applications are compatible with your chosen PHP version. If yes, click OK to proceed.

This may take a few minutes to upgrade the PHP version. You will be notified on the same screen once the PHP version is updated. You can also read about the available PHP 8.x modules.

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?