Skip to content

Instantly share code, notes, and snippets.

View vicdecode's full-sized avatar
🎯
Focusing

Victor Ekpo vicdecode

🎯
Focusing
View GitHub Profile
@vicdecode
vicdecode / install-php-7.sh
Created February 13, 2020 21:12 — forked from mavieth/install-php-7.sh
Upgrade from PHP 5.X.X to PHP 7 on an AWS EC2 Linux Server
#!/bin/bash
echo "==============================="
echo "Installing PHP 7"
echo "==============================="
sudo yum install php70
echo "==============================="
echo "Installing PHP 7 additional commonly used php packages"
echo "==============================="
@vicdecode
vicdecode / php7_install.sh
Created February 13, 2020 21:13 — forked from degouville/php7_install.sh
A Bash script for PHP7 Install on Ubuntu/Debian
#!/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 \
@vicdecode
vicdecode / install-php-71.sh
Created February 13, 2020 22:14 — forked from hasibomi/install-php-71.sh
Upgrade from PHP 5.X.X to PHP 7.1 on an AWS EC2 Linux Server. Inspired by https://gist.github.com/mavieth/b6b3b622dd9f863ca2c7db2da04ab215
#!/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 "==============================="
@vicdecode
vicdecode / amazon-ec2-ftp.md
Created February 25, 2020 16:22 — forked from gunjanpatel/amazon-ec2-ftp.md
amazon ec2 LAMP and FTP installation and setup
@vicdecode
vicdecode / UbuntuCFinit.yaml
Created June 25, 2020 15:29 — forked from mmasko/UbuntuCFinit.yaml
Configure cfn-hup, cloudformation tools on ubuntu 18. Based on a gist from https://gist.github.com/kixorz/10194688. Written in YAML.
#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
@vicdecode
vicdecode / UbuntuCFinit.yaml
Created June 25, 2020 15:29 — forked from mmasko/UbuntuCFinit.yaml
Configure cfn-hup, cloudformation tools on ubuntu 18. Based on a gist from https://gist.github.com/kixorz/10194688. Written in YAML.
#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
"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",
"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",