How to make cPanel stop disable nginx


Jan 31, 2018
cPanel Access Level
Website Owner
Hi everyone,

our site runs nginx with 50,000 daily visitors, together with cpanel, however these days cpanel keep stopping nginx for no reason and our site shows " connection was reset " whenever cpanel stopping nginx, how can we prevent cpanel from stopping nginx ? we can't monitor our site every 5 minutes to restart nginx everytime it stop it or to add cron job to start nginx automatically, although its added inside now, but we want the cpanel that is installed on our server to not stop nginx that is running in our server. Please help us with this, we are losing revenue because everytime cpanel stop the nginx is running on our server and the downtime is long when we are away

basically I want to either disable httpd for good so it doesn't start again and disable my nginx, or somehow stop cpanel from stopping my nginx and start other stuffs. i tried to go the cpanel forum and leave a question on this because trying to register on the forum is difficult, it keep saying capcha incorrect when i type in the correct captha

Currently our server has set a cron job to automatic start nginx, however we're a streaming site and we have servers for converting videos, videos are sent from our main server directly for conversion and when cpanel stop this nginx, all our videos will break which means we have to reupload all over again because of this. although it doesn't happen often but per day it happen like once or every 2-3 days, sometimes a day it happened twice. so we need to really stop this cpanel from disabling our nginx for no reason.

Please some expert from cpanel help us with this :( we are helpless :(
Last edited by a moderator:


Jan 31, 2018
Phoenix, AZ
cPanel Access Level
DataCenter Provider
There could be a number of different causes for what you describe which would be hard to diagnose without actually taking a look at the server in question but I will try to give you a few pointers in the possible directions to look.

Also, are you running NGINX natively as the web server itself and a replacement for Apache or as more often setup alternative use as a reverse proxy front end to handle requests to cache or load balance configuration served from Apache?

Just to give you a few pointers and ideas, I would recommend first look to your memory resources available and configuration, port usages, and any cleanup scripts which would include also take a look at a specific feature in Cpanel called "Shell Fork Bomb Killer" which might possibly interfere in the manner as you described sometimes from limiting memory usage of outside processes.

The background process killer possibly another to look at but since it generally targets specific processes, it is less often an issue for most situations like this one that you are describing.

Your configuration for your language engine for your script could also be an issue as well such as for example limiting individual script processes in PHP to a low amount as often left at smaller memory limits verses 128MB - 256MB,

Depending on what cleanup or security applications you have running, your configuration with those types of applications could be impacting your situation as well.

It would be a trivial task to setup a monitor to keep that process active and there is much better ways to implement that other than a simple timed cron job though that is certainly a step in the right direction just to help monitor and make sure your process stays up though I could show you a few ways to do the same which would be much quicker to respond to your process going down.

I have to ask with a load of 50,000+ visitors why it is that you are using Cpanel?

Cpanel while widely used especially for shared hosting and servers with many websites, it may not necessarily be the best choice environment for a higher load level or higher traffic configuration and is often better for a more generalized shared hosting type
environment with a lot of smaller direct sites than a single for few larger high traffic sites at levels where you would probably
want at minimum some kind of reverse proxy caching configuration and perhaps look into load balancing multiple server hosts.



Staff member
Apr 11, 2011

Can you verify how you installed Nginx on the server? Did you use a specific third-party plugin to install it?

Thank you.
  • Like
Reactions: acenetgeorge