How to install and uninstall PHP versions via Plesk


This topic explains how the Plesk administrator can install PHP on the server. To install a specific PHP version on the server or remove one from the server, follow these steps:

1. Go to Tools & Settings > Updates and Upgrades. Then open the Add/Remove Components tab, as shown on the  picture below.


  • (Plesk for Linux) Expand the Web hosting section, and then the PHP interpreter versions
  • (Plesk for Windows) Expand the Plesk hosting features


2. Here, currently installed PHP versions are marked with a green checkbox icon, and those currently not installed with a red cross icon. Select the PHP versions you want to install by clicking the corresponding icon Install. Select the PHP versions you want to remove by clicking the corresponding icon Remove. On the screenshot below, PHP 7.1 is marked for installation, and PHP 5.6 for removal.


3. Click Continue to install/remove the selected PHP versions.

Whenever a PHP version is installed, Plesk automatically configures the standard PHP handler types (CGI, FastCGI, PHP-FPM) for it.

Note: On older Operating Systems (for example, CentOS 6.x), it is necessary to install the PHP-FPM support from OS vendor component to enable the use of the PHP-FPM handler. The component can be found on the Add/Remove Components tab in the Web hosting > Nginx web server and reverse proxy server section.


Note: On newer Operating Systems (for example, Debian 9), older PHP versions (5.6 and earlier) may not be available for installation because they are not compatible with the modern OpenSSL versions those Operating Systems comes with.

Was this article helpful?
0 out of 0 found this helpful

Have more questions? Contact our support instantly via Live Chat