Re: 502 Bad Gateway once running php on command line

2016-03-23 Thread marcusy3k
yes, agree. Thanks Lucas. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,265576,265588#msg-265588 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: 502 Bad Gateway once running php on command line

2016-03-23 Thread Lucas Rolff
When issuing php directly from the command-line, you don't even go through nginx. php from the command-line relies on the php-cli which isn't talking to your nginx process nor php-fpm. marcusy3k 23 March 2016 at 10:05 Eventually I find what went wrong, it s

Re: 502 Bad Gateway once running php on command line

2016-03-23 Thread marcusy3k
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 r

Re: 502 Bad Gateway once running php on command line

2016-03-22 Thread marcusy3k
hi, on command line, when I type: php or php -v after pressing [Enter] 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... Posted at Nginx Forum: https://forum.nginx.org/read.php?2,265576,265578#msg-

Re: 502 Bad Gateway once running php on command line

2016-03-22 Thread Lucas Rolff
Hi, What is the exact call you're trying to do? - Lucas marcusy3k wrote: 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 B

502 Bad Gateway once running php on command line

2016-03-22 Thread marcusy3k
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: [error] 714#0: *3