title: Where can I find php-fpm.log and php-fpm.conf on my server?
body: <p>I think I am having problems with the max children limit for <code>php-fpm</code>. I am trying to find something in the logs. Where can I find <code>php-fpm.log</code> on my server? Running <code>phpinfo()</code> shows this:</p>
  
  <p><a href="https://i.stack.imgur.com/4gyqL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4gyqL.png" alt="enter image description here"></a></p>
  
  <p>I cannot find anything related to <code>php-fpm</code> in <code>/var/log/</code>.</p>
  
  <p>I am also trying to find the <code>php-fpm.conf</code> that is mentioned at <a href="https://www.php.net/manual/en/install.fpm.configuration.php" rel="nofollow noreferrer">https://www.php.net/manual/en/install.fpm.configuration.php</a>. Thank you.</p>
  
  <p><strong>UPDATE 1:</strong> I found at <a href="https://github.com/rlerdorf/php7dev/issues/48" rel="nofollow noreferrer">https://github.com/rlerdorf/php7dev/issues/48</a> that it asks to edit <code>/usr/local/etc/php-fpm.d/www.conf</code>. In my case, I cannot find that file:</p>
  
  <pre><code>root@jai [/usr/local/etc]# pwd
  /usr/local/etc
  root@jai [/usr/local/etc]# ls -al
  total 8
  drwxr-xr-x.  2 root root 4096 Sep 23  2011 ./
  drwxr-xr-x. 15 root root 4096 Apr  7 15:02 ../
  </code></pre>
  
  <p>Do I need to create it at <code>/usr/local/etc/php-fpm.d/www.conf</code>?</p>
  
  <p><strong>UPDATE 2:</strong> I see I have a folder called <code>ApachePHPFPM</code> but the file inside (<code>default_accounts_to_fpm</code>) is empty:</p>
  
  <pre><code>root@jai [/var/cpanel/ApachePHPFPM]# pwd
  /var/cpanel/ApachePHPFPM
  root@jai [/var/cpanel/ApachePHPFPM]# ls -al
  total 16
  drwxr-xr-x   2 root root  4096 Mar 26 04:44 ./
  drwx--x--x 108 root root 12288 Apr 17 13:44 ../
  -rw-r--r--   1 root root     0 Mar 26 04:44 default_accounts_to_fpm
  root@jai [/var/cpanel/ApachePHPFPM]#
  </code></pre>
  
  <p><strong>UPDATE 3:</strong> My server had this file:</p>
  
  <pre><code>/usr/local/cpanel/etc/php-fpm.conf
  </code></pre>
  
  <p>The file contains this:</p>
  
  <pre><code>; Error log file
  ; Default Value: /var/log/php-fpm.log
  error_log = /usr/local/cpanel/logs/php-fpm/error.log
  </code></pre>
  
  <p>That means that my error logs for <code>php-fpm</code> are located in this file: /usr/local/cpanel/logs/php-fpm/error.log.</p>
  
  <p>I navigated to <code>/usr/local/cpanel/logs/php-fpm/</code> but I could not find <code>error.log</code>:</p>
  
  <pre><code>root@jai [/usr/local/cpanel/etc]# cd /usr/local/cpanel/logs/php-fpm/
  root@jai [/usr/local/cpanel/logs/php-fpm]# ls -al
  total 8
  drwx------ 2 root root 4096 Mar 30  2018 ./
  drwx--x--x 6 root root 4096 Apr 16 15:24 ../
  root@jai [/usr/local/cpanel/logs/php-fpm]#
  </code></pre>