Package: php7.0-fpm
Version: 7.0.27-0+deb9u1

After installing this package, it won't run because it does not create
a directory that it needs:

  $ apt-get install php7.0-fpm
  $ php-fpm7.0
  ERROR: unable to bind listening socket for address 
'/run/php/php7.0-fpm.sock': No such file or directory (2)
  ERROR: FPM initialization failed
  $ ls /run/php
  ls: cannot access '/run/php': No such file or directory
  $ grep run/php /etc/php/7.0/fpm/php-fpm.conf 
  pid = /run/php/php7.0-fpm.pid

The default pidfile is created in /var, so I think that if the package
ships with a config file that changes the path to something different,
then the package should also make sure the new path exists.

Since I am running through Docker which starts off with a clean install
each time, it would be nicer to get the package fixed than to add a
workaround to manually create the directory after each install.

Reply via email to