How to Install NGINX on cPanel Updated on October 26, 2021 by InMotion Hosting Contributor 1 Minutes, 32 Seconds to Read In this article, we will outline how to install the popular NGINX web server software on your VPS or Dedicated Hosting account. Installing this software allows your web server to cache content and increase server performance. This ultimately translates into faster websites and better experiences for end users. The installation process requires both root WHM and SSH access and is only recommended for users with familiarity with Command Line Interfaces (CLI). As this process requires root-level access, it can only be performed on VPS or Dedicated Hosting accounts. Topics Include: Changing Listening PortsInstalling NGINX Changing Listening Ports First, log into WHM as the root user.Next, click the Tweak Settings link in the Server Configuration section.On the Tweak Settings page click the “>” to scroll, then click the System tab when you see it.Scroll down to the Apache non-SSL IP/port options and select the box to change ports. Since we want to set the listening ports to 8080 for InMotion servers, enter the following:0.0.0.0:8080Navigate to the Apache SSL port setting and select the box to change the ports. Since InMotion uses port 8443 enter the following:0.0.0.0:8443Scroll down to the bottom of the page and click the Save button to open the listening ports. Installing NGINX First, connect to your server as the root user via SSH.Once logged in, run the following command:yum -y install imh-ultrastack-dedYou will see the following message, type ‘y’, then press the enter key.Install 1 PackageTotal download size: 484 kInstalled size: 1.3 MIs this ok [y/d/N]: yThe software has been installed successfully when you see a message such as this:Installed:imh-nginx.x86_64 0:1.13.3-2.el7Complete! Congratulations, you have now installed NGINX! More Resources To take full advantage of everything NGINX has to offer, please see the following resources: Install cPanel Cache ManagerNGINX Education Channel Share this Article InMotion Hosting Contributor Content Writer InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals! More Articles by InMotion Hosting Related Articles HTTP Strict Transport Security (HSTS) in NGINX Basic NGINX Commands How to Manage NGINX How to Create NGINX Redirects Advanced NGINX Stack Configuration for VPS and Dedicated Servers How to Remove NGINX From Your Server What is NGINX? How to Fix Nextcloud Not Working With NGINX Hide Your NGINX Server Version How to Install NGINX on cPanel
Thank you for the well informative blog,l was searching all over the internet for this information. l’m reading through similar blogs so that l can be able to create professional blogs like this one.
Hi Bill! Like anything technical, it’s never an easy answer. NGINX is the newer product and tends to perform better overall– especially with modern WordPress sites which really seem to benefit from NGINX optimization. The trade-off here is that a newer product can mean slightly more work for your SysAdmin if they aren’t familiar with it. For a couple of years it seemed like EasyApache was the more stable choice, but by this point more admins are familiar with NGINX and NGINX has gone through more iterations. So, you’re probably going to see benefits if you’re running a WordPress site– which is why our WordPress Optimized hosting plans all use NGINX. For a non-WordPress site, it’s harder to say. Certain site architectures may not benefit from NGINX as much as others and you have to weigh that against the problems of switching to a new set-up.