/cpanel shortcut gives "Internal Server Error"

hbhb

Well-Known Member
Dec 1, 2006
67
0
156
I need help

Everytime I try to access my domain Cpanel, webmail, WHM via shortcut

http://domain.com/cpanel
http://domain.com/webmail
http://domain.com/whm

It gives me "Internal Server Error"

It never happens until recently when my server management company tweak something I didn't know. They fixed it yesterday and today it is happening again. They said it was due to 'ulimit'

I have 9 servers and it never happens to the rest 8 servers. Just this server always happening.

How do I solve this problem? And what exactly is the problem?


Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
 

thehostrack

Member
Aug 11, 2003
12
0
151
Same problem.

Any solution??

Update: This appears to be an issue with the recent cPanel/WHM update. Ran /scripts/upcp last night, but it still didn't resolve the issue. I'm now trying /scripts/upcp --force.

That fixed it!
 
Last edited:

Bravo

Well-Known Member
Oct 30, 2001
71
0
306
same problem, domain.com/cpanel gives 500 Internal server error

tried restarting cpanel, /scripts/upcp --force but it keeps giving the same error

using the port number i.e domain.com:2082 works just fine

Running S16448
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
same problem, domain.com/cpanel gives 500 Internal server error

tried restarting cpanel, /scripts/upcp --force but it keeps giving the same error

using the port number i.e domain.com:2082 works just fine

Running S16448
How about restarting Apache? The /cpanel /webmail and /whm redirects are initially handled by Apache.
 

Bravo

Well-Known Member
Oct 30, 2001
71
0
306
What are the corresponding errors in /usr/local/apache/logs/error_log ?
Code:
[Wed Aug 29 13:24:12 2007] [error] [client 85.75.36.252] (11)Resource temporarily unavailable: couldn't spawn child process: /usr/local/cpanel/cgi-sys/redirect.cgi
[Wed Aug 29 13:24:12 2007] [error] [client 85.75.36.252] File does not exist: /home/user/public_html/500.shtml
Tried restarting Apache too, still same error
 

Todd Mitchell

Well-Known Member
Staff member
Nov 13, 2006
301
1
243
Houston, TX
I'm not sure if it was you that just submitted the ticket on this or not.

But I just worked on this exact issue and found that the ulimit for 'max user processes' was set to low.

You can check this setting using 'ulimit -u'

Be sure to check all ulimit 9ulimit -a) settings to ensure they aren't set to low, restricting apache from working properly.
 

Bravo

Well-Known Member
Oct 30, 2001
71
0
306
I'm not sure if it was you that just submitted the ticket on this or not.
Yes, that was me.

Turned out that it was caused by a misconfiguration by a server admin outfit I hired to optimize and harden the server.

Thank you Todd & Matt for figuring it out and also for your super fast response!
 

neo4242002

Well-Known Member
Jun 28, 2005
119
0
166
This problem hit my server today :(

error logs says "/usr/local/apache/logs/error_log"

Code:
Invalid argument: setting of resource limits failed
Premature end of script headers: redirect.cgi
File does not exist: /home/xxxxx/public_html/500.shtml
Code:
 ulimit -u
14335

currently I am unable to use /cpanel , /whm and /webmail:mad::mad:

Any help guys?:confused:
 

yaax

Well-Known Member
Jun 15, 2003
67
0
156
I also have same problem from yesterday when I unlikely decided to upgrade cpanel and apache for lastest versions.... :(
I need urgent solution as all cgi scripts are not working on my server now....
 

yaax

Well-Known Member
Jun 15, 2003
67
0
156
Fixed this problem by commentig out RLIMIT lines on the top of httpd.conf file and restarting apache.
 

rvskin

Well-Known Member
PartnerNOC
Feb 19, 2003
399
1
168
Fixed this problem by commentig out RLIMIT lines on the top of httpd.conf file and restarting apache.
Just found the same issue. Above suggestion do fix my issue as well. Thanks to yaax.