title: Find out the error_log's path
body: <p>I have this <code>domain.com</code> pointed to <code>/home/username/public_html/domain.com</code>.</p>
  <p>I added these lines to the <em>.htaccess</em> file:</p>
  <pre class="lang-none prettyprint-override"><code>ErrorDocument 500 /oohps.php
  ErrorDocument 404 /where.php
  </code></pre>
  <p>So I can show some styled template.</p>
  <p>The problem is that when trying to access a nonexisting page, I get an additional internal server error, so these files are not opened.</p>
  <p>I wanted to check for the logs, but I cannot find the error log in that path (<code>/home/username/public_html/domain.com</code>).</p>
  <p>I found one in <code>/var/log/httpd</code>, but I don't think it’s the right folder, because there are many errors not involved with this page and I didn't see any involved.</p>
  <p>Is there a PHP function that would <strong>output the errors log file path</strong>?</p>