Symptoms

massUpdatePanelApps task fails with the message:

Last execution output

APS Application Error:
500 Internal Server Error

Checking /var/log/pa/pvps.log, the following error is recorded for the affected subscription:

You must have PHP 5.3.2 or later to install Plesk. Update PHP and try again.

Alternatively, the error could be:

stderr: PHP Fatal error:  Cannot use 'Null' as class name as it is reserved in         /usr/local/aps/7329a7f9-c2d1-40c9-b008-a61f1f5c8304/vendors/zendframework/zend-log/src/Writer/Null.php on line 12

The affected VE has default PHP version higher than 7.0.

Cause

Plesk in VPS Panel APS application does not fully support PHP 7.

Resolution

Check the current path PHP binary points to:

# ls -alh /usr/bin/php
lrwxrwxrwx 1 root root 26 Feb 21 10:56 /usr/bin/php -> /opt/plesk/php/7.1/bin/php

Switch the used PHP version to PHP 5 inside the VE for the time of running the massUpdatePanelApps task:

# unlink /usr/bin/php
# ln -s /usr/bin/php5 /usr/bin/php

After running the task and confirming the instance is updated, switch it back:

# unlink /usr/bin/php
# ln -s /opt/plesk/php/7.1/bin/php /usr/bin/php

Internal content