Closed arkpoah closed 4 years ago
You need to override PIDFile=/run/php/php7.2-fpm.pid
in the service file with:
systemctl edit php7.2-fpm
and adding:
[Service]
PIDFile=
PIDFile=/run/php/php7.2-fpm.pid
It works when I change PIDFile=
with same path set in php-fpm.conf
, /run/php7.2-fpm.pid
for me.
I did not need to do that before, it is bug for me.
Regards
For me this fix the problem:
systemd[1]: Can't open PID file /opt/alt/php-fpm74/usr/var/run/php-fpm.pid (yet?) after reload: No suc...irectory
This bug is coming with last versions on Debian buster, I can't reproduce it on Debian jessie (both I can test). It appears between php7.2-fpm_7.2.27-1 and php7.2-fpm_7.2.27-5 versions, no issue with first one. I also reproduce it with php7.4-fpm_7.4.2-5 on buster.
In
/etc/php/7.2/fpm/php-fpm.conf
, pidfile needs to be set in /var/run/php/pidfile.pid, if it is set on /var/run/pidfile.pid, I get this error on fpm start :I see systemd service file has 2 new lines :
Tried to add them with php7.2-fpm_7.2.27-1 working version to test it, but systemd is not agree :/