2019-11-26 18:59:16 +00:00
|
|
|
# phpenmod
|
|
|
|
|
|
|
|
> Enable PHP extensions on Debian-based OSes.
|
2021-11-02 16:42:54 +00:00
|
|
|
> More information: <https://salsa.debian.org/php-team/php-defaults>.
|
2019-11-26 18:59:16 +00:00
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Enable the JSON extension for every SAPI of every PHP version:
|
2019-11-26 18:59:16 +00:00
|
|
|
|
|
|
|
`sudo phpenmod {{json}}`
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Enable the JSON extension for PHP 7.3 with the cli SAPI:
|
2019-11-26 18:59:16 +00:00
|
|
|
|
|
|
|
`sudo phpenmod -v {{7.3}} -s {{cli}} {{json}}`
|