I am trying to run both php-fpm and nginx to run my webserver but their respective services fails, though they keep running. The log shows that they both create the sock file but can't create the pid file in the /run directory. In particular, the php-fpm log says:
Unable to create the PID file (/var/${LiveDirectory}/php-fpm.pid).: No such file or directory
The nginx output is:
open () "/run/nginx.pid" failed: No such file or directory.
However, if I stop the services and manually run nginx and php-fpm, pid files are created and things are working fine.
Another weird warning, possibly related to a syntax mistake in the nginx service frontend, is: "off" is not a valid option. The bash command line to start nginx should be nginx -g "daemon off;"
and in the frontend file I see: ArgsStart=!-g \"daemon off;\"
. But it looks like that this off
is not correctly understood by 66, sort of.