unix - php-fpm won't load www.conf

one text

I'm trying to set php7.3-fpm to use socket by providing a www.conf file. But php-fpm seems to ignore it completely. The php-fpm.conf file is the default one (location: /usr/local/etc/php-fpm.conf) which has this line at the end:

include=etc/php-fpm.d/*.conf

This means that it will try to include any conf file in path: /usr/local/etc/php-fpm.d/ path, right? So I created my www.conf file there with content:

[www]
listen = /var/run/php-fpm.sock

After restarting php-fpm and using php-fpm -tt I see it's still using the defaults.

....
[23-Dec-2020 11:12:02] NOTICE: [www]
[23-Dec-2020 11:12:02] NOTICE:  listen = 9000
...

I tried putting my config in multiple paths with same result:

  • /usr/local/etc/php-fpm.d/www.conf
  • /etc/php-fpm.d/www.conf
  • /usr/local/etc/php-fpm.conf
  • /usr/local/etc/php-fpm.d/www.conf

Source