PHP error after Plesk upgrade/update: "Cannot open shared object file: No such file or directory"

Refers to:

  • Plesk 12.5 for Linux
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Created:

2016-11-16 12:53:03 UTC

Modified:

2016-12-21 19:27:05 UTC

0

Was this article helpful?


Have more questions?

Submit a request

PHP error after Plesk upgrade/update: "Cannot open shared object file: No such file or directory"

Symptoms

The following errors appear on login page, after Plesk on CentOS/RHEL was updated/upgraded:

Failed loading /usr/lib64/php/ioncube/ioncube_loader_lin_:  /usr/lib64/php/ioncube/ioncube_loader_lin_: cannot open shared object file: No such file or directory
PHP Warning: PHP Startup: memcache: Unable to initialize module
Module compiled with module API=20090626
PHP compiled with module API=20100525
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/imagick.so' - /usr/lib64/php/modules/imagick.so: undefined symbol: php_checkuid_ex in Unknown on line 0
PHP Fatal error: Directive 'allow_call_time_pass_reference' is no longer available in PHP in Unknown on line 0

Fatal error: Directive 'allow_call_time_pass_reference' is no longer available in PHP in Unknown on line 0

Cause

Not supported PHP module was used with native PHP extensions.

Resolution

To resolve the issue please follow the steps:

  1. Determine the module that causes the issue:

    # find /usr/lib64/php/modules/*.so | while read l; do rpm -qf $l; done | grep owned
    file /usr/lib64/php/modules/imagick.so is not owned by any package
  2. Locate the config files with reference to found module (*.so):

    # grep -r imagick.so /etc/php.d/
    /etc/php.d/zend_extensions_psa.ini:extension="imagick.so"
  3. Disable this entry in the config by adding ; at the begin of the line.

    vi /etc/php.d/zend_extensions_psa.ini
    ...
    ;extension="imagick.so"
    ...
Have more questions? Submit a request
Please sign in to leave a comment.