How to install Nginx on Ubuntu 14.04 LTS

Nginx is a web server that is more friendly to resources compared to Apache. Therefore it is getting more popular every day.

After this tutorial you will be able to install you own Nginx server on Ubuntu 14.04 LTS

Prequisites

For this tutorial you will need:

  • A Ubuntu 14.04 LTS installation
  • SSH access
  • A logged in root user or a user with sudo rights

1. Install Nginx

The package for Nginx can be found in the default repositories that come with a default Ubuntu 14.04 LTS installation.

But before you use apt-get it is always a smart idea to update your Ubuntu by typing:

sudo apt-get update

Install Nginx  by typing:

sudo apt-get install nginx

2. Check your installation

Your Nginx webserver should startautomatically. To check if everything worked out just like it should you can visit your servers ip.