yes, agree. Thanks Lucas.by marcusy3k - Nginx Mailing List - English
Eventually I find what went wrong, it should be caused by both Zend OPcache and XCache are installed, they may conflict each other in this case, once I've removed the XCache, it works fine, the php command line would no longer cause the php-fpm error. XCache should be unnecessary when OPcache is running.by marcusy3k - Nginx Mailing List - English
hi, on command line, when I type: php or php -v after pressing key, then the "502 Bad Gateway" will occur at once. It is very strange, because I always think php command line should not affect the php-fpm...by marcusy3k - Nginx Mailing List - English
I have just installed: - FreeBSD 10.2 - Nginx 1.8.1 - PHP 5.5.33 Nginx works fine with PHP that the web sites seems ok to run php pages. However, once I run php on command line (e.g. php -v), the web site will get "502 Bad Gateway" error, and I find the nginx error log as below: 714#0: *3 upstream prematurely closed connection while reading response header from upstream, clienby marcusy3k - Nginx Mailing List - English