Enable PHP Curl on Apache/Ngnix

Today I would like to show you how to install the PHP Curl on Nginx. Currently, I am using the WP Statistics plugin for my WordPress blog and I needed that PHP plug-in to enable the GeoIP setting to view blog visitors from which countries or cities. So let’s start.

First, need to install the CUrl on my Ubuntu Server
$ sudo apt-get install curl

Then, update the server
$ sudo apt update

Install the PHP-Curl
$ sudo apt install php7.2-curl

Finally, restart the Apache or Nginx Server
$ sudo service apache2 restart
$ sudo systemctl restart nginx

That’s it. I hope this will help. 🙂
Photo: http://www.pngall.com

Leave a Reply

Your email address will not be published.