title: How to install PHP 7 on EC2 t2.micro Instance running Amazon Linux Distro
body: <p>I want to install the latest PHP 7.0 on an AWS EC2 T2.Micro Instance. So far I have read that currently AWS do not support PHP 7. But hey.. This is just a virtual server in the cloud with me having the full control over its configuration, so there must be some way to get PHP 7 running on this one.</p>
  
  <p>Any help much appreciated. </p>
  
  <p>My box is as below </p>
  
  <pre><code>$ cat /etc/*-release
  ---------------------------------------
  NAME="Amazon Linux AMI"
  VERSION="2015.09"
  ID="amzn"
  ID_LIKE="rhel fedora"
  VERSION_ID="2015.09"
  PRETTY_NAME="Amazon Linux AMI 2015.09"
  ANSI_COLOR="0;33"
  CPE_NAME="[*not significant*]"
  HOME_URL="http://aws.amazon.com/amazon-linux-ami/"
  Amazon Linux AMI release 2015.09
  
  $ uname -a
  ---------------------------------------
  Linux ip-xxx-xxx-xxx-xxx 4.1.13-18.26.amzn1.x86_64 #1 [date] x86_64 x86_64 x86_64 GNU/Linux
  
  $ uname -mrs
  ---------------------------------------
  Linux 4.1.13-18.26.amzn1.x86_64 x86_64
  
  $ cat /proc/version
  ---------------------------------------
  Linux version 4.1.13-18.26.amzn1.x86_64 (mockbuild@gobi-build-64010) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) )
  </code></pre>