Changing the PHP version via CloudLinux Selector in Plesk is a straightforward process.
Here’s a step-by-step guide to help you switch PHP versions using the CloudLinux Selector:
Step 1: Log in to Plesk
- Open your Plesk control panel by navigating to
https://your-domain.com:8443
(replaceyour-domain.com
with your actual domain or IP address). - Enter your username and password to log in to the Plesk dashboard.
Step 2: Access CloudLinux PHP Selector
- In the Plesk dashboard, navigate to "Domains".
- Find the domain for which you want to change the PHP version and click on it.
- On the next page, click on "PHP Settings" under the "Web Hosting" section.
If CloudLinux is installed and enabled on your server, you'll see an option to change the PHP version under the PHP Selector or PHP Version section.
Step 3: Select PHP Version
- In the PHP Settings page, you will see a dropdown labeled "PHP Version" or "PHP Selector" (this may vary depending on your Plesk version).
- Click on the dropdown menu, and you'll see a list of available PHP versions, such as PHP 7.4, PHP 8.0, PHP 8.1, etc.
- Select the desired PHP version from the list.
Step 4: Apply the Changes
- After selecting the PHP version you want to use, scroll down and click the "OK" or "Apply" button to save the changes.
Step 5: Test the New PHP Version
- To ensure that the new PHP version is working correctly, you can create a simple PHP file (e.g.,
phpinfo.php
) in the root directory of your domain. - Add the following code to the file: