Update Packages:
sudo apt update
Install Nginx:
sudo apt install nginx
Enable UFW:
sudo ufw enable
Check which pre-built firewall configurations are available:
sudo ufw app list
Add new configurations for your server:
sudo ufw allow 'Nginx Full' sudo ufw allow 'Nginx HTTP' sudo ufw allow 'Nginx HTTPS' sudo ufw allow 'OpenSSH'
Double check Nginx is started:
systemctl status nginx
Install MySQL Server:
sudo apt install mysql-server
Setup password and security for the MySQL server:
mysql_secure_installation
You are now ready to deploy your freshly minted dedicated or virtual private (VPS) server.
Contact us if you need assistance or browse our domain name registration options should you wish to register a or transfer a domain name.
Reference:
https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-18-04-quickstart