note 121890 added to install.fpm

From: Date: Tue, 21 Nov 2017 09:23:15 +0000
Subject: note 121890 added to install.fpm
Groups: php.notes 
Request: Send a blank email to php-notes+get-209183@lists.php.net to get a copy of this message
php-fpm is not avaliable on Windows, but you can use IIS or Apache as the "fastcgi process manager". If you have to use Nginx, here is a solution. Nginx provides a load balancing module. We can distribute the request to different php-cgi.exe process. <http://nginx.org/en/docs/http/load_balancing.html> <http://nginx.org/en/docs/http/ngx_http_upstream_module.html> This is the origin nginx conf. ``` location ~ \.php$ { try_files $uri = 404; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fastcgi.conf; } ``` You can replace it by ``` upstream php { server 127.0.0.1:9000; server 127.0.0.1:9001; server 127.0.0.1:9002; server 127.0.0.1:9003; } location ~ \.php$ { try_files $uri = 404; fastcgi_pass php; fastcgi_index index.php; include fastcgi.conf; } ``` CAUTION!! php-cgi.exe process will die after several requests, so you have to restart the php-cgi.exe manually to keep a process listening the port. DON'T USE THIS SOLUTION IN PRODUCTION!! ---- Server IP: 208.43.231.9 Probable Submitter: 124.115.216.226 ---- Manual Page -- http://php.net/manual/en/install.fpm.php Edit -- https://master.php.net/note/edit/121890 Del: integrated -- https://master.php.net/note/delete/121890/integrated Del: useless -- https://master.php.net/note/delete/121890/useless Del: bad code -- https://master.php.net/note/delete/121890/bad+code Del: spam -- https://master.php.net/note/delete/121890/spam Del: non-english -- https://master.php.net/note/delete/121890/non-english Del: in docs -- https://master.php.net/note/delete/121890/in+docs Del: other reasons-- https://master.php.net/note/delete/121890 Reject -- https://master.php.net/note/reject/121890 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#209183) next »