From e4f7199715753cef40f0c72e36a85e1261d60ccb Mon Sep 17 00:00:00 2001 From: Hugo Thunnissen Date: Wed, 27 Apr 2022 17:37:05 +0200 Subject: [PATCH] Change php-fpm conf to log errors to stderr and create pidfile in /tmp --- php-fpm.conf | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/php-fpm.conf b/php-fpm.conf index 69793e8..4b343c1 100644 --- a/php-fpm.conf +++ b/php-fpm.conf @@ -16,14 +16,18 @@ ; Default Value: none ; Warning: if you change the value here, you need to modify systemd ; service PIDFile= setting to match the value here. -pid = /run/php/php8.1-fpm.pid + +;;;; +; Note to self: setting this to "none" sets it to /var, still resulting in a +; failure to write the pidfile... +pid = /tmp/bullshit.pid ; Error log file ; If it's set to "syslog", log is sent to syslogd instead of being written ; into a local file. ; Note: the default prefix is /var ; Default Value: log/php-fpm.log -error_log = /var/log/php8.1-fpm.log +error_log = /dev/stderr ; syslog_facility is used to specify what type of program is logging the ; message. This lets syslogd specify that messages from different facilities