Amazon Web Services (AWS)

⌘K
  1. Home
  2. Docs
  3. Amazon Web Services (AWS)
  4. LAMP Build

LAMP Build

DO NOT DELETE OR LOSE KEYS.

chmod 400 your_user_name-key-pair-region_name.pem
sudu yum update -y
sudo yum install -y httpd24 php56 mysql55-server php56-mysqlnd
sudo service httpd start
sudo chkconfig httpd on
sudo usermod -a -G apache ec2-user
sudo chown -R ec2-user:apache /var/www
sudo chmod 2775 /var/www find /var/www -type d -exec
sudo chmod 2775 {} \; find /var/www -type f -exec
sudo usermod -aG adm ec2-user
echo "<?php phpinfo(); ?>" > /var/www/html/phpinfo.php
sudo chmod 0664 /var/www/html/phpinfo.php
sudo service mysqld start
sudo mysql_secure_installation
cd /var/www/html
sudo chown Admin
wget https://files.phpmyadmin.net/phpMyAdmin/4.9.4/phpMyAdmin-4.9.4-english.tar.gz
tar -xvf phpMyAdmin-4.9.4-english.tar -C /var/www/html mv phpMyAdmin-4.9.4-english phpmyadmin
rm -rf phpMyAdmin-4.9.4-english.tar

How can we help?