PHP 7 socket by default
This commit is contained in:
parent
a5bb5698a7
commit
1e29c2048c
@ -34,8 +34,9 @@ server {
|
||||
try_files $uri =404;
|
||||
include global/fastcgi-params.conf;
|
||||
|
||||
# Change socket if using PHP pools
|
||||
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
||||
# 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;
|
||||
|
||||
# Skip cache based on rules in global/server/fastcgi-cache.conf.
|
||||
fastcgi_cache_bypass $skip_cache;
|
||||
|
||||
@ -29,8 +29,9 @@ server {
|
||||
try_files $uri =404;
|
||||
include global/fastcgi-params.conf;
|
||||
|
||||
# Change socket if using PHP pools
|
||||
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
||||
# 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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -26,8 +26,9 @@ server {
|
||||
try_files $uri =404;
|
||||
include global/fastcgi-params.conf;
|
||||
|
||||
# Change socket if using PHP pools
|
||||
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
||||
# 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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -26,8 +26,9 @@ server {
|
||||
try_files $uri =404;
|
||||
include global/fastcgi-params.conf;
|
||||
|
||||
# Change socket if using PHP pools
|
||||
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
||||
# 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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -42,8 +42,9 @@ server {
|
||||
try_files $uri =404;
|
||||
include global/fastcgi-params.conf;
|
||||
|
||||
# Change socket if using PHP pools
|
||||
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
||||
# 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;
|
||||
|
||||
# Skip cache based on rules in global/server/fastcgi-cache.conf.
|
||||
fastcgi_cache_bypass $skip_cache;
|
||||
|
||||
@ -34,8 +34,9 @@ server {
|
||||
try_files $uri =404;
|
||||
include global/fastcgi-params.conf;
|
||||
|
||||
# Change socket if using PHP pools
|
||||
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
||||
# 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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user