PHP 7 socket by default

This commit is contained in:
Ashley Rich 2016-04-27 11:23:36 +01:00
parent a5bb5698a7
commit 1e29c2048c
6 changed files with 18 additions and 12 deletions

View File

@ -34,8 +34,9 @@ server {
try_files $uri =404; try_files $uri =404;
include global/fastcgi-params.conf; include global/fastcgi-params.conf;
# Change socket if using PHP pools # Change socket if using PHP pools or PHP 5
fastcgi_pass unix:/var/run/php5-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. # Skip cache based on rules in global/server/fastcgi-cache.conf.
fastcgi_cache_bypass $skip_cache; fastcgi_cache_bypass $skip_cache;

View File

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

View File

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

View File

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

View File

@ -42,8 +42,9 @@ server {
try_files $uri =404; try_files $uri =404;
include global/fastcgi-params.conf; include global/fastcgi-params.conf;
# Change socket if using PHP pools # Change socket if using PHP pools or PHP 5
fastcgi_pass unix:/var/run/php5-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. # Skip cache based on rules in global/server/fastcgi-cache.conf.
fastcgi_cache_bypass $skip_cache; fastcgi_cache_bypass $skip_cache;

View File

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