Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Setup LEMP
Setup droplet
# create droplet
# setup private network
Edit via DO Dashboard
# initial setup (including firewall)
# add user
sudo adduser afin
# add to sudoer
usermod -aG sudo afin
# update repo
sudo apt-get update
sudo apt-get dist-upgrade
# Change timezone
timedatectl set-timezone Asia/Jakarta
# Install zsh
sudo apt-get install zsh
sudo apt-get install git-core
wget -O - | zsh
chsh -s `which zsh`
sudo shutdown -r 0
# UFW Firewall
sudo ufw app list
sudo ufw allow OpenSSH
sudo ufw enable
sudo ufw status
systemctl status nginx
# Install nginx
sudo apt-get install nginx
sudo ufw app list
sudo ufw allow 'Nginx HTTP'
systemctl status nginx
sudo ufw enable
# Install vnstat
sudo apt-get install vnstat
# Install mysql
sudo apt-get install mysql-server
# Install PHP
sudo apt-get install php-fpm php-mysql
# Install PHPMyAdmin
# Install nginx di ubuntu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.