--- title: Installing LAMP stack in EC2 tags: aws --- Installing LAMP stack in EC2 == ### Requirements: - You should have installed an EC2 instance https://docs.aws.amazon.com/efs/latest/ug/gs-step-one-create-ec2-resources.html - Installed AWS CLI on your local machine - Must have a copy of access key (.pem) ### LAMP stack Installation Follow the complete guide on the link below: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html Stack: Linux, Apache, MySQL, PHP7 ### Notes - If you are trying to set up a LAMP web server on an Ubuntu or Red Hat Enterprise Linux instance, this tutorial will not work for you. - Amazon Linux 2 guide installation doesn't work here. It has a different link here: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-lamp-amazon-linux-2.html ### Install other necessary applications - GIT version control ``` $ sudo yum install git $ git --version ``` - NodeJS installation https://tecadmin.net/install-latest-nodejs-amazon-linux/ *check for stable release* - Composer https://gist.github.com/asugai/6694502 https://stackoverflow.com/questions/51394696/composer-require-dev-problems