lahagb.blogg.se

How to install curl in ubuntu 20.04
How to install curl in ubuntu 20.04




how to install curl in ubuntu 20.04

If your Debian 11 or 10 server/desktop system doesn’t have this tool by default then we can use install with the help of a single command. You should now be able to enable and disable PHP modules based on PHP version and SAPI to keep your system running optimally.įound this article interesting? Follow Brightwhiz on Facebook, Twitter, and YouTube to read and watch more content we post.Options of cURL Installing Curl on Debian 11 Bullseye The following example will disable the module only for the specified SAPI $ phpdismod -s apache2 curl Conclusion The following command will disable the specific module for the specified version: $ phpdismod -v 7.4 curl Here we will disable the curl module for all PHP versions and all SAPI. You can use phpdismod to disable any unused or unwanted PHP modules from your system. $ phpenmod -s apache2 curl Disable PHP Modules Now let’s enable curl for all the SAPIs individually. Moving further, this is the syntax if you need to specify the SAPI using the -s switch. Enable module for specific php version $ phpenmod -v 7.3 curl This example shows how to enable the curl module for specific PHP versions. Phpenmod provides a -v switch to specify the PHP version that you intend to enable the module for with the following syntax. Here is an example showing how to enable the curl module for ALL PHP versions and all SAPI. To enable a specific module in PHP you need to use phpenmod command followed by module name using the following syntax.

how to install curl in ubuntu 20.04

You can use the -s switch to enable or disable modules in PHP for any of these. The three common ones found on any Ubuntu system are CLI, FPM, and Apache2. Modules can be enabled or disabled in PHP for a specific SAPI (Server API). phpquery: Used to view status of modules of PHP.phpdismod: Used to disable modules in PHP.phpenmod: Used to enable modules in PHP.The php-common package provides the following commands to manage PHP modules as listed below: Update PHP version in Hostgator - Beginner's how to guide Managing PHP Modules






How to install curl in ubuntu 20.04