Ubuntu NGINX Installation

Let’s go through to setup NGINX on Ubuntu

DOWNLOAD NGINX FILES

From the CLI

sudo apt-get update
sudo apt-get install nginx

FIND IP ADDRESS

Still in the CLI, paste in the following:

ip addr show | grep inet | awk '{ print $2; }' | sed 's/\/.*$//'

You will get an output that somewhat looks like this:

127.0.0.1
::1
10.0.0.4
fe80::250:56ff:feb3:46e3

With these addresses, goto your browser window and type in the address to see if you get an NGINX Welcome Screen.

CONTINUE TO PHP INSTALLATION

Now that NGINX is installed, we need to install PHP and configure both of them to work together.

PHP INSTALLATION