How to install Engintron(NGINX) cPanel/WHM

Este post também está disponível em: Português (Portuguese (Brazil))

Engintron for cPanel/WHM is the easiest way to integrate Nginx into your cPanel/WHM server.

Engintron will improve your server’s performance and web service capability while reducing CPU/RAM load.

It does this by installing & configuring the popular Nginx web server to act as a reverse caching proxy for static files (like CSS, JS, images etc.) CMSs like WordPress, Joomla or Drupal, as well as forum software like vBulletin, phpBB, SMF or e-commerce solutions like Magento, OpenCart, PrestaShop and others.‎

But why should you use Nginx on my cPanel server?

‎cPanel uses the Apache web server to serve websites by default. Apache, however, is not known to perform well under heavy web traffic (especially during peak traffic times), and it uses a lot of CPU/RAM.

So how can we mitigate these issues?

The answer is simple: deploying Nginx, another popular web server software, in front of Apache. Nginx acts as a proxy for web traffic, directly serving all static assets like CSS, JS, images, etc. by default instead of Apache. This significantly decreases the CPU/RAM resources consumed by Apache, leaving your server with more resources available for other tasks. ‎

‎A curiosity is that the way Engintron configures Nginx within their cPanel is very similar to the way the popular CloudFlare CDN ‎‎works. Nginx (like CloudFlare) directly serves all static content like CSS, JS, images etc. instead of the real web server, thus decreasing the load on the cPanel server. Unlike CloudFlare, which requires all your domains to be configured with this service, you do everything within your cPanel server. And even better, you also have an additional layer of caching for when your traffic spikes, not just to a site, but entirely to your server. This additional layer of caching is referred to as a “micro cache” and it only stores GET & HEAD requests (never POST requests) which means it is possible to use it on any type of website, be it a small dynamic Joomla corporate website or blog wordpress to a more complex news portal or forum or e-commerce site that requires users to log in and handle custom content or even generate content. Engintron’s 1 second “micro cache” solution setup with Nginx is therefore ideal for any type of website and can increase the number of simultaneous requests served by your cPanel server from a few hundred per second (using Apache only) to thousands (using Nginx in front of Apache).‎

Not only will your service capacity increase, but the load on your server will also drop significantly 🙂

If you are experiencing performance issues with your cPanel server, Engintron is the ideal solution. In fact, it’s really a “set it and forget it” solution as you will configure it once and then it will just run on your server without any additional maintenance on your part.

Finally installing Engintron

‎Installation is a process that only takes a few minutes. You will need SSH access (root or sudo) and access to WHM. If all is well, log in to ssh and type the following commands one at a time:‎

cd /; rm -f; wget --no-check-certificate; bash install

The installation process will take a few minutes. Enjoy and visit Engintron’s documentation page

Common error after installation: nginx not starting. Explaining why. During the process, Apache ports 80 and 443 are changed to 8080 8443, and NGINX is configured to use ports 80 and 443. In this process it is common for the installation to fail to stop Apache ports at 80 and 433. The quick fix is to reboot the server. The most time-consuming solution is to find out what the kill processes are. I am available to answer questions…

We have reached the end of yet another tutorial. In WHM you will see Engintron as the Ultimo Menu.

You want a perfect optimization in the performance and security of your NGINX and Server. Consider hiring HelpSysAdmin ‘s services