Add PHP 7.1 socket to site templates

This commit is contained in:
Ashley Rich 2017-07-31 10:11:41 +01:00
parent 3ca055034e
commit 0cfa227a3c
6 changed files with 23 additions and 17 deletions

View File

@ -35,8 +35,9 @@ server {
try_files $uri =404;
include global/fastcgi-params.conf;
# Change socket if using PHP pools or PHP 5
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
# Change socket if using PHP pools or different PHP version
fastcgi_pass unix:/run/php/php7.1-fpm.sock;
#fastcgi_pass unix:/run/php/php7.0-fpm.sock;
#fastcgi_pass unix:/var/run/php5-fpm.sock;
# Skip cache based on rules in global/server/fastcgi-cache.conf.

View File

@ -30,9 +30,10 @@ server {
try_files $uri =404;
include global/fastcgi-params.conf;
# Change socket if using PHP pools or PHP 5
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
#fastcgi_pass unix:/var/run/php5-fpm.sock;
# Change socket if using PHP pools or different PHP version
fastcgi_pass unix:/run/php/php7.1-fpm.sock;
#fastcgi_pass unix:/run/php/php7.0-fpm.sock;
#fastcgi_pass unix:/var/run/php5-fpm.sock;
}
}

View File

@ -27,9 +27,10 @@ server {
try_files $uri =404;
include global/fastcgi-params.conf;
# Change socket if using PHP pools or PHP 5
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
#fastcgi_pass unix:/var/run/php5-fpm.sock;
# Change socket if using PHP pools or different PHP version
fastcgi_pass unix:/run/php/php7.1-fpm.sock;
#fastcgi_pass unix:/run/php/php7.0-fpm.sock;
#fastcgi_pass unix:/var/run/php5-fpm.sock;
}
}

View File

@ -27,9 +27,10 @@ server {
try_files $uri =404;
include global/fastcgi-params.conf;
# Change socket if using PHP pools or PHP 5
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
#fastcgi_pass unix:/var/run/php5-fpm.sock;
# Change socket if using PHP pools or different PHP version
fastcgi_pass unix:/run/php/php7.1-fpm.sock;
#fastcgi_pass unix:/run/php/php7.0-fpm.sock;
#fastcgi_pass unix:/var/run/php5-fpm.sock;
}
}

View File

@ -42,9 +42,10 @@ server {
try_files $uri =404;
include global/fastcgi-params.conf;
# Change socket if using PHP pools or PHP 5
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
#fastcgi_pass unix:/var/run/php5-fpm.sock;
# Change socket if using PHP pools or different PHP version
fastcgi_pass unix:/run/php/php7.1-fpm.sock;
#fastcgi_pass unix:/run/php/php7.0-fpm.sock;
#fastcgi_pass unix:/var/run/php5-fpm.sock;
# Skip cache based on rules in global/server/fastcgi-cache.conf.
fastcgi_cache_bypass $skip_cache;

View File

@ -34,9 +34,10 @@ server {
try_files $uri =404;
include global/fastcgi-params.conf;
# Change socket if using PHP pools or PHP 5
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
#fastcgi_pass unix:/var/run/php5-fpm.sock;
# Change socket if using PHP pools or different PHP version
fastcgi_pass unix:/run/php/php7.1-fpm.sock;
#fastcgi_pass unix:/run/php/php7.0-fpm.sock;
#fastcgi_pass unix:/var/run/php5-fpm.sock;
}
}