title: How do I configure PHP + Apache on Amazon EC2?
body: <p>I am new to this of course.</p>
  
  <p>I am trying to configure PHP and Apache on a new Amazon EC2 AMI. This is a very lightweight server so the Micro instance fits the bill.</p>
  
  <p>I just need
  Apache
  PHP</p>
  
  <p>I ran  </p>
  
  <pre><code> sudo yum install apache2
   sudo yum install php
  </code></pre>
  
  <p>I copied <code>info.php</code> to <code>/var/www/html</code></p>
  
  <p>info.php only contains</p>
  
  <pre><code>&lt;? phpinfo(); ?&gt;
  </code></pre>
  
  <p>when i browse to <a href="http://www.example.com/info.php" rel="nofollow noreferrer">http://www.example.com/info.php</a> Apache serves info.php but it does not render it. I looks like apache is not configured to handle php files. What step or steps am I missing?</p>
  
  <p>Thanks, </p>