CURL PHP extension on LEMP

May 28, 2015 1.1k views

Hi all

I'm trying to install a few new plugins on my Wordpress site and one of them complains about needing "the CURL PHP extension".

I tried installing php5-curl on my LEMP stack but it resulted in a Bad Gateway error on my site; possibly because the /etc/php5/fpm/pool.d/www.conf was modified in the process. This didn't fix even when I copied over the old version of this file.

Does anyone know what I need to install on a LEMP stack and the steps for the same?


1 Answer

I just ran into practically the same in terms of condition and environment problem. However the fix was pretty easy.
First of all, I installed curl module through command line (SSH) on my Ubuntu 14.04 droplet:

sudo apt-get install php5-curl

Secondly, I restarted PHP service in order to catch up new modules:

service php5-fpm restart

And that's it! Since very this moment plugin works like a charm.
Hope it helps! :)

Have another answer? Share your knowledge.