{"id":2222,"date":"2017-11-16T10:57:45","date_gmt":"2017-11-16T05:27:45","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=2222"},"modified":"2026-09-11T12:17:18","modified_gmt":"2026-09-11T06:47:18","slug":"install-nginx-on-cpanel-using-engintron","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/install-nginx-on-cpanel-using-engintron\/","title":{"rendered":"How to Install Nginx on a cPanel Server"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">cPanel is one of the most widely used web hosting control panels and ships with Apache as its default web server. While Apache is highly flexible and compatible with most web applications, Nginx is known for its superior performance, lower memory consumption, and ability to handle a large number of concurrent connections efficiently.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By deploying Nginx in front of Apache, you can improve website performance, reduce server load, and enable advanced caching capabilities without affecting existing cPanel functionality.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this tutorial, we will install Nginx on a cPanel server using the <strong>Engintron<\/strong> plugin. Engintron automatically configures Nginx as a reverse proxy, moves Apache to port <strong>8080<\/strong>, and allows Nginx to listen on the standard HTTP port <strong>80<\/strong>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">How This Nginx Setup Works<\/h2>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">                Internet\n                    |\n                    v\n            +---------------+\n            |     Nginx     |\n            |   Port : 80   |\n            +---------------+\n                    |\n                    v\n            +---------------+\n            |    Apache     |\n            |  Port : 8080  |\n            +---------------+\n                    |\n                    v\n            +---------------+\n            | Website Files |\n            +---------------+<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Traffic Flow:<\/strong><\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Visitor sends a request to the website.<\/li>\n\n\n\n<li>Nginx receives the request on port 80.<\/li>\n\n\n\n<li>Static content is served directly by Nginx whenever possible.<\/li>\n\n\n\n<li>Dynamic requests are forwarded to Apache on port 8080.<\/li>\n\n\n\n<li>Apache processes the request and returns the response through Nginx.<\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before proceeding, ensure you have:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A cPanel\/WHM server<\/li>\n\n\n\n<li>Root SSH access<\/li>\n\n\n\n<li>WHM administrative access (<code>https:\/\/SERVER-IP:2087<\/code>)<\/li>\n\n\n\n<li>Internet connectivity from the server<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Installation Steps<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Log in to the Server<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Connect to the server via SSH as the root user.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">ssh root@server-ip<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Download the Engintron Installer<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Download the latest Engintron installation script.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">wget --no-check-certificate https:\/\/raw.githubusercontent.com\/engintron\/engintron\/master\/engintron.sh<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Install Engintron<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Run the installation script.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">bash engintron.sh install<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The installation process may take a few minutes depending on the server specifications and internet connectivity.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Access the Engintron Plugin<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Once the installation is complete:<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Log in to WHM.<\/li>\n\n\n\n<li>Navigate to <strong>Plugins<\/strong>.<\/li>\n\n\n\n<li>Click <strong>Engintron for cPanel\/WHM<\/strong>.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">You should see the Engintron management interface where you can:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Manage Nginx configuration<\/li>\n\n\n\n<li>Clear cache<\/li>\n\n\n\n<li>Restart Nginx<\/li>\n\n\n\n<li>Restart Apache<\/li>\n\n\n\n<li>Update Engintron<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Verification<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Verify Nginx Service Status<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Check whether the Nginx service is running.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/etc\/init.d\/nginx status<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Expected output should indicate that the service is active and running.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Verify Through HTTP Headers<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Send a request to your domain and inspect the response headers.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">curl -I domain.tld<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Example output:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Server: nginx\nDate: Thu, 16 Nov 2017 05:16:55 GMT\nContent-Type: text\/html; charset=UTF-8\nConnection: keep-alive\nLocation: http:\/\/domain.tld\/\nX-XSS-Protection: 1; mode=block\nX-Content-Type-Options: nosniff\nX-Nginx-Cache-Status: MISS\nX-Server-Powered-By: Engintron<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The presence of:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Server: nginx\nX-Server-Powered-By: Engintron<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">confirms that Nginx is successfully installed and serving requests.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Benefits of Using Nginx with cPanel<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Faster handling of static content<\/li>\n\n\n\n<li>Improved website performance<\/li>\n\n\n\n<li>Reduced Apache resource usage<\/li>\n\n\n\n<li>Better handling of high traffic websites<\/li>\n\n\n\n<li>Built-in reverse proxy functionality<\/li>\n\n\n\n<li>Optional caching support through Engintron<\/li>\n\n\n\n<li>Easy management through WHM<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently Asked Questions (FAQ)<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. Will installing Engintron replace Apache on my cPanel server?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">No. Engintron does not replace Apache. It installs Nginx as a reverse proxy in front of Apache. Apache continues to process dynamic content while Nginx handles incoming requests and static assets.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. Can I uninstall Engintron if needed?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Yes. Engintron includes an uninstall option that restores the original Apache-only configuration.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">bash engintron.sh remove<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Always create a server backup before making major web server changes.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. How can I verify that Nginx caching is working?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You can inspect the response headers using:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">curl -I domain.tld<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Look for headers such as:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">X-Nginx-Cache-Status: HIT<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">which indicate that content is being served from the cache.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Installing Nginx on a cPanel server using Engintron is a quick and effective way to improve website performance without replacing Apache. By placing Nginx as a reverse proxy in front of Apache, you gain the performance benefits of Nginx while maintaining full compatibility with cPanel and existing hosted websites. The installation process is straightforward, and ongoing management can be performed directly from the WHM interface.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Related Articles<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/pheonixsolutions.com\/blog\/enable-expires-headers-gzip-compression-nginx\/\">How to Enable Expires Headers and GZIP Compression in Nginx<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/pheonixsolutions.com\/blog\/install-ssl-certificate-nginx-ubuntu-16-04\/\">How to Install an SSL Certificate on Nginx (Ubuntu 16.04)<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/pheonixsolutions.com\/blog\/how-to-install-nginx-and-lets-encrypt-ssl-with-html-docker-ubuntu-20-04\/\">Install Nginx and Let&#8217;s Encrypt SSL with Docker on Ubuntu 20.04<\/a><\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Talk to our experts<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Looking for the right technology solution for your business? Our team of experts can help you with development, cloud, DevOps, design, and a wide range of other technology needs. Get in touch with our team&nbsp;<a href=\"https:\/\/pheonixsolutions.com\/contact\" rel=\"noreferrer noopener\" target=\"_blank\">here<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction cPanel is one of the most widely used web hosting control panels and ships with Apache as its default [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1019],"tags":[263,271],"class_list":["post-2222","post","type-post","status-publish","format-standard","hentry","category-cloud-aws","tag-cpanel","tag-nginx","psol-cat-cloud-aws"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-zQ","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/2222","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=2222"}],"version-history":[{"count":1,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/2222\/revisions"}],"predecessor-version":[{"id":11659,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/2222\/revisions\/11659"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=2222"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=2222"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=2222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}