replace /var/run/php/ by /var/run/php-fpm (#6116)

* replace /var/run/php/ by /var/run/php-fpm

on CentOS 7 with PHP 7.0 /var/run/php don't exist
it's /var/run/php-fpm/

* Update Installation-CentOS-7-Nginx.md
This commit is contained in:
JꙨdцӍoηҬ
2017-03-07 22:01:42 +01:00
committed by Neil Lathwood
parent 271413e5f6
commit 15c4a332e1

View File

@@ -54,7 +54,7 @@ In `/etc/php-fpm.d/www.conf` make these changes:
```nginx
;listen = 127.0.0.1:9000
listen = /var/run/php/php7.0-fpm.sock
listen = /var/run/php-fpm/php7.0-fpm.sock
listen.owner = nginx
listen.group = nginx
@@ -107,7 +107,7 @@ server {
location ~ \.php {
include fastcgi.conf;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
fastcgi_pass unix:/var/run/php-fpm/php7.0-fpm.sock;
}
location ~ /\.ht {
deny all;