Found it useful to include these command I’m always using whenever I need to create an ec2 instance:
sudo apt-get update
sudo apt-get install apache2
sudo apt-get install libapache2-mod-php5
sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
# installing php / curl
sudo apt-get install php5-curl
other php modules
sudo apt-get update
sudo apt-cache search php5
Publish Date: 2014-10-04