Plesk

How to install / remove additional PHP versions provided by Plesk

Question

How to install / remove additional PHP versions provided by Plesk?

Answer

Note: The list of PHP versions available for installation via the Plesk Installer can be viewed in this KB article.

Note: Make sure that port 8447 is opened in firewall. If it is closed and cannot be opened, use the command-line instructions below.

  1. Log in to Plesk.

  2. Go to Tools & Settings and click Updates (under Plesk).

  3. On the Install and Update page, click Add/Remove Components.

  4. On the Add/Remove Components page, expand:

    • Web hosting > PHP interpreter versions section, if this is a Linux server.

    • Plesk hosting feature section, if this is a Windows server.

  5. Select required PHP versions for installation or uninstallation and click Continue.

 

Installing or removing additional PHP versions via a command-line interface
  1. Connect to a Plesk server via SSH (Linux) / RDP (Windows Server).

  2. Get the list of all available Plesk components (on Windows Server, use a command prompt as an Administrator):

    plesk installer --select-release-current --show-components

  3. Install/remove additional PHP versions using the component name from step 2.

     

    Example of the command to install PHP 8.3:

    • for Linux:

      # plesk installer add --components php8.3

    • for Windows Server:

      C:> plesk installer add --components php83

       

    Example of the command to remove PHP 7.0:

    • for Linux:

      # plesk installer remove --components php7.0

    • for Windows Server:

      C:> plesk installer remove --components php70

 

Additional information

Exit mobile version