• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue PHP CLI Error Unable to load dynamic library '/usr/lib64/php/modules/xmlreader.so'

Sparky

New Pleskian
PHP CLI is showing the following errors when I try to use PHP from the command line:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/xmlreader.so' - /usr/lib64/php/modules/xmlreader.so: undefined symbol: dom_node_class_entry in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/xsl.so' - /usr/lib64/php/modules/xsl.so: undefined symbol: dom_node_class_entry in Unknown on line 0

The module files exist:

[prod_admin@websrv-prod ~]$ ll /usr/lib64/php/modules/xmlreader.so
-rwxr-xr-x. 1 root root 32928 Nov 5 2016 /usr/lib64/php/modules/xmlreader.so

[prod_admin@websrv-prod ~]$ ll /usr/lib64/php/modules/xsl.so
-rwxr-xr-x. 1 root root 37112 Nov 5 2016 /usr/lib64/php/modules/xsl.so

PHP Version:

PHP 5.4.16 (cli) (built: Nov 6 2016 00:29:02)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v5.0.18, Copyright (c) 2002-2015, by ionCube Ltd.

System Info:

Version Plesk Onyx v17.5.3_build1705170317.16 os_CentOS 7
OS CentOS Linux 7.4.1708 (Core)

This is a new server and Plesk install. Updates were run through the Plesk updater.

How do I fix this?
 
What is output of commands

# rpm -qf /usr/lib64/php/modules/xmlreader.so
# rpm -qf /usr/lib64/php/modules/xsl.so
# rpm -qf /usr/bin/php

?
 
rpm -qf /usr/lib64/php/modules/xmlreader.so

Code:
php-xml-5.4.16-42.el7.x86_64

rpm -qf /usr/lib64/php/modules/xsl.so

Code:
php-xml-5.4.16-42.el7.x86_64

rpm -qf /usr/bin/php

Code:
php-cli-5.4.16-42.el7.x86_64
 
undefined symbol: dom_node_class_entry
The xsl extensions require the dom extension which is built shared and hence needs to be loaded first. Make sure that there is something like:

# grep -R dom /etc/php.d/*
/etc/php.d/dom.ini:; Enable dom extension module
/etc/php.d/dom.ini:extension=dom.so
 
Back
Top