File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ install-fpm: $(SAPI_FPM_PATH)
15
15
else \
16
16
echo "Installing PHP FPM defconfig: $(INSTALL_ROOT)$(sysconfdir)/" && \
17
17
$(mkinstalldirs) $(INSTALL_ROOT)$(sysconfdir)/php-fpm.d; \
18
- $(INSTALL_DATA) sapi/fpm/php-fpm.conf $(INSTALL_ROOT)$(sysconfdir)/php-fpm.conf.default ; \
19
- $(INSTALL_DATA) sapi/fpm/www.conf $(INSTALL_ROOT)$(sysconfdir)/php-fpm.d/www.conf.default ; \
18
+ $(INSTALL_DATA) sapi/fpm/php-fpm.conf $(INSTALL_ROOT)$(sysconfdir)/php-fpm.conf; \
19
+ $(INSTALL_DATA) sapi/fpm/www.conf $(INSTALL_ROOT)$(sysconfdir)/php-fpm.d/www.conf; \
20
20
fi
21
21
22
22
@echo "Installing PHP FPM man page: $(INSTALL_ROOT)$(mandir)/man8/"
Original file line number Diff line number Diff line change 14
14
; Pid file
15
15
; Note: the default prefix is @EXPANDED_LOCALSTATEDIR@
16
16
; Default Value: none
17
- ;pid = run/php-fpm.pid
17
+ ;pid = / run/php-fpm /php-fpm.pid
18
18
19
19
; Error log file
20
20
; If it's set to "syslog", log is sent to syslogd instead of being written
21
21
; into a local file.
22
22
; Note: the default prefix is @EXPANDED_LOCALSTATEDIR@
23
23
; Default Value: log/php-fpm.log
24
- ; error_log = log/php-fpm.log
24
+ error_log = syslog
25
25
26
26
; syslog_facility is used to specify what type of program is logging the
27
27
; message. This lets syslogd specify that messages from different facilities
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ After=network.target
8
8
9
9
[Service]
10
10
Type=@php_fpm_systemd@
11
- PIDFile=@EXPANDED_LOCALSTATEDIR@ /run/php-fpm.pid
11
+ PIDFile=/run/php-fpm /php-fpm.pid
12
12
ExecStart=@EXPANDED_SBINDIR@/php-fpm --nodaemonize --fpm-config @EXPANDED_SYSCONFDIR@/php-fpm.conf
13
13
ExecReload=/bin/kill -USR2 $MAINPID
14
14
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ group = @php_fpm_group@
38
38
; (IPv6 and IPv4-mapped) on a specific port;
39
39
; '/path/to/unix/socket' - to listen on a unix socket.
40
40
; Note: This value is mandatory.
41
- listen = 127.0.0.1:9000
41
+ listen = /run/php-fpm/php-fpm.sock
42
42
43
43
; Set listen(2) backlog.
44
44
; Default Value: 511 (-1 on Linux, FreeBSD and OpenBSD)
@@ -50,8 +50,8 @@ listen = 127.0.0.1:9000
50
50
; and group can be specified either by name or by their numeric IDs.
51
51
; Default Values: Owner is set to the master process running user. If the group
52
52
; is not set, the owner's group is used. Mode is set to 0660.
53
- ; listen.owner = @php_fpm_user@
54
- ; listen.group = @php_fpm_group@
53
+ listen.owner = @php_fpm_user@
54
+ listen.group = @php_fpm_group@
55
55
;listen.mode = 0660
56
56
57
57
; When POSIX Access Control Lists are supported you can set them using
@@ -422,7 +422,7 @@ pm.max_spare_servers = 3
422
422
; Chdir to this directory at the start.
423
423
; Note: relative path can be used.
424
424
; Default Value: current directory or / when chroot
425
- ;chdir = /var/www
425
+ ;chdir = /srv/http
426
426
427
427
; Redirect worker stdout and stderr into main error log. If not set, stdout and
428
428
; stderr will be redirected to /dev/null according to FastCGI specs.
You can’t perform that action at this time.
0 commit comments