Ágota Horváth
Ágota Horváth

Reputation: 1353

Modify the location of php-fpm.conf and php-fpm.d/*.conf?

Is it possible to use a specific file as php-fpm.conf, that is NOT located in the /etc?

I am thinking something like NGINX. I can modify the loation of the default config file of NGINX, but I havent find a way to do the same with php-fpm.

Upvotes: 0

Views: 1820

Answers (1)

Diemuzi
Diemuzi

Reputation: 3527

Certainly, all you have to do is pass the --fpm-config option when starting up FPM

/usr/local/sbin/php-fpm --fpm-config <file>

You can also specify a specific php.ini path by

/usr/local/sbin/php-fpm -c <path>

I have mine located in /usr/local/etc/ where I also keep my PEAR and other PHP configurations.

Upvotes: 1

Related Questions