Error reading /etc/psa/php_versions.json: can not parse php_versions_info object

Refers to:

  • Plesk
  • MT:83a88e756c875d76ba8bf35821ee3bc8
  • MG:6d9f1c68297dac8f2389f572af8200f4

Created:

2016-11-16 13:24:05 UTC

Modified:

2017-02-13 06:13:21 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Error reading /etc/psa/php_versions.json: can not parse php_versions_info object

Symptoms

Plesk Panel encounters various errors. For example, Webmail is showing Internal Server Error. Different Plesk utilities fail with an alike error:

# /usr/local/psa/bin/admin --show-password

2013-11-21T12:54:04+01:00 ERR (3) [util_exec]: proc_close() failed
2013-11-21T12:54:06+01:00 ERR (3) [panel]: Error reading /etc/psa/php_versions.json: can not parse php_versions_info object : JSON object is expected. Error occured at offset 0, character '\\x00'.
Releasing semaphore 27 in request

The same error in Plesk Panel GUI:

ERROR: Service_Agent_Exception
Up Level
Unable to execute php_handlers_control: Error reading /etc/psa/php_versions.json: can not parse php_versions_info object : JSON object is expected. Error occured at offset 0, character '\\x00'.

Cause

'/etc/psa/php_versions.json' is modified or corrupted.

Resolution

  1. Save the original file:

    cp -p /etc/psa/php_versions.json /etc/psa/php_versions.json.orig
  2. Replace the file from psa-php5-configurator package. You can download the package from Plesk installation repository http://autoinstall.plesk.com/

    2.1. Download the corresponding package by using the proper URL which matches your OS:

    wget http://autoinstall.plesk.com/PSA_11.5.30/dist-deb-Ubuntu-10.04-x86_64/opt/php5/psa-php5-configurator_1.6.3-ubuntu10.04.build115130724.18_amd64.deb

    2.2. Unpack the file from a package and replace:

    • For Debian-like systems:

      mkdir extracted/

      cd extracted/

      dpkg -x /<path_to_package>/psa-php5-configurator_1.6.3-ubuntu10.04.build115130724.18_amd64.deb extracted/

      cp ./extracted/etc/psa/php_versions.json /etc/psa/php_versions.json
    • For RPM-like systems

      mkdir extracted/

      cd extracted/

      rpm2cpio /<path_to_package>/psa-php5-configurator-1.6.3-cos6.build115130724.19.x86_64.rpm | cpio -idmv

      cp ./extracted/etc/psa/php_versions.json /etc/psa/php_versions.json
Have more questions? Submit a request
Please sign in to leave a comment.