title: ERROR: FPM initialization failed (php-fpm)
body: <p>I've been trying to get a vagrant virtual box running on my machine, but when I access a local server it throws a 502 Bad Gateway - nginx error.</p>
  
  <p>After doing some reading I think I've traced it to an issue with php-fpm. So far I've tried reinstalling php-fpm (via homebrew), making sure its been added to $PATH, brew tap my php install source, and restarting it. Still getting the same error.</p>
  
  <p>Example: </p>
  
  <pre><code>$ which php-fpm
  /usr/sbin/php-fpm
  $ /usr/sbin/php-fpm --test 
  </code></pre>
  
  <p>Output: </p>
  
  <pre><code>$ ERROR: failed to open configuration file '/private/etc/php-fpm.conf': No such file or directory (2)
  $ ERROR: failed to load configuration file '/private/etc/php-fpm.conf'
  $ ERROR: FPM initialization failed
  </code></pre>
  
  <p>or:</p>
  
  <pre><code>$ php-fpm -c /usr/sbin/php-fpm
  PHP:  parse error in /usr/sbin/php-fpm on line 1
  </code></pre>
  
  <p>Edit: I don't seem to have a php-fpm.conf file anywhere. Guess I need to create this? </p>
  
  <p>I'm on a mac running Mavericks. </p>