/run/php/ disappears after shutdown
Posted: 9. Aug 2017, 15:19
(cross post from this thread... viewtopic.php?f=1&t=84012)
I'm running a couple of guests in virtualbox as development environments for VPS websites I run.
I've recreated them exactly in VB as LEMP stacks (Centos 7, nginx, mariadb, php 5.6) and all works well.
My problem is when I close the guest with the "power off" or "send shutdown signal" the directory the php-fpm socket is listening to (/run/php/) gets deleted and is not created again on boot. I have to manually mkdir and chown after each boot.
My question is, is there a better place for php-fpm.sock than in /run/ or /var/run/, a way to generate the /run/php/ directory after "hard" boots, or should I use "save the machine state" each time?
I'm running a couple of guests in virtualbox as development environments for VPS websites I run.
I've recreated them exactly in VB as LEMP stacks (Centos 7, nginx, mariadb, php 5.6) and all works well.
My problem is when I close the guest with the "power off" or "send shutdown signal" the directory the php-fpm socket is listening to (/run/php/) gets deleted and is not created again on boot. I have to manually mkdir and chown after each boot.
My question is, is there a better place for php-fpm.sock than in /run/ or /var/run/, a way to generate the /run/php/ directory after "hard" boots, or should I use "save the machine state" each time?