Issue
Cloudlinux PHP Selector error:
Cannot get extensions list for version "7.4".
Please make sure that native php works fine and run "cloudlinux-selector setup --interpreter=php --json" to configure PHP selector.
Error: ldd returns non existing library while for /opt/alt/php74/usr/lib64/php/modules/xmlreader.so
Error: ldd returns non existing library while for /opt/alt/php74/usr/lib64/php/modules/xmlwriter.so
Error: ldd returns non existing library while for /opt/alt/php74/usr/lib64/php/modules/dom.so
Error: ldd returns non existing library while for /opt/alt/php74/usr/lib64/php/modules/soap.so
Error: ldd returns non existing library while for /opt/alt/php74/usr/lib64/php/modules/xsl.so
Error: ldd returns non existing library while for /opt/alt/php74/usr/lib64/php/modules/xmlrpc.so
Error: ldd returns non existing library while for /opt/alt/php80/usr/lib64/php/modules/xmlreader.so
Error: ldd returns non existing library while for /opt/alt/php80/usr/lib64/php/modules/xmlwriter.so
Error: ldd returns non existing library while for /opt/alt/php80/usr/lib64/php/modules/dom.so
Error: ldd returns non existing library while for /opt/alt/php80/usr/lib64/php/modules/soap.so
Error: ldd returns non existing library while for /opt/alt/php80/usr/lib64/php/modules/xsl.so
Error: ldd returns non existing library while for /opt/alt/php80/usr/lib64/httpd/modules/libphp.so
Error: ldd returns non existing library while for /opt/alt/php74/usr/bin/php
Error: ldd returns non existing library while for /opt/alt/php74/usr/bin/php-cgi
Error: ldd returns non existing library while for /opt/alt/php74/usr/bin/phpdbg
Error: ldd returns non existing library while for /opt/alt/php74/usr/bin/lsphp
Error: ldd returns non existing library while for /opt/alt/php74/usr/sbin/php-fpm
Error: ldd returns non existing library while for /opt/alt/php80/usr/bin/php
Error: ldd returns non existing library while for /opt/alt/php80/usr/bin/php-cgi
Error: ldd returns non existing library while for /opt/alt/php80/usr/bin/phpdbg
Error: ldd returns non existing library while for /opt/alt/php80/usr/bin/lsphp
Error: ldd returns non existing library while for /opt/alt/php80/usr/sbin/php-fpm
{"details": "Traceback (most recent call last):\n File \"/opt/alt/python37/lib/python3.7/site-packages/clselector/cl_selector.py\", line 260, in run\n self.run_setup()\n File \"/opt/alt/python37/lib/python3.7/site-packages/clselector/cl_selector.py\", line 325, in run_setup\n self._selector_lib.setup_selector()\n File \"/opt/alt/python37/lib/python3.7/site-packages/clselector/selectorlib.py\", line 1672, in setup_selector\n '--json', '--interpreter', 'php'])\n File \"/opt/alt/python37/lib64/python3.7/subprocess.py\", line 411, in check_output\n **kwargs).stdout\n File \"/opt/alt/python37/lib64/python3.7/subprocess.py\", line 512, in run\n output=stdout, stderr=stderr)\nsubprocess.CalledProcessError: Command '['/usr/sbin/cloudlinux-selector', 'make-defaults-config', '--json', '--interpreter', 'php']' returned non-zero exit status 1.\n", "result": "subprocess.CalledProcessError: Command '['/usr/sbin/cloudlinux-selector', 'make-defaults-config', '--json', '--interpreter', 'php']' returned non-zero exit status 1.\n", "timestamp": 1662578291.7097428}
Environment
- Cloudlinux PHP Selector
- cPanel
Solution
- Check modules:
# ldd /opt/alt/php74/usr/lib64/php/modules/xmlreader.so
/opt/alt/php74/usr/lib64/php/modules/xmlreader.so: error while loading shared libraries:
/opt/alt/libxml2/usr/lib64/libxml2.so.2: file too short -
Reinstalled the package that is related not to /opt/alt/php74/usr/lib64/php/modules/xmlreader.so
but to library file /opt/alt/libxml2/usr/lib64/libxml2.so.2:
# yum reinstall `rpm -qf /opt/alt/libxml2/usr/lib64/libxml2.so.2`
Cause
Corrupted package
Useful links
Comments
0 comments
Please sign in to leave a comment.