title: PHP code is rendered as text
body: <p>I'm using Ubuntu 16.04 and I want to run php files.</p>
  
  <p>I installed Php 7 on it using:</p>
  
  <pre><code>sudo mkdir -p /var/www/html
  sudo chown -R $USER:$USER /var/www/html
  sudo apt install php
  sudo apt install apache2
  </code></pre>
  
  <p>I created a php file (e.g. <code>test.php</code>) in <code>/var/www/html</code>. I can access it in the browser (e.g. <code>http://localhost/test.php</code>). Instead of executing the <code>&lt;?php ... ?&gt;</code> code, it is displayed as plain text:</p>
  
  <p>I tried to turn <code>short_open_tag</code> to <code>On</code>. So I edited the <code>/etc/php/7.0/fpm/php.ini</code> and enabled it. </p>
  
  <p>Then I ran <code>sudo service php7.0-fpm restart</code>. This didn't make any change in the browser. The php code is still displayed as plain text.</p>
  
  <p>How can I fix this?</p>