Adding PHP 7.0 support in Plesk

First thing you need to do is update to Plesk 12.5 (currently 12.5.30). For that you have to go to Server options, “Plesk->Updates and Upgrades” and then go to “Install or Upgrade Product”. You may get some warnings in case you installed third party modules so you should better remove them (it happended to me with mod_security) before doing the upgrade. As you can see I’ve already updated to 12.5.30 so I can’t show you the proper image but the options are just the same.

upgrade_plesk_product

Once you have Plesk updated the actual magic, in Linux systems, is done with this command (runned as root):

# plesk sbin autoinstaller --select-product-id plesk --select-release-current --install-component php7.0

Full PHP 7.0 install process log: http://pastebin.com/UjH9g4Ak

The nice thing about it is that you can just change the PHP version number to install another one, for example if you have a domain with an app that needs to run in a legacy PHP 5.2 version:

# plesk sbin autoinstaller --select-product-id plesk --select-release-current --install-component php5.2

Now you can select an specific PHP version for different domains by just setting it in the “PHP Settings” option. Before:

php_before

Changing the PHP version to 7.0:

php_70_change

After:

php_after

Ref: https://kb.odin.com/en/127701
https://kb.odin.com/en/125146

You might also like

Fix “There is no suitable CSPRNG installed on your system” in Plesk
After updating paragonie/random_compat you may get this error. This is caused because version 2.0 stopped...

Fix “This field was locked by vendor” in Plesk Updates source and installation settings
I was trying to install some new components to one on my Plesk managed servers but I got this error when...

ARToolKit with OpenKinect using the IR camera
More than one year ago I started adding Kinect support to ARToolKit using libfreenect. I had some results...

ARToolKit with OpenKinect using the IR camera
More than one year ago I started adding Kinect support to ARToolKit using libfreenect. I had some results...

Leave a Comment