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 Hébergement Plesk where you have control over site-level PHP behavior.
Avant de commencer
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
Connectez-vous au panneau de configuration Plesk.
Depuis la barre latérale gauche, ouvrir Sites Web & Domaines and locate the domain you want to configure.
Cliquez sur le Sélecteur PHP icon in the options panel.
[Capture d'écran: Sites Web & 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.
[Capture d'écran: 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.
[Capture d'écran: 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.
[Capture d'écran: PHP options configuration screen]
Notes pratiques
- 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 serveur dédié infrastructure where multiple applications coexist on the same system.