title: Lumen unpredictable output
body: <p>Recently, I installed <code>lumen</code> (5.0.4) mfw and ran into an issue with page load on default configuration. I have unpredictable behavior of page load process. </p>
  
  <p>Sometimes it loads okay but sometimes instead of loading I am getting a download dialog with zero size unnamed file or it throws an exception like</p>
  
  <pre><code>NotFoundHttpException in Application.php line 1109:
  </code></pre>
  
  <p>(At first, I want to say that other non lumen/laravel sites work fine) Server configuration: </p>
  
  <ul>
  <li>Apache 2.4.12</li>
  <li>PHP 5.6.7-1</li>
  <li>Zend Engine v2.6.0 with Zend OPcache v7.0.4-dev</li>
  </ul>
  
  <p>I think the problem is with <code>php</code> working through <code>php-fpm</code> because with <code>fcgi</code> configuration it seems to work well.</p>
  
  <p>I tried <a href="https://stackoverflow.com/questions/29728973/notfoundhttpexception-with-lumen">NotFoundHttpException with Lumen</a> but that didn't help me.</p>