-
-
Save kelvinotuya/5e3cd14d476645d79aa864286437c2aa to your computer and use it in GitHub Desktop.
Setup Apache on Amazon Linux
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
| #!/bin/bash | |
| yum update -y | |
| yum install -y httpd24 php70 mysql php70-mysqlnd | |
| service httpd start | |
| chkconfig httpd on | |
| usermod -a -G apache ec2-user | |
| sudo chown -R ec2-user:apache /var/www | |
| sudo chmod 2775 /var/www |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yum -y install httpd mysql
amazon-linux-extras install epel -y
yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum-config-manager --disable remi-php54
yum-config-manager --enable remi-php73
amazon-linux-extras install php7.3 -y
nicholaschaung commented on Apr 17, 2020
bureku commented on May 20, 2020
bertperrisor commented on Jun 18, 2020
NAME="Amazon Linux AMI"
VERSION="2018.03"
ID="amzn"
ID_LIKE="rhel fedora"
...
You might want to check if your Linux instance has yum installed.