nginx - the meaning of middleware spawn-fcgi
I built a webpy and nginx environment myself and used spawn-fcgi. I don’t understand what spawn does? Middleware as buffer? After looking at the spawn source code, it is just an exec job. Why not communicate directly with webpy and nginx? Please make it clear
PHP中文网 2017-05-16 17:26:20 0 1 540
Question about judging IS_CGI using ThinkPHP.php in Thinkphp3.2.3
Source code: define('IS_CGI', (0 === strpos(PHP_SAPI, 'cgi') || false !== strpos(PHP_SAPI, 'fcgi')) ? 1 : 0); Can it be written directly as: define( 'IS_CGI', (false !== strpos(PHP_SAPI, 'cgi')) ? 1 : 0); Because cgi only...
黄舟 2017-06-05 11:08:21 0 1 868
php-nginx - Configure nginx + php + spwan-fcgi, error 502 Bad Gateway and php-fcgi cannot be started.
First of all, I have configured nginx and use the command service nginx start in Linux. It can be started, and you can see the welcome page when you log in to localhost. Then follow the online tutorial to modify the default file. During the modification process, I added index.php to the server, root...
黄舟 2017-05-16 17:23:13 0 4 640