How to setup SSH, Nginx, UFW, and MySQL on a newly minted Ubuntu 18.04 LTS Server

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:


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.


Share this article

Leave a Reply

Your email address will not be published.

Scroll to Top