Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How to make cPanel stop disable nginx

Discussion in 'General Discussion' started by superdev666, Jan 31, 2018.

Tags:
  1. superdev666

    superdev666 Registered

    Joined:
    Jan 31, 2018
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Singapore
    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 :(
     
    #1 superdev666, Jan 31, 2018
    Last edited by a moderator: Jan 31, 2018
  2. CPWorld

    CPWorld Member

    Joined:
    Jan 31, 2018
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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.
     

    Attached Files:

  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,728
    Likes Received:
    1,796
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

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

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    acenetgeorge likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice