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
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 :
Create a directory named ssl :
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 :
# paste the thing
# 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 :
# paste the thing
You will need another certificate, run this command :
wget http://nginx.org/keys/nginx_signing.key && sudo apt–key add nginx_signing.key
Now, change ownership and change the permission :
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 :
# paste content from Nginx‘s that page’s hyperlinked download
# it will be like this
That explains why we created the /etc/ssl/nginx/ directory.
Run these two commands :
apt–get install apt–transport–https libgnutls26 libcurl3–gnutls
printf “deb https://plus-pkgs.nginx.com/ubuntu
Now first run :
You should not get any Error like E: Can not fetch some content or a message closer to it. Now install Nginx Plus :
apt–get install –y nginx–plus
This is all about the basic Nginx Plus installation. You can install DataDog :
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.
Follow the Author of this article :