CURL PHP extension on LEMP

  • Posted May 28, 2015
  • LEMP

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?



Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi, 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! :)