Browse Source

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

Pierre Rudloff 5 years ago
parent
commit
293d698b85
3 changed files with 41 additions and 0 deletions
  1. 11 0
      pages/linux/phpdismod.md
  2. 11 0
      pages/linux/phpenmod.md
  3. 19 0
      pages/linux/phpquery.md

+ 11 - 0
pages/linux/phpdismod.md

@@ -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 - 0
pages/linux/phpenmod.md

@@ -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 - 0
pages/linux/phpquery.md

@@ -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}}`