HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

phpenmod — Enable PHP extensions on Debian-based OSes. More information: <https://salsa.debian.org/php-team/php

Submitted by: @import:tldr-pages··
0
Viewed 0 times
extensionscommanddebiancliphpbasedphpenmodenable
linux

Problem

How to use the phpenmod command: Enable PHP extensions on Debian-based OSes. More information: <https://salsa.debian.org/php-team/php-defaults>.

Solution

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

Code Snippets

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

Context

tldr-pages: linux/phpenmod

Revisions (0)

No revisions yet.