Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've set up my php5-fpm to bind to a unix domain socket within /var/run/php5-fpm.

/etc/php5/fpm/pool.d/www.conf

listen = /var/run/php5-fpm/$pool.sock

The problem is that it will not automatically create the php5-fpm directory. When I reboot the machine, the directory is gone.

How can I have it automatically created on boot? Or is there an other solution to this problem?

share|improve this question
    
That directory (php5-fpm) must exist first. –  quanta Oct 18 '11 at 14:43
    
Hmm, just found a possible answer: serverfault.com/questions/74796 Not the one I hoped for though. :-/ –  igorw Oct 18 '11 at 14:45
1  
@quanta so am I expected to create it by hand (or through an init script) every time I boot? seems ridiculous to me. I don't see why it needs to be that hard. –  igorw Oct 18 '11 at 14:47
    
The init script should already be creating it for you. –  Michael Hampton Dec 27 '13 at 9:18
    
If the directory is not being created, then you could always add a "mkdir" command to the init.d script that starts PHP-FPM. For my setup, I use /tmp to store them just because it's always there. –  Jason Ilicic Feb 5 at 22:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.