Skip to content
Advertisement

where is php-fpm getting its config values on osx

I’m trying to php-fpm on my osx by running:

JavaScript

and I get this error:

JavaScript

i don’t have that file nor can I create it – even when using sudo:

JavaScript

so my next big move is to find where exactly is this log file directory setup in php-fpm configuration (so that i can decide where the log file should go).. there seems to be many configuration files, so I refer to this question in finding the location of my php-fpm configuration file. so in the output of my php -i file I have this:

JavaScript

and there I have the following files:

php-fpm.conf

JavaScript

so where is it coming from?

also when I run this:

JavaScript

note sure if it helps

Advertisement

Answer

php-fpm.conf location is determined by the option

JavaScript

specified when invoking $ ./confugure just before compiling php-fpm.

Usually it is /etc but may be different in your case.

Invoking $ php-fpm -i will show the options passed to configure.

Just look after Configure Command =>.

From the comments I see you have found '--sysconfdir=/private/etc' so I would look right there.


Note that you can invoke php-fpm specifying a different location for the configuration file using the -y option.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement