Issue
Cannot enable the JSON extension in CloudLinux PHP Selector
Environment
- PHP Selector
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 /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.ini
2. 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.
Comments
1 comment
If in phpinfo:
Additional .ini files parsed (none) please performe:
as result:
Please sign in to leave a comment.