title: php-fpm Too many open files
body: <p>I'm running nginx as frontend and php-fpm as backend to prcesss php files. I'm getting "Too many open files" error on my /var/log/php-fpm/error.log. I've increased hard &amp; soft ulimit to 65535 and It seems can't solve the problem.</p>
  
  <p><strong>/var/log/php-fpm/error.log</strong></p>
  
  <pre><code>[17-Sep-2012 14:43:51] ERROR: failed to prepare the stderr pipe: Too many open files (24)
  [17-Sep-2012 14:43:52] ERROR: failed to prepare the stderr pipe: Too many open files (24)
  </code></pre>
  
  <p><strong>ulimit -n</strong></p>
  
  <pre><code>65535
  </code></pre>
  
  <p><strong>/etc/php-fpm/www.conf</strong></p>
  
  <pre><code>rlimit_files = 65535
  </code></pre>