Plesk for Windows
Plesk for Linux
ABT: Group B
- Plesk for Linux
- Plesk for Windows
How to install/remove additional PHP versions provided by Plesk?
Additional PHP versions can be installed/removed by a Plesk administrator only. This can be done either via a Plesk interface (web-browser) or a command-line interface directly on a Plesk server.
Note: Ubuntu 18.04 and Debian 9 do not support PHP 5.6 and lower versions. Visit this KB article for details.
PHP 7.x versions are available starting from Plesk Onyx.
- What PHP 7.x versions come with Plesk
- How to upgrade Plesk to the next release
Installing/removing additional PHP versions via the Plesk interface
Note: Make sure that port 8447 is opened in firewall. If it is closed and cannot be opened, use the command-line instructions.
Log in to Plesk.
In Plesk, go to Tools & Settings and click Updates (Updates and Upgrades).
On the Updates and Upgrades page, click Add/Remove Components.
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.
Select required PHP versions for installation/uninstallation and click Continue.
Installing/removing additional PHP versions via a command-line interface
Connect to a Plesk server via SSH (Linux) / RDP (Windows Server).
Get the list of all available Plesk components (on Windows Server, use a command prompt as an Administrator):
MYSQL_LIN: plesk installer --select-release-current --show-components
Install/remove additional PHP versions using the component name from step 2.
Example of the command to install PHP 7.4:
Note: PHP 7.4 is available starting from Plesk Obsidian 18.0.21 Update 4.
Example of the command to remove PHP 5.6: