Skip to content

Instantly share code, notes, and snippets.

View NirajVisana's full-sized avatar

Niraj.visana NirajVisana

  • Ahmedabad,India
View GitHub Profile
@NirajVisana
NirajVisana / Aws_script.sh
Created July 26, 2019 12:09
Amazon Linux 2 AMI EC2 - LAMP Configuration Best Practice Script - PHP , Apache , UserGroup , mariadb , PhpMyAdmin
#!/bin/bash
yum update -y
yum -y install expect
amazon-linux-extras install -y lamp-mariadb10.2-php7.2 php7.2
yum install -y httpd mariadb-server
systemctl start httpd
systemctl enable httpd
usermod -a -G apache ec2-user
chown -R ec2-user:apache /var/www
chmod 2775 /var/www