TransWikia.com

What's the difference between these two php-fpm configuration files?

Stack Overflow Asked on December 30, 2020

I see php-fpm.conf and php-fpm.d/www.conf –they are both config files for php-fpm.

(And just to be clear: neither one of those files is the same as the main php.ini config file, which is something I’m familiar with and a totally separate and different thing.)

So: why does php-fpm have/need two separate config files?

One Answer

FPM uses php.ini syntax for its configuration file - php-fpm.conf, and pool configuration files - php-fpm.d/*.conf (php-fpm.d/www.conf in our case).

You can put all pool config files in php-fpm.conf file but sometimes it's much more convenient to put them in separate files - www.conf, cli.conf, etc.

Answered by Павел Савостин on December 30, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP