Go through this amazon link http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Upgrade an Amazon Linux PHP 7.0 EC2 to PHP 7.1 | |
# | |
# Must be ran as sudo: | |
# sudo bash upgrade-php71.sh | |
# | |
# Can be added to ./.ebextensions/20_php.config like so: | |
# container_commands: | |
# 20_php71_upgrade: | |
# command: sudo bash scripts/upgrade-php71.sh |