设置php-fpm默认配置文件位置

I've built from source php + php-fpm + nginx few times.

I'm used to keep everything inside /usr/local

Hovewer php-fpm config file php-fpm.conf is always loaded from /etc/

Of course I can change the location with the -y directive when php-fpm is started but I'd prefer to have a different location by default.

Is there any way to do this?

Does the default location depends upon a directive set when running ./config before the actual build?

Performing a multi-file search on PHP's sources and build files reveals that

php-fpm.conf location is determined by the compile-time option

--sysconfdir=/path/to

specified when invoking ./configure

actually the real reason is you used the old TARed php source code,
you should RM the old TARed php source one and re-Tar xvf php-version.tar.gz,
lastly, configure it and so on. you can try it if you don't believe it~

:p