replace php5.6 and php7.0 by php7.2

This commit is contained in:
VirtuBox 2019-01-12 08:43:33 +01:00
parent 26ae7a9ec7
commit dcff1216ed
1 changed files with 16 additions and 23 deletions

View File

@ -1,11 +1,17 @@
# Common upstream settings # Common upstream settings
# replace php5.6 and php7.0 by php7.2
################## ##################
# php5.6-fpm # php5.6-fpm
################## ##################
upstream php { upstream php {
server 127.0.0.1:9000; least_conn;
server unix:/var/run/php/php72-fpm.sock;
server unix:/var/run/php/php72-two-fpm.sock;
keepalive 5;
} }
upstream debug { upstream debug {
# Debug Pool # Debug Pool
@ -16,21 +22,12 @@ server 127.0.0.1:9001;
# php7.0-fpm # php7.0-fpm
################## ##################
# TCP/IP on loopback interface
upstream php7 {
server 127.0.0.1:9070;
}
upstream debug7 {
server 127.0.0.1:9170;
}
# load-balancing on unix socket # load-balancing on unix socket
upstream php7-sock { upstream php7 {
least_conn; least_conn;
server unix:/var/run/php/php70-fpm.sock; server unix:/var/run/php/php72-fpm.sock;
server unix:/var/run/php/php70-two-fpm.sock; server unix:/var/run/php/php72-two-fpm.sock;
keepalive 5; keepalive 5;
} }
@ -41,15 +38,11 @@ keepalive 5;
# TCP/IP on loopback interface # TCP/IP on loopback interface
upstream php71 { upstream php71 {
server 127.0.0.1:9080;
}
# load-balancing on unix socket # load-balancing on unix socket
upstream php71-sock {
least_conn; least_conn;
server unix:/var/run/php/php71-fpm.sock; server unix:/var/run/php/php72-fpm.sock;
server unix:/var/run/php/php71-two-fpm.sock; server unix:/var/run/php/php72-two-fpm.sock;
keepalive 5; keepalive 5;
} }
@ -59,12 +52,12 @@ keepalive 5;
################## ##################
# TCP/IP on loopback interface # TCP/IP on loopback interface
upstream php72 { upstream php72-tcp {
server 127.0.0.1:9090; server 127.0.0.1:9090;
} }
# load-balancing on unix socket # load-balancing on unix socket
upstream php72-sock { upstream php72 {
least_conn; least_conn;
server unix:/var/run/php/php72-fpm.sock; server unix:/var/run/php/php72-fpm.sock;
@ -78,12 +71,12 @@ keepalive 5;
################## ##################
# TCP/IP on loopback interface # TCP/IP on loopback interface
upstream php73 { upstream php73-tcp {
server 127.0.0.1:9093; server 127.0.0.1:9093;
} }
# load-balancing on unix socket # load-balancing on unix socket
upstream php73-sock { upstream php73 {
least_conn; least_conn;
server unix:/var/run/php/php73-fpm.sock; server unix:/var/run/php/php73-fpm.sock;