How to add a custom PHP versions in Plesk running on Ubuntu 20 or 22?
How to add a custom PHP versions in Plesk running on Debian 10 or 11?
Warning: All the instructions below are to be performed at your own will and risk. These steps are provided for demonstration purposes only and are not supported by Plesk. Depending on the operating system and the desired configuration, installation steps might differ significantly. When installing a different PHP version on the server, read the official PHP documentation on installation. It's recommended to perform the installation in a test environment before modifying the production environment.
On Linux systems, custom PHP version can be installed and make it available in Plesk by registering these with
plesk bin php_handler command-line utility. Follow the steps depending on the OS as follows:
Note: The same steps can be used starting from PHP 5.6, adjust the version number in the commands accordingly.