Colonel Serveur

Changing the active PHP version or adjusting PHP settings is a common task when troubleshooting compatibility issues or optimizing performance. Plesk provides a clear interface to switch PHP versions and manage extensions without editing configuration files manually.

This setup is typically used on environments running Plesk hosting where you have control over site-level PHP behavior.

Before You Start

Make sure the domain is already added in Plesk and that the required PHP versions are installed on the server. The available versions depend on how the server was provisioned.

On larger deployments, these controls are often used on serveurs cloud or server-level hosting where multiple applications may require different PHP versions.

Switching the PHP Version

Étape 1: Open the PHP selector

Log in to the Plesk control panel.

From the left sidebar, open Websites & Domaines and locate the domain you want to configure.

Cliquez sur le Sélecteur PHP icon in the options panel.

[Screenshot: Websites & Domains page with PHP Selector icon]

Étape 2: Select the PHP version

On the PHP Selector page, choose the required PHP version from the Current PHP Version list.

Faire un clic Set as current to apply the change.

[Screenshot: PHP version dropdown with Set as current button]

The selected PHP version becomes active immediately for the domain.

Adjusting PHP Settings and Extensions

Étape 3: Manage PHP modules

From the same PHP Selector page, you can enable or disable PHP extensions by selecting or clearing the checkbox next to each module.

Changes are applied automatically once a module is toggled.

[Screenshot: PHP modules list]

Étape 4: Modify PHP options

Cliquez sur le Options tab to access additional PHP configuration values.

To change a setting, click its current value and enter the new value or select it from the available options.

A confirmation message appears once each change is saved successfully.

[Screenshot: PHP options configuration screen]

Practical Notes

  • Always verify application compatibility before switching PHP versions
  • Test changes on staging environments when possible
  • Keep unused PHP modules disabled to reduce attack surface

Managing PHP versions at the domain level is commonly required on advanced hosting setups, including environments based on dedicated server infrastructure where multiple applications coexist on the same system.

Cet article a-t-il été utile?