How to Change the PHP Version via CloudLinux Selector in Plesk? (Video)

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 (replace your-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:
       <?php
           phpinfo();
           ?>
  • Visit http://your-domain.com/phpinfo.php in your browser. The page should display information about the current PHP version running for your domain.

Additional Settings (Optional)

If you need to customize PHP settings (like max_execution_time, upload_max_filesize, etc.), you can modify them directly from the PHP Settings page after selecting the PHP version.

Troubleshooting

  • If the PHP version doesn't change or you encounter issues, make sure your server has CloudLinux properly installed and configured.
  • You may need to clear your browser cache or refresh the page to see the changes.
  • If the required PHP version is not listed, check with your hosting provider to ensure that CloudLinux is properly configured and that the PHP version you're looking for is available.

By following these steps, you can easily switch between PHP versions for your websites hosted on Plesk using CloudLinux Selector.

 
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Enable ionCube Loader using CloudLinux Selector in Plesk? (Video)

Enabling ionCube Loader on your server via CloudLinux Selector in Plesk is a simple process....

How to Enable the GD extension of PHP using CloudLinux Selector in Plesk? (Video)

Enabling the GD extension for PHP using CloudLinux Selector in Plesk is a straightforward...

How to Enable the Mailparse Extension of PHP Using CloudLinux Selector in Plesk? (Video)

To enable the Mailparse extension for PHP using CloudLinux Selector in Plesk. Follow these...

How to Enable or Disable PHP Extensions Using the CloudLinux Selector in Plesk? (Video)

Enabling or disabling PHP extensions via the CloudLinux Selector in Plesk is an easy and...

How to Enable or Disable PHP's allow_url_fopen using CloudLinux Selector in Plesk? (Video)

Enabling or disabling PHP's allow_url_fopen directive through CloudLinux Selector in Plesk is...