title: Why PHP 7.1.3 script is not running on Apache 2.4.25?
body: <p>I am trying to make a php script run to make the first test on the browser but it doesn't work. When I try to open the link it shows me the following:</p>
  
  <pre><code>&lt;?php phpinfo(); ?&gt;
  </code></pre>
  
  <p>Currently I have PHP 7.1.3 installed and Apache 2.4.25 in a Amazon VM with AMI. And the file phpinfo.php contains the same showed above by the browser.</p>
  
  <p>Below some commands to confirm.</p>
  
  <p>php -v
  PHP 7.1.3 (cli) (built: Mar 26 2017 15:36:12) ( NTS )
  Copyright (c) 1997-2017 The PHP Group
  Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies</p>
  
  <p>httpd -v
  Server version: Apache/2.4.25 (Amazon)
  Server built:   Jan 19 2017 16:55:49</p>
  
  <p>In the file http.conf I took the following actions:</p>
  
  <h1>Updated a section:</h1>
  
  <pre><code>`&lt;IfModule dir_module&gt;`
      `DirectoryIndex /index.php index.php index.html`
  `&lt;/IfModule&gt;`
  </code></pre>
  
  <h1>Inserted some lines:</h1>
  
  <pre><code>`&lt;FilesMatch \.php$&gt;`
  `   SetHandler application/x-httpd-php`
  `&lt;/FilesMatch&gt;`
  `&lt;FilesMatch \.phps$&gt;`
  `   SetHandler application/x-httpd-php-source`
  `&lt;/FilesMatch&gt;`
  `AddType application/x-httpd-php-source .phps`
  </code></pre>
  
  <p>I would appreciate some help on this. Please let me know if I can provide any other information that might help on solving this issue.</p>
  
  <p>Thanks in advance</p>