tldr/pages/linux/phpenmod.md

13 lines
328 B
Markdown

# phpenmod
> Enable PHP extensions on Debian-based OSes.
> More information: <https://salsa.debian.org/php-team/php-defaults>.
- Enable the JSON extension for every SAPI of every PHP version:
`sudo phpenmod {{json}}`
- Enable the JSON extension for PHP 7.3 with the cli SAPI:
`sudo phpenmod -v {{7.3}} -s {{cli}} {{json}}`