How to Install NGINX on cPanel/WHM Server

Dreamwebhosts
Jul 15 · 2 min read

Installing NGINX is very easy and quick on cPanel/WHM Server. We will use Engintron to install NGINX on your cPanel/WHM Server. There are a few basic requirements to follow this guide which are discussed below.

Requirements:-

cPanel/WHM installed Server, Guide Link Below
Guide to Install cPanel/WHM
Root Access to Server via SSH

Installation:-

  1. Login to root user via SSH
  2. Run following commands to install Engintron which will install NGINX
    $ cd /; rm -f engintron.sh; wget –no-check-certificate https://raw.githubusercontent.com/engintron/engintron/master/engintron.sh; bash engintron.sh install
  3. Above installation will take a couple of minutes depending on the machine specifications
  4. Login to WHM and Goto Plugins, you will find “Engintron for cPanel/WHM”, which means your Engintron is successful along with NGINX.
Image for post
Image for post

This is how Engintron’s Front Page looks like after opening.

Image for post
Image for post

Configuration for Cloudflare Users

  1. Open Engintron as explained in the last step of the installation
  2. Under NGINX Menu in Left Sidebar look for “Edit your custom_rules for Nginx (view default)” and tap it
  3. Uncomment the following line by removing # character
    set $PROXY_DOMAIN_OR_IP “XXX.XXX.XXX.XXX”;
    XXX.XXX.XXX.XXX — It is your cPanel’s shared IP address, replace it and tap on update rules.
Image for post
Image for post
  1. Engintron will restart and everything will be working out of the box.

So we have completed NGINX Installation with the help of Engintron.

Conclusion:-

Few Informative things for Engintron | Nginx on cPanel

  • Engintron will improve the performance & web serving capacity of your server while reducing CPU/RAM load at the same time.
  • Nginx web server to act as a reverse caching proxy for static files (like CSS, JS, images etc.) with an additional micro-cache layer to significantly improve performance for dynamic content generated by CMSs like WordPress, etc. Apache Web Server is running along with Nginx.
  • Same Apache’s htaccess rules work with Engintron and no extra changes or configurations needed.
  • Engintron/Nginx is installed globally on the server for all the cPanel User and no extra configurations needed on the server.
  • Engintron works without any issues with Cloudflare. Follow configuration for Cloudflare section for its setup.

Originally published by https://dreamwebhosts.com.

Dreamwebhosts

Written by

Dreamwebhosts is Best and affordable Web Hosting Provider. Get Unlimited Space, Bandwidth, Free Domain, SSL, 24×7 Support and 30 days Money Back Guarantee.

Dreamwebhosts

Written by

Dreamwebhosts is Best and affordable Web Hosting Provider. Get Unlimited Space, Bandwidth, Free Domain, SSL, 24×7 Support and 30 days Money Back Guarantee.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store