How to Install Nginx Web Server on Ubuntu 19.04Rasu (Author) Published Date : Jan 01, 2020 23:58 IST
Nginx is the best and right choice web server if you're using it for high traffic web applications. Installing Nginx is much easier as like other web servers like Apache.
Installing the Nginx web server is common in all cloud service providers like Digital Ocean, Linode, Google Cloud, Amazon Cloud, etc.. All we need is a raw Ubuntu server to install webserver as per our plan. Now we are going to utilize Digital Ocean droplet to install Nginx in the latest version on Ubuntu 19.04.
After completing login credentials in a new droplet in Digital Ocean and setup root login details, use Putty or Termius software to proceed with the installation process.
Step 1: Update and install packages in ubuntu server : sudo apt-get update
Step 2: Upgrade the packages using the dist-upgrade command: sudo apt-get dist-upgrade
Step 3: Allowing UFW firewall with OpenSSH: sudo ufw allow OpenSSH
Step 4: Enable ufw firewall in Ubuntu: sudo ufw enable
Step 5: Once enabled, check the status of UFW firewall status: sudo ufw status
Step 6: Installing the Nginx Web Server on Ubuntu 19.04: sudo apt install nginx
Step 7: To allow HTTPS traffic, we need to allow Nginx Full profile using below command and check Ufw status:
sudo ufw allow 'Nginx Full'
Step 8: Nginx installation is properly done, check your server ip address: http://server_ip_address
Thatâ€™s all in the Nginx installation on Ubuntu 19.04 version. This is just the basic installation of Ubuntu and the Nginx web server.
How to run my website in Nginx Server?
To run your website in Nginx configuration, we need to install PHP and MySql to run PHP coded websites like WordPress and more.
To install PHP and MySql you could follow "How to Install PHP, MySql and PhpMyadmin on Nginx Web server" and also never forget to secure your Nginx web server by installing Let's Encrypt, follow 'How to install Let's Encrypt on Nginx Web Server "
Do I need a working Domain for Nginx Installation?
No, you do not require any domains for the Nginx installation on ubuntu 19.04.
How to Test the Nginx web server without Domain?
Yes, by using your Cloud server ip_address you can test your Nginx server without a domain.
Can I install WordPress script in the Nginx server without domain?
Yes, by using Cloud server ip_address, easy to install WordPress and test WordPress site on Nginx