Created
June 22, 2017 10:41
-
-
Save shubham9411/092ed1e305b7b98ba2b6bddc88083dce to your computer and use it in GitHub Desktop.
Installing LAMP stack on AWS
This file contains 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
#!/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