title: Show PHP application trace in Apache error log
body: <p>I have developed an application in PHP (using the Symfony framework).</p>
  
  <p>My Apache error log file is getting full of these kind of errors:</p>
  
  <pre><code>[Mon Feb 13 20:08:08 2012] [error] [client 60.169.75.168] Empty module and/or action after parsing the URL "/." (/)., referer: http://www.mywebsite.com/account.php
  [Mon Feb 13 20:08:10 2012] [error] [client 60.169.75.168] Empty module and/or action after parsing the URL "/." (/)., referer: http://www.mywebsite.com/services
  </code></pre>
  
  <p>Is there anyway I can get the Apache log to show a stack trace so that I can track down the problem?</p>
  
  <p>Maybe I should tell Symfony (which is the guy writing some error messages to the log) to write something more (the error trace). Can it be that?</p>
  
  <p><strong>UPDATE:</strong> The problem occurs on production, thus I can't use xdebug.</p>
  
  <p>Thanks,<br>
  Dan</p>