Install nginx on cPanel server

Date Posted: 15-11-2017

cPanel is the widely used control panel to manage webhosting and it comes with apache as a default webserver. Nginx is fast webserver when compared to apache webserver. In this tutorial, we will explain on how to install nginx on cpanel server.

We will be using engintron plugin and install nginx on this article. Engintron will install nginx and change the apache port 8080 whereas nginx will listen on port 80


  1. cPanel Server
  2. SSH root access
  3. WHM access(https://IP ADDRESS:2087)


Login to server as root

Download the engintron using wget.

wget --no-check-certificate

Install the engintron using the below command.

bash install

The installation will little time to complete.

Once, the installation completed, you will see a plugin on WHM as mentioned in the below screenshot.

Click on the Engintron for cPanel/WHM.

On the new window, we can see engintron panel and restart the nginx and apache service.



1. Check the nginx status inside the server.

/etc/init.d/nginx status

2. Send a CURL request to the domain and you can see the below output which confirms that nginx is successfully installed on cPanel server.

curl -I domain.tld

Server: nginx
Date: Thu, 16 Nov 2017 05:16:55 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Location: http://domain.tld/
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Nginx-Cache-Status: MISS
X-Server-Powered-By: Engintron



Leave a Reply