المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : كلاود لينكس Cloud Linux حل مشكلة PHP Startup: Unable to load dynamic library



Rise Company
23-01-2024, 14:53
كلاود لينكس Cloud Linux حل مشكلة PHP Startup: Unable to load dynamic library
cpanel PHP Startup: Unable to load dynamic library 'json.so'
Cannot enable the JSON extension in CloudLinux PHP Selector
cloudlinux_domains_collector.cronlock - php -i | grep "json support"
Install JSON Support to PHP on CentOS
[SOLVED] PHP Startup: Unable to load dynamic library

https://www.rise.company/upload/uploads/170601393251141.png

المشكلة :

هيصل لك ايميل على سيرفر كلاود لينكس به خطا

Cron <> /usr/bin/flock -n /var/run/cloudlinux_domains_collector.cronlock /usr/bin/cloudlinux_domains_collector | /opt/alt/php74-imunify/usr/bin/php -n -d extension=phar.so -d extension=json.so -d extension=intl.so /opt/app-version-detector/app-version-detector.phar --send-stats --scan-depth=2 && touch /usr/share/cloudlinux/.force_collecting_domains_is_done && rm -f /etc/cron.d/force_collecting_domains
Inbox


Warning: PHP Startup: Unable to load dynamic library 'json.so' (tried: /opt/alt/php-internal/usr/lib64/php/modules/json.so (/opt/alt/php-internal/usr/lib64/php/modules/json.so: cannot open shared object file: No such file or directory), /opt/alt/php-internal/usr/lib64/php/modules/json.so.so (/opt/alt/php-internal/usr/lib64/php/modules/json.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0


حل المشكلة :

قم بعمل Rebuild RPM Database

Solution

1. Validate the alt-php7x-common package and check if the /opt/alt/php7x/etc/php.d.all/json.ini was modified manually, e.g.:

rpm -V alt-php74-common


النتيجة هتجد الملفات المعدلة بالون الاحمر وسط ملفات اخرى ليس بها الرموز S.5...GT. c

S.5...GT. c /opt/alt/php74/etc/php.d.all/json.ini
S.5....T. c /opt/alt/php74/etc/php.d/default.ini
S.5....T. c /opt/alt/php74/etc/php.ini2.

Make sure the file looks as follows:

cat /opt/alt/php74/etc/php.d.all/json.ini

; Enable json extension module
extension=json.soCause

The /opt/alt/php7x/etc/php.d.all/json.ini was modified manually on your server.

المرجع:
https://cloudlinux.zendesk.com/hc/en-us/articles/4536502510236-Cannot-enable-the-JSON-extension-in-CloudLinux-PHP-Selector
https://www.veritech.net/install-json-support-to-php-on-centos/
https://support.cpanel.net/hc/en-us/community/posts/19673224569623-Unable-to-load-dynamic-library-error
https://support.cpanel.net/hc/en-us/community/posts/19659604181527-Unable-to-load-dynamic-library