title: Store PHP error log file in the script directory without adding PHP code to existing scripts
body: <p>I have been busy setting up my own <a href="https://en.wikipedia.org/wiki/Virtual_private_server" rel="nofollow noreferrer">VPS</a> after being used to <a href="https://en.wikipedia.org/wiki/CPanel" rel="nofollow noreferrer">cPanel</a>, but I can't seem to find out how to let PHP create an <em>error_log</em> file in the same directory as the script that throws the errors.</p>
  <p>I would like this to happen without me having to add a line of code to each .php file. In cPanel this works out of the box somehow.</p>
  <p>Example:</p>
  <p>Error in:  <code>/var/www/webapp1/index.php</code> <br />
  Logfile location: <code>/var/www/webapp1/error_log</code></p>
  <p>Error in:  <code>/var/www/info/system/test.php</code> <br />
  Logfile location: <code>/var/www/info/system/error_log</code></p>
  <p>Basically, I want PHP to store an <em>error_log</em> file in each directory for the scripts in that directory.</p>
  <p>Additional information:</p>
  <ul>
  <li>Single VPS account</li>
  <li><a href="https://en.wikipedia.org/wiki/Debian_version_history#Debian_6.0_(Squeeze)" rel="nofollow noreferrer">Debian 6.0</a> (Squeeze) GNU/Linux</li>
  <li>Apache 2.2.16</li>
  </ul>