title: How to find my php-fpm.sock?
body: <p>I'm running Wordpress with: Nginx + PHP-FPM + APC + W3 Total Cache + PageSpeed.</p>
  
  <p>After 3 days researching and configuring, I succeeded to make it work.
  I configured PHP-FPM to run via 127.0.0.1:9000. But now I want to configure via Socket. </p>
  
  <p>The problem is that I can't find the socket path in my server. I just found <code>/var/run/php-fpm/php-fpm.pid</code>, but <code>php-fpm.sock</code> was not there.</p>
  
  <p>Running <code>whereis php-fpm</code> the output is:</p>
  
  <pre><code>php-fpm: /usr/sbin/php-fpm /etc/php-fpm.d /etc/php-fpm.conf /usr/share/man/man8/php-fpm.8.gz
  </code></pre>
  
  <p>But there isn't any <code>php-fpm.sock</code> there.</p>
  
  <p>How can I find <code>php-fpm.sock</code>?</p>
  
  <p>My specs:</p>
  
  <ul>
  <li>Amazon Micro EC2</li>
  <li>Linux version 3.4.48-45.46.amzn1.x86_64 Red Hat 4.6.3-2 (I think it's based on CentOS 5)</li>
  <li>PHP 5.3.26 (fpm-fcgi)</li>
  </ul>