Install CURL on Ubuntu Server:
sudo apt-get install curl
Install CURL on PHP-7.2 After Updating Ubuntu 18.04:
sudo add-apt-repository ppa:ondrej/php
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
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
Like Tips Javascript?
Recommended snippets