Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP :Why PHP-Curl is not working with nginx

Tags:

php

curl

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.

like image 242
masterofdestiny Avatar asked Dec 07 '22 09:12

masterofdestiny


1 Answers

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

like image 154
user2484427 Avatar answered Jan 05 '23 09:01

user2484427