1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 13:05:59 +02:00

phpdismod, phpenmod, phpquery: add page (#3610)

This commit is contained in:
Pierre Rudloff 2019-11-26 19:59:16 +01:00 committed by Starbeamrainbowlabs
parent 8d87de839c
commit 293d698b85
3 changed files with 41 additions and 0 deletions

11
pages/linux/phpdismod.md Normal file
View file

@ -0,0 +1,11 @@
# phpdismod
> Disable PHP extensions on Debian-based OSes.
- Disable the json extension for every SAPI of every PHP version:
`sudo phpdismod {{json}}`
- Disable the json extension for PHP 7.3 with the cli SAPI:
`sudo phpdismod -v {{7.3}} -s {{cli}} {{json}}`

11
pages/linux/phpenmod.md Normal file
View file

@ -0,0 +1,11 @@
# phpenmod
> Enable PHP extensions on Debian-based OSes.
- 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}}`

19
pages/linux/phpquery.md Normal file
View file

@ -0,0 +1,19 @@
# phpquery
> PHP extension manager for Debian-based OSes.
- List available PHP versions:
`sudo phpquery -V`
- List available SAPIs for PHP 7.3:
`sudo phpquery -v {{7.3}} -S`
- List enabled extensions for PHP 7.3 with the cli SAPI:
`sudo phpquery -v {{7.3}} -s {{cli}} -M`
- Check if the json extension is enabled for PHP 7.3 with the apache2 SAPI:
`sudo phpquery -v {{7.3}} -s {{apache2}} -m {{json}}`