ItSolutionStuff.com

How to Install PHP Curl Extension in Ubuntu?

By Hardik Savani • May 14, 2024
Ubuntu

Hi Developer,

In this tutorial, we will go over the demonstration of how to install php curl extension in ubuntu. This post will give you a simple example of ubuntu php install curl extension. I’m going to show you about install php curl extension ubuntu 20.04. you will learn install php curl extension ubuntu.

We can install php curl extension using php-curl library. i will give you following list of commands to install php curl extension in ubuntu 22.10, ubuntu 22.04, ubuntu 21.10, ubuntu 21.04, ubuntu 20.04, ubuntu 18.04 and ubuntu 16.04 server.

Solution:

You need to run both command one by one:

sudo apt-get install php-curl

Solution for PHP 8.2

You need to run both command one by one:

sudo apt-get install php8.2-curl

Solution for PHP 8.1

You need to run both command one by one:

sudo apt-get install php8.1-curl

Solution for PHP 8.0

You need to run both command one by one:

sudo apt-get install php8.0-curl

Solution for PHP 7.4

You need to run both command one by one:

sudo apt-get install php7.4-curl

Solution for PHP 7.3

You need to run both command one by one:

sudo apt-get install php7.3-curl

Solution for PHP 7.2

You need to run both command one by one:

sudo apt-get install php7.2-curl

I hope it can help you...

Tags: Ubuntu
Hardik Savani

Hardik Savani

I'm a full-stack developer, entrepreneur, and founder of ItSolutionStuff.com. Passionate about PHP, Laravel, JavaScript, and helping developers grow.

šŸ“ŗ Subscribe on YouTube

We Are Recommending You

ā˜…

How to Find php.ini File in Ubuntu?

Read Now →
ā˜…

How to Check Current PHP Version in Ubuntu?

Read Now →
ā˜…

How to Check Apache Access & Error Log Files in Ubuntu Server?

Read Now →
ā˜…

How to Whitelist/Allow IP Address in Apache Ubuntu?

Read Now →
ā˜…

How to Restrict/Block IP Address in Apache Ubuntu?

Read Now →
ā˜…

How to Install Apache PHP MySQL and Phpmyadmin on Ubuntu?

Read Now →
ā˜…

How to Install MySQL in Ubuntu Server?

Read Now →
ā˜…

How to Upgrade PHP Version from 7.4 to 8 in Ubuntu?

Read Now →
ā˜…

How to Install Yarn npm in Ubuntu?

Read Now →
ā˜…

How to Upgrade PHP Version from 7.2 to 7.3 in Ubuntu?

Read Now →
ā˜…

How to Enable Apache mod_rewrite Module in Ubuntu?

Read Now →
ā˜…

How to create quick apache virtual host in Ubuntu?

Read Now →
ā˜…

How to Install Sublime Text Editor in Ubuntu?

Read Now →