How to Install PHP Curl in Ubuntu 16 04

CURL is a popular tool for transferring data from or to a server.

It supports various protocols including HTTP, HTTPS, FTP, and many more.

In this tutorial, we will focus on how to install PHP CURL in Ubuntu 16.04.


Prerequisites

Before proceeding with the installation process, make sure you have administrative access to the server.

If not, please get in touch with your system administrator to obtain the necessary permissions.

Update System Packages

Before installing any new packages, it is always recommended to update the system packages.

Run the following command to update the system packages:

sudo apt-get update

Install PHP CURL

To install PHP CURL, run the following command:

sudo apt-get install php7.0-curl

The above command assumes that you are using PHP 7.0.

If you are using a different version of PHP, replace 7.0 with your version number.

Verify the Installation

To verify the installation of PHP CURL, run the following command:

php -m | grep curl

The output should be similar to the following:

curl

This confirms that PHP CURL has been installed successfully on your system.


Conclusion

In this tutorial, we have discussed the process of installing PHP CURL on Ubuntu 16.04.

We hope that you have found this tutorial helpful.

If you have any questions or feedback, please feel free to reach out to us in the comments section below.