beliali

Registered
Aug 23, 2014
3
0
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.
 

cPanelPeter

Senior Technical Analyst
Staff member
Sep 23, 2013
586
25
153
cPanel Access Level
Root Administrator
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.
 

beliali

Registered
Aug 23, 2014
3
0
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?
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

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.
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
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.
 

beliali

Registered
Aug 23, 2014
3
0
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 :)
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
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.