From 6db545847cdb90f46e7c4ea6d9ab8c0e953fd8e1 Mon Sep 17 00:00:00 2001 From: Digimix Date: Tue, 22 Mar 2016 11:40:41 -0400 Subject: [PATCH 1/2] Optional PHP7.0 Socket Path Updating Nginx site(s) to use New socket path. I've left it commented out, but I think this will come in handy as PHP7.0 adoption grows. --- nginx.conf.sample | 1 + 1 file changed, 1 insertion(+) diff --git a/nginx.conf.sample b/nginx.conf.sample index 5de47a5fe6a82..dc127cc187be6 100644 --- a/nginx.conf.sample +++ b/nginx.conf.sample @@ -47,6 +47,7 @@ location /update { location ~ ^/update/index.php { fastcgi_split_path_info ^(/update/index.php)(/.+)$; +# fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; fastcgi_pass fastcgi_backend; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; From e132c5431e5c71599d9dbb3c69a577f8a607ff35 Mon Sep 17 00:00:00 2001 From: Digimix Date: Tue, 22 Mar 2016 11:56:52 -0400 Subject: [PATCH 2/2] PHP7.0 Unix socket to upstream fastcgi_backend --- nginx.conf.sample | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx.conf.sample b/nginx.conf.sample index dc127cc187be6..85cbc94f034dd 100644 --- a/nginx.conf.sample +++ b/nginx.conf.sample @@ -8,6 +8,7 @@ # # server 127.0.0.1:9000; # # or socket # server unix:/var/run/php5-fpm.sock; +# server unix:/var/run/php/php7.0-fpm.sock; # } # server { # listen 80; @@ -47,7 +48,6 @@ location /update { location ~ ^/update/index.php { fastcgi_split_path_info ^(/update/index.php)(/.+)$; -# fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; fastcgi_pass fastcgi_backend; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;