How to install PHP curl extension

Sometimes we get the PHP’s curl extension is not installed! error on WordPress.Solution is very handy, simply do the following:

Open SSH

First Install CURL by typing:

apt-get install curl

Then Restart Apache:

service apache restart

Then Install PHP5 CURL:

apt-get install php5-curl

Now it will prompt to install… type y or yes!

Then Restart Apache again and Done!

Now it should be fine!