Question
Why am I unable to find the json PHP extension in EasyApache 4?
Answer
The json PHP Extension should be installed by default via the ea-php##-php-common packages where ## is a version of PHP. For example, ea-php72-php-common.
# rpm -q --provides ea-php72-php-common| grep 'json'
ea-php72-php-json = 7.2.34-3.3.2.cpanel
ea-php72-php-json(x86-64) = 7.2.34-3.3.2.cpanel
ea-php72-php-pecl-json = 7.2.34-3.3.2.cpanel
ea-php72-php-pecl-json(x86-64) = 7.2.34-3.3.2.cpanel
ea-php72-php-pecl(json) = 7.2.34-3.3.2.cpanel
ea-php72-php-pecl(json)(x86-64) = 7.2.34-3.3.2.cpanel
To confirm the json extension is enabled for a specific version of PHP, run the following in SSH or WHM >> Terminal:
(Replace ## with the version of PHP)
ea-php-## -m | grep 'json'
Example using PHP 7.2:
# ea-php72 -m | grep 'json'
json
The ea-php##-php-common packages also provide the ctype, tokenizer, and phar extensions.
Comments
0 comments
Article is closed for comments.