Skip to content

Instantly share code, notes, and snippets.

@shubham9411
Created June 22, 2017 10:41
Show Gist options
  • Save shubham9411/092ed1e305b7b98ba2b6bddc88083dce to your computer and use it in GitHub Desktop.
Save shubham9411/092ed1e305b7b98ba2b6bddc88083dce to your computer and use it in GitHub Desktop.
Installing LAMP stack on AWS
#!/bin/bash
sudo yum -y update
sudo yum install -y gcc make gcc-c++ git httpd24 mod24_ssl php70 php70-devel php70-mysql php70-mysqlnd php70-pdo php70-mbstring php70-mcrypt php-gd php-pear php70-pecl-apc
sudo pear install Log
sudo service httpd start
sudo chkconfig httpd on
sudo service httpd restart
sudo chown -R ec2-user /var/www
sudo yum install mysql mysql-server
sudo chkconfig mysqld on
sudo service mysqld start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment