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 cloud-servers or server-level hosting where multiple applications may require different PHP versions.
Switching the PHP Version
Stap 1: Open the PHP selector
Log in op het Plesk-controlepaneel.
Vanuit de linkerzijbalk, open Websites & Domeinen and locate the domain you want to configure.
Click the PHP-kiezer icon in the options panel.
[Schermafbeelding: Websites & Domains page with PHP Selector icon]
Stap 2: Select the PHP version
On the PHP Selector page, choose the required PHP version from the Current PHP Version list.
Klikken Set as current to apply the change.
[Schermafbeelding: PHP version dropdown with Set as current button]
The selected PHP version becomes active immediately for the domain.
Adjusting PHP Settings and Extensions
Stap 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.
[Schermafbeelding: PHP modules list]
Stap 4: Modify PHP options
Click the 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.
[Schermafbeelding: PHP options configuration screen]
Praktische opmerkingen
- 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 speciale server infrastructure where multiple applications coexist on the same system.