ßáÇæÏ áíäßÓ 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
ÇáãÔßáÉ :
åíÕá áß Çíãíá Úáì ÓíÑÝÑ ßáÇæÏ áíäßÓ Èå ÎØÇ
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.so
Cause
The /opt/alt/php7x/etc/php.d.all/json.ini was modified manually on your server.
ÇáãÑÌÚ:
https://cloudlinux.zendesk.com/hc/en...x-PHP-Selector
https://www.veritech.net/install-jso...php-on-centos/
https://support.cpanel.net/hc/en-us/...-library-error
https://support.cpanel.net/hc/en-us/...ynamic-library
ÇáãÝÖáÇÊ