Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Setup LEMP
Setup droplet
# create droplet
# setup private network
Edit via DO Dashboard
https://www.digitalocean.com/docs/networking/private-networking/how-to/enable/#ubuntu-16-04
# initial setup (including firewall)
https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-16-04
# 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 https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -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
mysql_secure_installation
# Install PHP
sudo apt-get install php-fpm php-mysql
# LEMP
https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-in-ubuntu-16-04
# Install PHPMyAdmin
https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-with-nginx-on-ubuntu-16-04
# Install nginx di ubuntu
https://www.codepolitan.com/cara-install-phpmyadmin-di-nginx-ubuntu-1604-lts-5a5ee9ead169e
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.