How to install Nginx on WHM/cPanel server
A lot of people are asking me if they should install Nginx in their cPanel server. The short answer is no. Don’t do it!
Why? If you are new at this (and you are if you are reading this post), then you should stay as much as possible to the default solutions by cPanel – Apache, or use a paid webserver such as Litespeed that will provide you with the support needed. I have also personally tested Nginx with very, very poor results. Sometimes we had worse performance than the stock Apache for shared hosting servers.
If you want to experiment and you are willing to take the next step spending countless hours to configure and troubleshoot the hosted websites, then you can install Nginx very easily by following the steps below:
tar xf nginxadmin.tar
Then you can use the WHM Nginx control panel. For more information you can visit nginxcp website.
Nginx is NOT WORKING out of the box. You have to configure it according to your needs. If you have 1-3 websites this is easy, but if you have a shared hosting server this can be a nightmare. You can always choose other paid solutions with support like Litespeed.