title: Index.php put in a pre tag in Apache
body: <p>I am trying to get a moodle server (LAMP stack) up and running. I followed these instructions: <a href="https://docs.moodle.org/29/en/Step-by-step_Installation_Guide_for_Ubuntu" rel="nofollow noreferrer">https://docs.moodle.org/29/en/Step-by-step_Installation_Guide_for_Ubuntu</a>.</p>
  
  <p>When I navigate to my page, it places the whole index.php in a <code>&lt;pre&gt;</code> tag, so the code is just displayed and not executed. I looked in my /var/www/html/moodle directory and there is no <code>&lt;pre&gt;</code> tag in the index.php.</p>
  
  <p>I am thinking that Apache is not playing nice with PHP and I need to adjust something, but I'm a bit new to LAMP and don't know where to start.</p>