masterofdestiny
masterofdestiny

Reputation: 2811

PHP :Why PHP-Curl is not working with nginx

I recently moved my website to a nginx server. My python code is running on the same machine on 8086 port, but my php curl module is not working. I don't know what I am doing wrong here.

I already installed php5-fpm, but stil not able to resolve this issue. I can not see the error also because nginx simply shows me the blank screen. Btw. it is printing all the values before curl_init() statement.

I can post my Nginx configuration also but i don't think so that is required.

Upvotes: 4

Views: 18609

Answers (2)

shasi kanth
shasi kanth

Reputation: 7094

If you are on Windows, make sure to follow the below steps:

  1. Rename php.ini-production or php.ini-development to php.ini
  2. Specify the extension directory: extension_dir = "ext"
  3. Enable the Curl extension (Uncomment in php.ini): extension=php_curl.dll

Upvotes: 0

user2484427
user2484427

Reputation: 161

You need to run /etc/init.d/php5-fpm restart

Upvotes: 16

Related Questions