I've set up nginx and php-fpm under Arch Linux on a RasPi. nginx was set up in a chroot as described in the ArchWiki. Everything runs fine when
nginx.conf are set up to listen to
php-fpm.conf doesn't declare a path to the pid.
Now I want to change the setup to use a UNIX socket as is suggested across the web. So I added to
php-fpm.conf the following.
pid = /srv/http/run/php-fpm/php-fpm.pid ... [www] chroot = /srv/http; listen = /srv/http/run/php-fpm/php-fpm.sock
When I manually create the
.sock file and restart both php-fpm and nginx, it works. But whenever I reboot, the
php-fpm directory and
.sock file are gone...
How can I preserve them across reboots?
tmpfs /srv/http/run tmpfs rw,noexec,relatime,size=1024k 0 0 tmpfs /srv/http/tmp tmpfs rw,noexec,relatime,size=102400k 0 0