Here Are the Steps To Install Nginx Plus on Ubuntu Server Running on HP Cloud. Nginx Plus is the Paid Version of Nginx with Extra Features. This guide is not for the Free Community Edition of Nginx. If you are searching how to install Nginx Community Edition on Ubuntu Server on HP Cloud, you should follow these guides – Install on Ubuntu Server on HP Cloud. Steps will be quite different. We are not Paid or Endorsed by neither Nginx nor HP Cloud. Essentially, running a website, paying the employees need money. Nginx Plus is not exactly a cheap software, but worth the price for high load websites. Plus it has beautiful direct support. It is not a Google Product, that they will suddenly change the policies or you’ll need to read hundreds of Legal Documents.
Steps To Install Nginx Plus on Ubuntu Server : Perquisites
It is taken that, you have some grasp on Networking stuffs needed for HP Cloud’s Enterprise Grade Router – read HP Cloud Router Subnet settings and Getting Started with HP Cloud.
We are describing a typical setup for a separate database server.
---
It is taken granted that, you either have a Paid Subscription or Trial of Nginx Plus. Without the subscription, things will not work. Spin a 4GB instance at minimum. When you are opting for Nginx Plus, definitely you have significant load. Nginx is light, does not mean; you will kick a virtual instance to work. 2GB and 4GB both has two virtual cores.
Do not try the thing on an already running server. It will die if the CMS is WordPress. You can add the Floating IP of the old instance later on this new instance.
Steps To Install Nginx Plus on Ubuntu Server
You will receive two emails from Nginx. One is to login to https://cs.nginx.com/
another is about Keys. SSH to your instance. Get the Sudoer’s privilege by running sudo su -
command. If sudo
gives error, read this guide to fix it.
First, cd to :
1 | cd /etc/ssl |
Create a directory named ssl
:
1 | mkdir nginx && cd nginx |
Do not run mkdir -p /etc/ssl/nginx/
command. That is not for OpenSSL related things. Understand this screenshot :
On Mac, you can download them quite easily. Open with TextEdit or Nano. Copy each of the certs and create each file inside /etc/ssl/nginx/
directory :
1 2 3 4 | nano nginx–repo.crt # paste the thing nano nginx–repo.key # paste the thing |
In the next webpage, which is hyperlinked with NGINX Plus installation instructions
text, will give you a dropdown option to select the type of OS / Distro. You’ll select Ubuntu. You’ll get another certificate here – CA.crt
in the description.
In the same way, create the new file and copy paste the content :
1 2 | nano CA.crt # paste the thing |
You will need another certificate, run this command :
1 | wget http://nginx.org/keys/nginx_signing.key && sudo apt–key add nginx_signing.key |
Now, change ownership and change the permission :
1 2 | sudo chmod 777 /etc/ssl/nginx –R sudo chown root:www–data /etc/ssl/nginx –R |
You can change the chmod
value to 400
later, if you want. Now cd to :
1 2 3 4 5 6 7 8 9 | cd /etc/apt/apt.conf.d nano 90nginx # paste content from Nginx‘s that page’s hyperlinked download # it will be like this Acquire::https::plus–pkgs.nginx.com::Verify–Peer “true”; Acquire::https::plus–pkgs.nginx.com::Verify–Host “true”; Acquire::https::plus–pkgs.nginx.com::CaInfo “/etc/ssl/nginx/CA.crt”; Acquire::https::plus–pkgs.nginx.com::SslCert “/etc/ssl/nginx/nginx-repo.crt”; Acquire::https::plus–pkgs.nginx.com::SslKey “/etc/ssl/nginx/nginx-repo.key”; |
That explains why we created the /etc/ssl/nginx/
directory.
Run these two commands :
1 2 | apt–get install apt–transport–https libgnutls26 libcurl3–gnutls printf “deb https://plus-pkgs.nginx.com/ubuntu lsb_release -cs nginx-plus\n” >/etc/apt/sources.list.d/nginx–plus.list |
Now first run :
1 2 | apt–get update apt–get upgrade |
You should not get any Error like E: Can not fetch some content
or a message closer to it. Now install Nginx Plus :
1 | apt–get install –y nginx–plus |
This is all about the basic Nginx Plus installation. You can install DataDog :
1 | https://github.com/DataDog/dd–agent |
That can monitor the performance of Nginx Plus. Rest you’ll get from Nginx Team. Other parts are like Community version of nginx – PHP5-FPM installation or HHVM installation.
Tagged With download and install nginx plus , install nginx plus in ubuntu , nginx plus download , nginx plus on ubuntu , nginx plus repo , nginx plus ubuntu , NGINX Plus what server hardwear minimum , ubuntu nginx-plus , ubuntu plus nginx