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 | |
echo "===============================" | |
echo "Installing PHP 7" | |
echo "===============================" | |
sudo yum install php70 | |
echo "===============================" | |
echo "Installing PHP 7 additional commonly used php packages" | |
echo "===============================" |
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 add-apt-repository ppa:ondrej/php -y \ | |
sudo apt-get update -y \ | |
sudo apt-get install -y \ | |
php7.0 \ | |
php7.0-cli \ | |
php7.0-common \ | |
php7.0-mysql\ | |
php7.0-fpm \ |
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 | |
echo "===============================" | |
echo "Installing PHP 7.1" | |
echo "===============================" | |
sudo yum install php71 | |
echo "===============================" | |
echo "Installing PHP 7.1 additional commonly used php packages" | |
echo "===============================" |
Go through this amazon link http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html
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
#This script will install the cloudformation helper work on Ubuntu 18. | |
#Some values are hard coded. Make sure to update where needed, or add to the parameters section. | |
#This would probably work on other distros, but I have not tested yet. Try it out. | |
#Just make sure to change things like apt to yum if trying on another OS. | |
Parameters: | |
EnvironmentSize: | |
Type: String | |
Default: t3.nano | |
AllowedValues: | |
- t3.nano |
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
#This script will install the cloudformation helper work on Ubuntu 18. | |
#Some values are hard coded. Make sure to update where needed, or add to the parameters section. | |
#This would probably work on other distros, but I have not tested yet. Try it out. | |
#Just make sure to change things like apt to yum if trying on another OS. | |
Parameters: | |
EnvironmentSize: | |
Type: String | |
Default: t3.nano | |
AllowedValues: | |
- t3.nano |
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
"UserData": { | |
"Fn::Base64": { "Fn::Join":["", [ | |
"#!/bin/bash -ex\n", | |
"apt-get update\n", | |
"apt-get -y install python-setuptools\n", | |
"mkdir aws-cfn-bootstrap-latest\n", | |
"curl https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz | tar xz -C aws-cfn-bootstrap-latest --strip-components 1\n", | |
"easy_install aws-cfn-bootstrap-latest\n", | |
"/usr/local/bin/cfn-init --stack ", { "Ref":"AWS::StackName" }, " --resource WebServer", " --region ", { "Ref": "AWS::Region" }, "\n", | |
"\n", |
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
"UserData": { | |
"Fn::Base64": { "Fn::Join":["", [ | |
"#!/bin/bash -ex\n", | |
"apt-get update\n", | |
"apt-get -y install python-setuptools\n", | |
"mkdir aws-cfn-bootstrap-latest\n", | |
"curl https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz | tar xz -C aws-cfn-bootstrap-latest --strip-components 1\n", | |
"easy_install aws-cfn-bootstrap-latest\n", | |
"/usr/local/bin/cfn-init --stack ", { "Ref":"AWS::StackName" }, " --resource WebServer", " --region ", { "Ref": "AWS::Region" }, "\n", | |
"\n", |
OlderNewer