title: laravel Server error 500 in cpanel hosting
body: <p>I'm hosting laravel 5.1 in my cpanel but it always accured error.I tried every method (htaccess, chmod 644 and storage give o r+W) but it doesn't work in my cpanel but when i removed following line from index.php of public folder it give access to index.php file:</p>
  
  <pre><code>$kernel = $app-&gt;make(Illuminate\Contracts\Http\Kernel::class);
  
  $response = $kernel-&gt;handle(
      $request = Illuminate\Http\Request::capture()
  );
  
  $response-&gt;send();
  
  $kernel-&gt;terminate($request, $response);
  </code></pre>
  
  <p>so it give access to mine folder . Can anybody help me? can it cause due to php version of cpanel?</p>