Nameless

Member
Feb 25, 2003
17
0
151
We are recently setup Cpanel5. Now, when i add domain in WHM and then try login to this domain through this URL https://mydomain.com/cpanel i receive error message. Also, when i try use CGIEMAIL from Tools menu, i also get error message(500 - Internal Server Error). I check apache log files i find, that there is error:
"failed to open log file
fopen: No such file or directory"
I think CPanel tried open some log file, but where is this file?
 

Nameless

Member
Feb 25, 2003
17
0
151
When i disable suexec, then i get this error:
[Wed Feb 26 10:51:50 2003] [error] (2)No such file or directory: exec of /usr/local/cpanel/base/redirect.cgi failed
I think problem not in apache, something wrong with Cpanel.
 

Website Rob

Well-Known Member
Mar 23, 2002
1,501
1
318
Alberta, Canada
cPanel Access Level
Root Administrator
I would not suggest running a production Server without SuExec enabled, just not right. :)

Try using: http://domain.com/cpanel/ for access.

Also check to make sure the path to the redirect.cgi file is correct and looks something like:

-rwxr-xr-x 1 root wheel 356 Jan 30 2002 redirect.cgi*
 

Nameless

Member
Feb 25, 2003
17
0
151
I enable SuExec support and use correct URL for access to Cpanel, but still get this error. :mad:
failed to open log file
fopen: No such file or directory
[Wed Feb 26 22:07:17 2003] [error] [client *****] Premature end of script headers: /usr/local/cpanel/base/redirect.cgi
Is there error in my Cpanel config file? (/var/cpanel/cpanel.config)
 

parhelic

Well-Known Member
Oct 27, 2002
47
0
156
I'm having the same issue....

The entries in my httpd.conf do exist:

ScriptAliasMatch /cpanel/(.*) /usr/local/cpanel/base/redirect.cgi
ScriptAlias /cpanel /usr/local/cpanel/base/redirect.cgi
ScriptAlias /whm /usr/local/cpanel/base/whmredirect.cgi
ScriptAlias /securewhm /usr/local/cpanel/base/swhmredirect.cgi
ScriptAlias /webmail /usr/local/cpanel/base/wredirect.cgi
ScriptAliasMatch /webmail/(.*) /usr/local/cpanel/base/wredirect.cgi
ScriptAliasMatch /kpanel/(.*) /usr/local/cpanel/base/redirect.cgi
ScriptAlias /controlpanel /usr/local/cpanel/base/redirect.cgi
ScriptAlias /securecontrolpanel /usr/local/cpanel/base/sredirect.cgi

-rwxr-xr-x 1 root wheel 686 Mar 11 10:18 redirect.cgi*
-rwxr-xr-x 1 root wheel 212 Mar 23 10:16 whmredirect.cgi*
-rwxr-xr-x 1 root wheel 168 Dec 28 2000 wredirect.cgi*


When I try to access anything:

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

It doesnt work.
 
Last edited:

dariofg2

Well-Known Member
Mar 7, 2003
63
0
156
Check out /usr/local/apache/logs/suexec_log, see if there's any reference to redirect.cgi

-Dario
 

carmatec

Member
Mar 9, 2003
18
0
151
US
cgiemail internal server error

Hello,

Try this..

chmod u-s /usr/local/cpanel/cgi-sys/cgiecho
chmod u-s /usr/local/cpanel/cgi-sys/cgiemail

:)

cPanel.net Support Ticket Number: