简体   繁体   中英

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.

你需要运行/etc/init.d/php5-fpm restart

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM