in

LinuxLinux

How To Install PHP-7.2 CURL On Ubuntu 18.04, 18.04.2 & 19.04 Edition

Install PHP-7.2 CURL on Ubuntu 18.04,19.04 version

PHP-7.2 CURL
Reading Time: 2 minutes

P

HP-7.2 CURL Install on Ubuntu 18.04: CURL is a Linux Termianl command mainly used to transfer the data from one server to another server.  This CURL Command is an useful Terminal command line utility and mainly used to download and upload from to the server. In this tutorial, We added 20+ best examples to use the CURL command effectively in Linux.

The CURL supports various protocols such as “IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMB, SMBS, DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, SMTP, SMTPS, TELNET, and TFTP”.

Jump To:

Install CURL on Ubuntu Server:

$sudo apt-get install curl

CURL Linux

The above command is the conventional method to install the CURL application in Ubuntu server. Just copy the above command and paste in Ubuntu Terminal, then hit the “Enter” button. If the above command won’t install CURL and then follow the below steps to install the CURL application after updating Ubuntu 18.04.

Install CURL on PHP-7.2 After Updating Ubuntu 18.04:

$sudo add-apt-repository ppa:ondrej/php

The above command will install the PHP libraries for your Server.

$sudo apt update

Now, update the server using the above command

$sudo apt install php7.2-fpm php7.2-gd php7.2-curl php7.2-mysql php7.2-dev php7.2-cli php7.2-common php7.2-mbstring php7.2-intl php7.2-zip php7.2-bcmath

The above command will help you install CURL on PHP-7.2 after updating Ubuntu 18.04. The above command will enable CURL on Ubuntu 19.04 Disco Dingo editions too.

Restart Apache Server:

After enabling the CURL on Ubuntu 18.04 PHP-7.2 Server. You just need to restart your Apache Server.

$sudo service apache2 restart

You can use the above or below command to restart your Apache Server.

$sudo /etc/init.d/apache2 restart

Restart Nginx Server:

If you are using the Nginx server, then you need to restart your Nginx server after installing CURL with PHP-7.2 on Ubuntu 18.04 Server.

$sudo systemctl restart nginx

You can use the above or below command to restart your Nginx Server.

$sudo /etc/init.d/nginx restart

Verdict:

In this article, we added the information about install and enable the CURL with PHP-7.2 after updating on Ubuntu 18.04. If you have any queries or need an update in this article and then feel free to comment or contact us.

  • Command Working
  • Article Explanation
  • Solution Attained
4.6

Summary

For more articles, please visit our Homepage

What do you think?

-1 points
Upvote Downvote

Written by Rachel

I'm Rachel, From Arizona. Am playing the "Content Management" Role in Tec Robust. I started working in TR from Jan 2019. Big Marvel Fan.

Contact me:
tecrobust [@] gmail.com
Sub: Message to Rachel

Comments

Leave a Reply

Loading…

Loading…

0

Comments

0 comments

CURL Linux

20+ CURL Linux Commands 2019 For Ubuntu 18.04 & All Linux Distros

MySQL Error Log Files

How To Access MYSQL Database Error Log Files Server Side