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 | |
# Add Sources for PHP7.2 to /etc/apt/sources.list | |
# sudo -s | |
sudo echo "deb https://packages.sury.org/php/ stretch main" | sudo tee /etc/apt/sources.list.d/php.list | |
wget -q https://packages.sury.org/php/apt.gpg -O- | sudo apt-key add - | |
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - | |
# Install required packages | |
sudo apt update |
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 | |
apt-get update | |
apt-get install sudo | |
# Install LAMP 5.6 | |
https://gist.github.com/pvgennip/6b9fce2e5632182a2639d99e811a31f6 | |
# Letsencrypt certbot | |
echo 'deb http://ftp.debian.org/debian jessie-backports main' | sudo tee /etc/apt/sources.list.d/backports.list |
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/sh | |
####################################### | |
# Bash script to install an AMP stack and PHPMyAdmin plus tweaks. For Debian based systems. | |
# Written by @AamnahAkram from http://aamnah.com | |
# In case of any errors (e.g. MySQL) just re-run the script. Nothing will be re-installed except for the packages with errors. | |
####################################### | |
#COLORS |
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 | |
# Add Sources for PHP7.0 to /etc/apt/sources.list | |
sudo -s | |
echo 'deb http://packages.dotdeb.org jessie all' >> /etc/apt/sources.list | |
echo 'deb-src http://packages.dotdeb.org jessie all' >> /etc/apt/sources.list | |
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - | |
# Add key for doteb | |
cd /tmp |
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
# Create mysql backup user | |
mysql -u root -pRootPassword | |
GRANT LOCK TABLES, SELECT ON *.* TO 'backupuser'@'localhost' IDENTIFIED BY 'secret-password’; | |
# Create log rotate script | |
sudo nano mysql-db-backup | |
/var/backups/db.sql.gz { | |
daily | |
rotate 8 |
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
sudo apt-get install -y --no-install-recommends \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
software-properties-common | |
curl -fsSL https://apt.dockerproject.org/gpg | sudo apt-key add - | |
sudo add-apt-repository \ | |
"deb https://apt.dockerproject.org/repo/ \ |
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
apt-get update | |
apt-get install sudo | |
#Install Docker Engine + Composer | |
https://gist.github.com/pvgennip/be5bb13b184069758bc14fbbe78599b5 |