title: index.php not working laravel 5
body: <p>I have a problem in index.php. When i try to run the application i get the text of index.php in the browser.</p>
  
  <p>I am using ubuntu. <strong>I recently switched from windows</strong> where application was working fine with xampp. Following is the screenshot of my directory structure.</p>
  
  <p><a href="https://i.stack.imgur.com/PJfFI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PJfFI.png" alt="enter image description here"></a></p>
  
  <p>Following is the .htaccess file.</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  
      &lt;IfModule mod_negotiation.c&gt;
          Options -MultiViews
      &lt;/IfModule&gt;
  
      RewriteEngine On
  
      # Redirect Trailing Slashes...
      RewriteRule ^(.*)/$ /$1 [L,R=301]
  
      # Handle Front Controller...
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^ index.php [L]
  
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>And following is the screenshot of index.php file in the browser.
  <a href="https://i.stack.imgur.com/CGhew.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CGhew.jpg" alt="enter image description here"></a></p>