nimahost

Registered
May 24, 2005
1
0
151
I cant get into /cpanel, /whm, or /webmail..

here are some errors i found in the logs

[Sun Jun 11 00:58:02 2006] [error] [client 70.31.76.95] (13)Permission denied: getgrgid: invalid groupid 1007
[Sun Jun 11 00:58:02 2006] [error] (13)Permission denied: exec of /usr/local/cpanel/cgi-sys/redirect.cgi failed
[Sun Jun 11 00:58:02 2006] [error] [client 70.31.76.95] Premature end of script headers: /usr/local/cpanel/cgi-sys/redirect.cgi
 

megabytehosting

Registered
May 24, 2005
2
0
151
Please be more specific

sanjuabrahamk said:
Hi,

Check the permission and ownership of /usr/local/cpanel/cgi-sys/redirect.cgi


Thanks

Regards
Sanju
And what would the correct permissions and ownership be?
 

mich181189

Member
Jul 31, 2005
12
0
151
what is the httpd.conf include line for that file? apache lost it during a config rewrite (as cpanel/whm always messes up in some way...)
 

brianoz

Well-Known Member
Mar 13, 2004
1,146
7
168
Melbourne, Australia
cPanel Access Level
Root Administrator
Code:
[B]ScriptAliasMatch ^/cpanel/(.*) /usr/local/cpanel/cgi-sys/redirect.cgi
ScriptAlias /cpanel /usr/local/cpanel/cgi-sys/redirect.cgi[/B]
ScriptAlias /whm /usr/local/cpanel/cgi-sys/whmredirect.cgi
ScriptAlias /securewhm /usr/local/cpanel/cgi-sys/swhmredirect.cgi
ScriptAlias /webmail /usr/local/cpanel/cgi-sys/wredirect.cgi
 

Harilgx

Registered
May 13, 2007
3
0
151
)Permission denied: exec of /usr/local/cpanel/cgi-sys/redirect.cgi failed

make sure that all the files in /usr/local/cpanel/cgi-sys/*.cgi have 755 permission,
also the files /usr/local/cpanel/base/*.cgi should be under group wheel.

In /etc/httpd/conf/httpd.conf file check following correctly.
—————————————————————————————————
ScriptAliasMatch ^/cpanel/(.*) /usr/local/cpanel/cgi-sys/redirect.cgi
ScriptAlias /cpanel /usr/local/cpanel/cgi-sys/redirect.cgi
ScriptAlias /whm /usr/local/cpanel/cgi-sys/whmredirect.cgi
ScriptAlias /securewhm /usr/local/cpanel/cgi-sys/swhmredirect.cgi
ScriptAlias /webmail /usr/local/cpanel/cgi-sys/wredirect.cgi
ScriptAliasMatch ^/webmail/(.*) /usr/local/cpanel/cgi-sys/wredirect.cgi
—————————————————————————————————
Also try
/scripts/updatenow
/scripts/fixeverything
/scripts/upcp –force

If that doesn’t even work for you then in httpd.conf change this line
RLimitMEM 23178922
and replaced it with
RLimitMEM 157286400

Also some times it may happen because of phpsuexec. So you can try turning it off by going to “Enable/Disable SuExec” under “Server Setup” in WHM.

========
Make sure that the permission of /usr/bin/perl is 755 :)
========

Regards,

Hari
Logicsupport.com