Article ID: 130654, created on Apr 15, 2017, last review on Apr 15, 2017

  • Applies to:
  • Operations Automation 7.0

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

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07 0871c0b47b3b86ae3b1af4c2942cd0ce 1941880841f714e458ae4dc3d9f3062d

Email subscription for changes to this article
Save as PDF