Skip to content

How to Change the PHP Version on Cloudways: Per Application and Per Server (2026 Guide)

On this page

Last updated: · By

In short: on Cloudways you now change the PHP version for each site separately: in the application, go to Application Settings, open the PHP Settings tab, click the edit icon next to PHP Version, choose a version and click Proceed. The change takes a few minutes, affects only the site you picked, and causes a few seconds of downtime while PHP restarts. On older servers (Debian 10 and below) the version is still set for the whole server.

⏱ Time needed: 5 minutes, plus testing time · Difficulty: easy · Last checked against the official documentation: 6 Nov 2026

Why the PHP version matters

PHP is the programming language that WordPress, WooCommerce, Laravel and Magento run on. A new version comes out every so often, and it is usually faster and more secure. Old versions stop receiving security updates, and a site running on them is more exposed. To deploy a Laravel project to a server, see the guide to deploying a Laravel project. For another custom PHP application, see managed PHP hosting: PHP-FPM, Composer and Git.

On the other hand, not every piece of code works on every version. An old plugin, a theme that hasn’t been updated or custom code can break on a new version. That’s why upgrading PHP isn’t a blind click: you test, you back up, and only then you upgrade.

What changed in 2026: a PHP version per application

Until recently, on Cloudways Flexible the PHP version was set at the server level. A change affected every site on the server, and that is what I demonstrated in the earlier version of this guide. If one site needed an old version, the whole server was stuck with it, or you needed a separate server.

Today Cloudways lets you choose a separate PHP version for each application. According to the documentation, the feature is rolling out to all servers running Debian 11 and above starting 10 September 2026, at no extra cost. One site can run on PHP 8.4 and another, on the same server, on 8.1.

Version per applicationVersion per server
Where you change itApplication Settings > PHP Settings in the applicationSettings & Packages > Packages on the server
What it affectsOnly the application you pickedThe default for applications that don’t have their own version, and for new applications
RequirementsA Debian 11 or newer serverAny server
When to use itAlmost alwaysOlder servers, or when you want to change the default

Which PHP versions are supported, and what about compatibility?

As of November 2026, Cloudways supports PHP 7.4, 8.0, 8.1, 8.2, 8.3 and 8.4. New servers and applications default to PHP 8.2. Versions 5.6 through 7.3 have been retired, and PHP 8.5 isn’t available yet but is expected by the end of 2026.

PHP versionWordPressWooCommerce / MagentoNotes
7.44.3 and upMagento 2.4.0–2.4.3An old version. Upgrade soon
8.0 / 8.1 / 8.25.6 and upMagento 2.4.4 and up8.2 is the default
8.35.6 and upMagento 2.4.7
8.46.7 and up (the latest 6.x releases)Magento 2.4.8Flexible only, on a Debian 11 or 12 server only

The table is based on Cloudways’ compatibility page. On all versions the memcache extension is not supported, and memcached is available instead. PHP 8.4 removed several extensions from the core, including IMAP and Pspell, so if a site uses them, check before you upgrade.

Before you start

  • Check plugin and theme compatibility. In WordPress, check on each important plugin’s page which PHP version it was tested with. Plugins that haven’t been updated in a year or more are the first suspects.
  • An on-demand backup of the application. If something breaks, you can go back to the previous version and restore.
  • Test on Staging. The safe way: create a staging environment on the same server, change the PHP version there, test, and only then change it on the live site. Staging on the same server costs nothing extra.
  • A quiet hour. The change restarts the site’s PHP. On an online store, it’s best to do it at night.
  • A small server? According to Cloudways, running several PHP versions in parallel increases memory use, and on a 1GB or 2GB server you may notice it. The recommendation is a server of at least 4GB when you run different versions for different applications.

How to change the PHP version for an application, step by step

  1. In the management panel, click Flexible in the side menu, go to Applications and select the application.
  2. In the application’s side menu, click Application Settings.
  3. Go to the PHP Settings tab. Here you’ll see the application’s current version.
Choosing the PHP version and the advanced PHP editor for an application
Choosing the PHP version
  1. Click the edit icon next to PHP Version.
  2. In the Update PHP Version window, pick the version you want from the list. Cloudways will show a warning asking you to make sure the site is compatible with that version.
The window for choosing an application's PHP version on Cloudways, with the compatibility warning
Choosing the PHP version
  1. Click Proceed. The application’s PHP restarts, and a success message appears.
  2. Test the site: the home page, important pages, forms, the shopping cart and the admin area.

How to confirm the version changed

  • In the panel: in the same PHP Settings tab, the version shown is the application’s version.
  • In WordPress: Tools > Site Health > Info > Server. The PHP version field shows the version the site is actually running on.
  • Over SSH (for advanced users): the command ls -al /home/master/applications/<app_user>/.cw/bin/ shows which version the application’s php points to.

Note: php -v as the master user over SSH shows the server’s default, not the application’s version.

Changing the PHP version at the server level

This is the classic method. It is still relevant for older servers that don’t support a version per application, and for changing the server’s default.

  1. In the panel, open Servers and select the server. You can also use search.
  2. Under Server Management, choose Settings & Packages.
  3. Go to the Packages tab.
  4. Next to PHP, click the edit icon (the pencil), choose the version and save.
Changing the server's PHP version in the Packages tab on Cloudways
Packages you can install or enable on the server

Important: on a server that supports a version per application, a change at the server level doesn’t alter applications that already have their own version. It affects applications that follow the default and new applications. On an old server, the change affects all the sites on the server, so test all of them.

Upgrade and downgrade limits: from version 8.x you can upgrade to any higher version and downgrade to lower supported versions. You can’t go back to retired versions (5.6 through 7.3). PHP 8.4 requires a Debian 11 or 12 server.

How to change the PHP version on Autonomous

  1. In the panel, click Autonomous and then My Applications, and select the application.
  2. Click Workflows/Tools and go to the PHP Settings tab.
  3. Open Select PHP Version and choose a version.
  4. Confirm with Confirm. While the update runs, some actions won’t be available, and you’ll get a notification when it finishes.

Autonomous doesn’t have PHP 8.4 at the moment. It is available only on Flexible.

Black Friday80% off
80% off 2 months of managed hosting

The code BFCM802 takes 80% off your bill for the first two months (up to $200 off per month), including unlimited free site migrations. New customers only, and only until the offer ends.

The offer ends on December 4, 2026 at 23:59 (UTC+2).

Ends in—days—hours—minutes—seconds
Code:
Grab the 80% now

Start with a free trial, no credit card. Enter the code at checkout and check that it shows up.

After Black Friday: 30% off for 3 months with the code ASAEL. On a large server (above about $444 a month) ASAEL already saves more today. BFCM802 vs. ASAEL calculator

Cron jobs, WP-CLI and Composer after switching versions

When an application has its own PHP version, there are a few places where it’s easy to run on the wrong version by mistake:

  • Cron jobs from the panel: jobs created in the application’s Cron Job Management run automatically with the application’s version, and update when you switch versions. This is the recommended way. See the guide to cron jobs on Cloudways.
  • Manual cron jobs (crontab -e): don’t write php or wp without a path. Use a full path, for example /usr/bin/php8.2, or the application’s WP-CLI: /home/master/applications/<app_user>/.cw/bin/wp.
  • Composer and Artisan over SSH: as the master user they run on the server’s default. Log in with the application’s access details, or run with a full path: /usr/bin/php8.4 /usr/local/bin/composer install.
  • Database Manager: keeps working with the server’s PHP version, and that is normal.

Common mistakes and how to fix them

The site shows a critical error after the upgrade: almost always an incompatible plugin or theme. Go back to the previous version (steps 4 to 6 with the old version), and check the application’s error log to see which file caused the problem. Update or replace it and try again.

I don’t have the PHP Version option in the application: the server runs on Debian 10 or below, which doesn’t support a version per application. Change it at the server level, or consider cloning your sites to a new server.

I changed the version for one site and it seems to have affected another: check that you edited the right application. Applications without their own version follow the server default, so a server-level change does affect them.

PHP 8.4 isn’t in the list: the server isn’t running Debian 11 or 12, or you are on Autonomous, where 8.4 isn’t available.

Composer complains about an incompatible PHP version: you’re logged in as the master user. Log in with the application’s access details or run with the full path of the PHP version.

The server got slow after I set several versions: every active PHP version uses memory. On a small server, consolidate the sites onto one version or scale the server up.

Sources

Frequently asked questions

Which PHP versions does Cloudways support?

As of November 2026, Cloudways supports PHP 7.4, 8.0, 8.1, 8.2, 8.3 and 8.4. New servers default to PHP 8.2. PHP 8.4 is available only on Flexible and requires a Debian 11 or 12 server, and PHP 8.5 is expected by the end of 2026.

Can I run different PHP versions for different sites on the same server?

Yes, on servers running Debian 11 and above. You change the version in each application’s settings separately, and the other sites on the server aren’t affected. On 1GB or 2GB servers, Cloudways warns that several versions in parallel increase memory use.

Will changing the PHP version take my site down?

The change itself only restarts PHP, with a few seconds of downtime. The real risk is compatibility: a plugin, theme or old code that doesn’t support the new version. That’s why you test on a Staging environment first and take a backup.

Which PHP version is recommended for WordPress?

For an up-to-date WordPress site, PHP 8.2 or 8.3 is a safe choice, and 8.4 suits WordPress 6.7 and above. The decision depends on your plugins and theme, so check their compatibility before you upgrade.

How do I go back to the previous PHP version if something breaks?

In the application, under Application Settings, open the PHP Settings tab, click the edit icon next to PHP Version, choose the previous version and click Proceed. If the errors continue, restore the backup you took before the change.

Why does php -v over SSH show a different version from my site?

Because the master user over SSH works with the server’s default PHP version, not the application’s version. To see the site’s version, check the panel, WordPress Site Health, or the application’s .cw/bin folder.

Official source: How to Change PHP Version for Your Application on Cloudways, How to Upgrade PHP Version on Cloudways, PHP Compatibility on Cloudways Platform (Cloudways Knowledge Base). Written and checked by Asael Dreyer · Updated: 6 Nov 2026

Disclosure: this is an independent site, not the official Cloudways site. Some links on this site are affiliate links: if you sign up through them we earn a commission, at no extra cost to you. Full details

Picture of Asael Dreyer
Asael Dreyer

Hi, I'm Asael Dreyer, CEO of an SEO agency that runs hundreds of websites hosted on dozens of Cloudways servers.
Everything you will find here comes from hands-on experience, mine and my teams', straight from the field: from the guides to the recommendations. All to help you get the most out of Cloudways.

More about me →

Need help? Got a question about your server or this guide? Write to us and we will get back to you.

More guides on this topic:
מפריד
Thanks for your message!
We will get back to you soon.
Ready to get started?

Sign up with the coupon code ASAEL