Sites

Switch PHP Version

Change PHP versions per site without downtime or server-wide impact.

3 min read

Switch PHP Version

GHP Cloud supports multiple PHP versions on the same server simultaneously. Each site runs in its own isolated PHP-FPM pool, so you can run PHP 7.4 for a legacy application on the same server as PHP 8.3 for a new project.

Supported PHP versions

GHP Cloud currently supports PHP 7.4, 8.0, 8.1, 8.2, and 8.3. New minor versions are added within a few weeks of their official release. PHP 5.6 and 7.0–7.3 are available on request for legacy applications but are not recommended for new sites.

How to change PHP version

1. Open your site in the GHP Cloud dashboard

2. Click the PHP tab in the left navigation

3. The current version is shown with a badge

4. Click Switch PHP Version

5. Select the target version from the dropdown

6. Click Apply

GHP Cloud stops the current PHP-FPM pool, installs the new PHP version if not already present, creates a new pool running under the selected version, and reloads Nginx. The switch takes about 5–10 seconds and causes less than a second of downtime for the site.

Installing PHP extensions

Each PHP version has a set of pre-installed extensions chosen for WordPress compatibility: mysqli, pdo, curl, gd, imagick, mbstring, zip, opcache, intl, and xml. If your application needs additional extensions, click PHP Extensions and toggle them on from the list.

PHP configuration (php.ini)

You can override PHP configuration per site. Click PHP → Configuration and adjust common values:

ini
upload_max_filesize = 64M
post_max_size = 64M
memory_limit = 256M
max_execution_time = 120

Changes take effect immediately when you click Save — no server restart needed.

Checking which PHP version is active

From your site's WP-CLI terminal or SSH session, run:

bash
php -v

Or check from within WordPress with the Health Check plugin.

Was this article helpful?

Need help? →