i have osx 10.10 yosemite nginx , php installed using homebrew. trying stuff symfony, have discovered when run scripts, reach method call curl_exec
, execution aborted , server throws 502 bad gateway error.
i created separate script outside symfony scope , ran php version installed via homebrew, , worked fine. assumption there issue php-fpm, however, opposed other posts on stackoverflow, it's not php scripts crashing, or curl extension isn't installed. because php scripts work, , curl method calls work, except curl_exec.
also, when curl_exec function called via nginx, line added error log:
2015/06/02 23:01:43 [error] 13355#0: *10 upstream prematurely closed connection while reading response header upstream, client: 127.0.0.1, server: mysubdomain.localhost, request: "get /app_dev.php/users/create?xdebug_session_start=19867 http/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "mysubdomain.localhost:8080"
edit: per nifr's request, here's appears in php error log:
[04-jun-2015 09:25:58 america/los_angeles] php warning: php startup: mcrypt: unable initialize module module compiled build id=api20131226,nts php compiled build id=api20131226,nts,debug these options need match in unknown on line 0 [04-jun-2015 09:26:03 america/los_angeles] php warning: php startup: mcrypt: unable initialize module module compiled build id=api20131226,nts php compiled build id=api20131226,nts,debug these options need match in unknown on line 0
however, appears regardless of whether use curl or not. appears when echo 'hello world';
, i'm pretty sure has nothing curl_exec
.
edit 2: found person seems have same issue: php-fpm crashed when curl or file_get_contents request https url
however, more severe them, because on side, file_get_contents
not cause crashes.
edit 3: nginx log:
[21-oct-2015 11:39:39] warning: [pool www] child 73043 exited on signal 11 (sigsegv) after 201.232240 seconds start [21-oct-2015 11:39:39] notice: [pool www] child 73216 started
Comments
Post a Comment