如何在nginx中启用curl

I'm using Ubuntu 14.04 LTS, PHP 5.5.9 and Nginx.

I already installed the newest php5-curl version and add "extension=php_curl.dll" into "/etc/php5/fpm/php.ini" I also restart service php5-fpm and nginx.

But when I run the code (run at localhost on windows 10, it is still working) I received the following message:

Fatal error: Call to undefined function curl_init() in /usr/share/nginx ...

Help fix it! Thank you!

Check whether you really enabled the module for php-fpm and not PHP CLI by opening page with just phpinfo:

<?php
phpinfo();

Then look for enabled modules or for ./configure command arguments which might include curl when building the source code of PHP.