Find knowledge base article(s) by searching for keywords in the title e.g. type linux in the search box below
Find knowledge base article(s) by browsing the subject categories of articles
Technology quick references, cheatsheets, user manuals etc.
Shop Online through ShopifyLite
Tutorials on various IT applications.
Search Title    (UL:0 |SS:f)

Services >> Cloud >> AWS >> Service >> Compute >> EC2 >> Sample bootstrap scripts when launching new instance

(1) Install Basic Linux, Apache, MySQL, PHP (LAMP) server

 #!/bin/bash
sudo yum update -y
sudo yum install -y httpd24 php70 mysql56-server php70-mysqlnd
sudo service httpd start
sudo chkconfig httpd on
sudo echo "<html><body>Welcome to web server X</body></html>" > /var/www/html/index.html
sudo chown -R apache.apache /var/www/html

 

(2) Add AWS Systems Manager (SSM) Agent to Linux AMI

 #!/bin/bash
sudo yum install -y https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/linux_amd64/amazon-ssm-agent.rpm

 

 

 

 

 

[ © 2008-2021 myfaqbase.com - A property of WPDC Consulting ]