diff --git a/nginx/rootfs/etc/confd/templates/php-fpm.conf.tmpl b/nginx/rootfs/etc/confd/templates/php-fpm.conf.tmpl index ab149386..bd19a303 100644 --- a/nginx/rootfs/etc/confd/templates/php-fpm.conf.tmpl +++ b/nginx/rootfs/etc/confd/templates/php-fpm.conf.tmpl @@ -14,7 +14,7 @@ ; Pid file ; Note: the default prefix is /var ; Default Value: none -pid = run/php-fpm7.pid +;pid = run/php-fpm7.pid ; Error log file ; If it's set to "syslog", log is sent to syslogd instead of being written diff --git a/nginx/rootfs/etc/confd/templates/www.conf.tmpl b/nginx/rootfs/etc/confd/templates/www.conf.tmpl index 751aaaf4..4eacf01c 100644 --- a/nginx/rootfs/etc/confd/templates/www.conf.tmpl +++ b/nginx/rootfs/etc/confd/templates/www.conf.tmpl @@ -33,7 +33,7 @@ group = nginx ; (IPv6 and IPv4-mapped) on a specific port; ; '/path/to/unix/socket' - to listen on a unix socket. ; Note: This value is mandatory. -listen = /var/run/php-fpm7/php-fpm7.sock +listen = php-fpm7.sock ; Set listen(2) backlog. ; Default Value: 511 (-1 on FreeBSD and OpenBSD) diff --git a/nginx/rootfs/etc/services.d/fpm/run b/nginx/rootfs/etc/services.d/fpm/run index 3d5b066c..a3805cfa 100644 --- a/nginx/rootfs/etc/services.d/fpm/run +++ b/nginx/rootfs/etc/services.d/fpm/run @@ -1,4 +1,4 @@ #!/usr/bin/execlineb -P # -*- mode: sh -*- # vi: set ft=sh: -/usr/sbin/php-fpm7 +/usr/sbin/php-fpm7 --pid /var/run/php-fpm7/php-fpm7.pid --prefix /var/run/php-fpm7 --fpm-config /etc/php7/php-fpm.conf