Knowledge Base

How to switch PHP versions and settings on Plesk

This article describes how to use Plesk to change the active PHP version on an account.

Switching PHP versions using CageFS

  1. Log in to Plesk.
    If you do not know how to log in to your Plesk account, please see this article.
  2. In the left sidebar, click Websites & Domains:

    Plesk - Sidebar - Websites and Domains

  3. In options panel at the far right, click the PHP Selector icon.
    If the PHP Selector icon does not appear in the options panel at the far right, your server does not use CageFS. Please see the Switching PHP versions without CageFS section below.

  4. If there is more than one domain in the account, a dialog box is shown lisitng the avaialble domains. Select the desired domain from the Webspace list, then click the OK button.

  5. On the next page, select the desired version of PHP from the PHP Version listbox and then click the Set as current button.

Switching PHP settings with CageFS

  1. Follow instructions 1 through 4 abvove to get to the PHP Selector page.
  2. To add or remove PHP modules, select or clear the checkbox to the left of the module name.

  3. When all desired changes have been made, click the Save button at the bottom of the page.
  4. To change other settings, start by clicking the PHP Settings button near the top of the page. The PHP Settings page will be displayed.

  5. To change the settings, click on the setting value in the right-hand column, enter or select the desired setting and click the Apply button.

  6. When all desired changes have been made, click the Save button at the bottom of the page.

 

Switching PHP versions without CageFS

Plesk has multiple PHP versions available, to switch between these versions, follow these steps:

  1. Log in to Plesk.
    If you do not know how to log in to your Plesk account, please see this article.
  2. In the left sidebar, click Websites & Domains:

    Plesk - Sidebar - Websites and Domains

  3. Click Hosting Settings:

    Plesk - Hosting Settings

  4. Under Web Scripting and Statistics, in the PHP support (PHP version) list box, select the PHP version you want to use:

    Plesk - Version switcher

  5. Click OK. The new setting takes effect immediately.

Change PHP Settings without CageFS

  1. Follow steps 1 throught 3 above to get to the PHP Settings page.
  2. Scroll down to the Common Settings section of the page.
  3. To change the settings, click on the setting value in the right-hand column and enter or select the desired setting.

  4. When all desired changes have been made, click the Apply button at the bottom of the page.

More Information

For more information about Plesk, please visit https://www.plesk.com.