Skip to content

Instantly share code, notes, and snippets.

@izshreyansh
Created February 2, 2020 13:48
Show Gist options
  • Save izshreyansh/b4ab719e921b17ebf0d37e2b939f5fbb to your computer and use it in GitHub Desktop.
Save izshreyansh/b4ab719e921b17ebf0d37e2b939f5fbb to your computer and use it in GitHub Desktop.
Initialize new sql for lamp stack
sudo apt-get update -y
sudo apt-get upgrade -y
cd ~
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo sysctl vm.swappiness=10
sudo sysctl vm.vfs_cache_pressure=50
sudo apt-get install apache2 -y
sudo apt-get install git -y
sudo apt install software-properties-common -f
sudo add-apt-repository ppa:ondrej/php -f
sudo apt update -f
sudo apt-get install php7.3 -y
sudo apt-get install php7.3-dom -y
sudo apt-get install php7.3-xml -y
sudo apt-get install php7.3-zip -y
sudo apt-get install php7.3-curl -y
sudo apt-get install php7.3-imagick -y
sudo apt-get install php7.3-gd -y
sudo apt-get install php7.3-sqlite -y
sudo apt-get install php7.3-mysql -y
sudo apt-get install php7.3-mbstring -y
sudo apt-get install composer -y
sudo apt-get install git -y
sudo apt-get install supervisor -y
sudo apt install redis-server -y
sudo apt-get install npm -y
sudo apt-get install software-properties-common -y
sudo add-apt-repository universe -y
sudo add-apt-repository ppa:certbot/certbot -y
sudo apt-get update -y
sudo apt-get install certbot python-certbot-apache -y
sudo ufw allow ssh
sudo ufw allow http
sudo ufw allow https
sudo ufw enable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment