Hosting & sites

Changing the PHP version for your site

How to switch PHP versions per site and which version to use.

Changing PHP version

Each site on KapsuleHost can run a different PHP version independently.

How to change

  1. Go to Sites → your site → Settings
  2. Under PHP version, select your desired version
  3. Click Save. The change takes effect immediately (no restart needed)

Available PHP versions

  • PHP 7.4 (legacy, use only if required)
  • PHP 8.1 (stable)
  • PHP 8.2 (recommended)
  • PHP 8.3 (latest)

Which version should I use?

Use PHP 8.2 unless you have a specific reason not to. It's the most widely tested version for WordPress and is supported until December 2026.

PHP 8.3 is the newest but some older plugins may have compatibility issues. Test before switching a production site.

PHP 7.4 is end-of-life. Use it only if a plugin forces you to, and update or replace that plugin as soon as possible.


WordPress compatibility

Most WordPress plugins and themes support PHP 8.2. To check if a specific plugin supports 8.2:

  1. In WordPress dashboard, go to Plugins
  2. Look for the "Tested up to" and "Requires at least PHP" fields in the plugin details

If a plugin isn't listed as compatible, check the plugin's support forum on wordpress.org before upgrading PHP.


Checking your current PHP version

Run this in your site's root via SSH:

php -v

Or create a phpinfo file temporarily:

<?php phpinfo(); ?>

Delete it after checking. Never leave phpinfo files on production sites.

Benötigen Sie noch Hilfe?

Schreiben Sie uns an support@kapsulehost.com oder öffnen Sie einen Chat in KPanel.

KPanel öffnen
Changing the PHP version for your site