The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

/cpanels returns 500 error

Discussion in 'General Discussion' started by beliali, Aug 23, 2014.

  1. beliali

    beliali Registered

    Joined:
    Aug 23, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    * had to create a new thread since the old one was 'too old'*

    Hi! Old thread, same problem :) I was unable to find a permanent fix for this issue since it seems to pop up from time to time.

    Getting a 500 error on /cpanel with the following in the apache error log:

    [error] [client ] (12)Cannot allocate memory: couldn't create child process: 12: redirect.cgi
    [error] [client ] (12)Cannot allocate memory: couldn't spawn child process: /usr/local/cpanel/cgi-sys/redirect.cgi

    the error only comes up when using domain.ext/cpanel link, something like this:

    domain.com/cpanel 500 error
    domain.com:2082 OK
    123.456.789.1/cpanel OK
    123.456.789.1:2082 OK

    I've looked through a few forum posts I could find regarding this and I've checked the following:
    * checked the system wide resources (ulimit) and they're fine
    * checked the WHM > Tweak Settings for the Max cPanel Process Memory value and its also very much fine
    * checked the httpd.conf file for RLIMIT or RLimitMEM settings, but was unable to find any
    * checked the /tmp mount to make sure its not full


    Now my guess is that it's still a memory limit issue, but where? The server i get this error on is running fine, not overloaded or anything. If anyone has any other suggestions as to what to check, please let me know.
     
  2. corporatehost

    corporatehost Member

    Joined:
    Jul 17, 2014
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    How much swap space do you have ? Can you post the output of the command here,

    # free -m

    Was there anything recorded in the cPanel error log during this Internal 500 Error?
     
  3. cPanelPeter

    cPanelPeter Technical Analyst III
    Staff Member

    Joined:
    Sep 23, 2013
    Messages:
    569
    Likes Received:
    15
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Please feel free to open a support ticket using the link in my signature. We can investigate that issue for you, please post the ticket number below so that we can update this thread accordingly.
     
  4. beliali

    beliali Registered

    Joined:
    Aug 23, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I dont have the output from when the error came up, but I've got 24 gig ram on the server in question and 8 gig swap. I did check the output at the time and it was normal - a few gigs of free ram and around 6 gigs free swap

    No offence, but whenever i try contacting your support the only answer I can get is along the lines of "your webserver is running nginx which is not supported by cpanel, please disable/remove nginx to receive assistance". We've been running nginx alongside apache with cPanel for years now and it works fine.
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    We often require customers to temporarily disable third-party applications such as Nginx just to rule it out as the cause of the problem. It's one of the disadvantages of using a third-party application, but once we verify it's not the cause of the problem, you can enable it again while we continue troubleshooting.

    Thank you.
     
  6. beliali

    beliali Registered

    Joined:
    Aug 23, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thats fine, I'm not here to point fingers or anything. :)
    The main reason why I posted here instead of a support ticket was that I was hoping for a possible community solution, since a lot of people use cPanel andmany have gotten this issue, maybe someone has gotten a definite solution or even has suggestions as to which limits could cause this apart from the ones I've listed :)
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    I've not noticed one particular cause of this issue. It's typically related to a lack of available memory, either due to a lack of physical memory, a VPS resource limit being met, or through the use of CloudLinux (CageFS). Are you using Cloud Linux on this system?

    Thank you.
     
Loading...

Share This Page