On Linux systems, you can install any PHP version you need and then make
it available in Plesk by registering it with the
To add the support for an arbitrary PHP version in Plesk:
Install the desired PHP version on your server. For installation guidelines, refer to the official PHP documentation available at http://php.net/manual/en/install.php. In brief, the installation includes the following main steps.
Note: These steps are provided for demonstration purposes only. Depending on your operating system and the desired configuration, installation steps can differ significantly. When you install an additional PHP version on your server, read the official PHP documentation on installation.
Log in to your server as
Obtain the PHP source you need from the official website (http://php.net/downloads.php) and unpack it:
gunzip php-NN.tar.gz tar -xf php-NN.tar
Configure and build PHP. This is when you can customize PHP with various options, such as specifying which extensions will be enabled. Run
./configure --helpfor a list of available options.
cd ../php-NN ./configure --prefix /usr/local/phpNN make make install
Set up your
cp php.ini-development /usr/local/lib/php.ini
You may edit your
.inifile to set PHP options. If you prefer having
php.iniin another location, run the
configureutility with the option
--with-config-file-path=/some/pathin step 3.
Register the new PHP version in Plesk using the
php_handlerutility. For details, refer to the CLI Guide.