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.

Problems with some scripts

Discussion in 'General Discussion' started by Nameless, Feb 25, 2003.

  1. Nameless

    Nameless Member

    Joined:
    Feb 25, 2003
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
  2. awsol

    awsol cPanel Test Bitch

    Joined:
    Feb 8, 2002
    Messages:
    591
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Boston MA
    Try turning SuExec off. By default it is turned on. Turn it off and cgi will work fine.
     
  3. Nameless

    Nameless Member

    Joined:
    Feb 25, 2003
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  4. Website Rob

    Website Rob Well-Known Member

    Joined:
    Mar 23, 2002
    Messages:
    1,506
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    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*
     
  5. Nameless

    Nameless Member

    Joined:
    Feb 25, 2003
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    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)
     
  6. parhelic

    parhelic Well-Known Member

    Joined:
    Oct 27, 2002
    Messages:
    47
    Likes Received:
    0
    Trophy Points:
    6
    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.
     
    #6 parhelic, Mar 23, 2003
    Last edited: May 23, 2003
  7. dariofg2

    dariofg2 Well-Known Member

    Joined:
    Mar 7, 2003
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    Check out /usr/local/apache/logs/suexec_log, see if there's any reference to redirect.cgi

    -Dario
     
  8. carmatec

    carmatec Member

    Joined:
    Mar 9, 2003
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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:
     
Loading...

Share This Page