title: where is php-fpm getting its config values on osx
body: <p>I'm trying to php-fpm on my osx by running:</p>
  
  <pre><code>php-fpm -t
  </code></pre>
  
  <p>and I get this error:</p>
  
  <pre><code>[30-Dec-2017 13:36:12] ERROR: failed to open error_log (/usr/var/log/php-fpm.log): No such file or directory (2)
  [30-Dec-2017 13:36:12] ERROR: failed to post process the configuration
  [30-Dec-2017 13:36:12] ERROR: FPM initialization failed
  </code></pre>
  
  <p>i don't have that file nor can I create it - even when using sudo:</p>
  
  <pre><code>$:/usr $ sudo mkdir var
  Password:
  mkdir: var: Operation not permitted
  </code></pre>
  
  <p>so my next big move is to find where exactly is this log file directory setup in php-fpm configuration (so that i can <a href="https://github.com/rlerdorf/php7dev/issues/48" rel="noreferrer">decide</a> where the log file should go).. there seems to be many configuration files, so I refer to <a href="https://stackoverflow.com/a/35669139/766570">this question</a> in finding the location of my php-fpm configuration file. so in the output of my <code>php -i</code> file I have this:</p>
  
  <pre><code>'--sysconfdir=/usr/local/etc/php/7.1'
  </code></pre>
  
  <p>and there I have the following files:</p>
  
  <h1>php-fpm.conf</h1>
  
  <pre><code>// can't be coming from this file
  // b/c this is telling me it's /usr/local/var/log/php-fpm.log
  
  ; If it's set to "syslog", log is sent to syslogd instead of being written
  ; into a local file.
  ; Note: the default prefix is /usr/local/var
  ; Default Value: log/php-fpm.log
  </code></pre>
  
  <p>so where is it coming from?</p>
  
  <p>also when I run this:</p>
  
  <pre><code>which php-fpm
  /usr/sbin/php-fpm
  </code></pre>
  
  <p>note sure if it helps</p>