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.

redirect.cgi + suexec = HTTP 500

Discussion in 'General Discussion' started by MarlboroMan, Oct 31, 2004.

  1. MarlboroMan

    MarlboroMan Well-Known Member

    Joined:
    Dec 7, 2001
    Messages:
    64
    Likes Received:
    0
    Trophy Points:
    6
    There's already a few threads close to what I'm talking about here that I looked at, but none seem to match my issue exactly (and everyone else's problems appear resolved)

    We have a server that has suExec enabled, and the /cpanel, /webmail, etc redirects no longer work - they all end up with an HTTP 500 error, a

    Premature end of script headers: /usr/local/cpanel/cgi-sys/redirect.cgi

    in the error log, and

    [2004-10-31 15:03:23]: info: (target/actual) uid: (randomuser/randomgroup) gid: (randomuser/randomgroup) cmd: redirect.cgi
    [2004-10-31 15:03:23]: error: target uid/gid (32013/32014) mismatch with directory (0/10) or program (0/10)

    I checked httpd.conf, and it does contain:

    ScriptAliasMatch ^/cpanel/(.*) /usr/local/cpanel/cgi-sys/redirect.cgi
    ScriptAlias /cpanel /usr/local/cpanel/cgi-sys/redirect.cgi

    Permissions for the script appear correct:
    [/usr/local/cpanel/cgi-sys]# ls -la redirect.cgi
    -rwxr-xr-x 1 root wheel 760 Oct 31 14:34 redirect.cgi*

    Running latest RELEASE:
    <!---cPanel [9.9.8-RELEASE_5] () Copyright (c) 1997-2004 John N Koston.

    Running /scripts/upcp or /scripts/updatenow does not resolve the issue, either.

    Anyone else have any other thoughts on the matter?
     
  2. nickn

    nickn Well-Known Member
    PartnerNOC

    Joined:
    Jun 15, 2003
    Messages:
    619
    Likes Received:
    1
    Trophy Points:
    18
    Did you use the --force luke?

    Err...seriously, did you try /scripts/upcp --force
     
  3. MarlboroMan

    MarlboroMan Well-Known Member

    Joined:
    Dec 7, 2001
    Messages:
    64
    Likes Received:
    0
    Trophy Points:
    6
    Yes, I did try that.
     
  4. MarlboroMan

    MarlboroMan Well-Known Member

    Joined:
    Dec 7, 2001
    Messages:
    64
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Support came through for me on this one -

    The issue is the patch RPM is not installed on the server, which cPanel uses during buildapache to (I assume) patch suexec to allow these scripts to run, when it normally wouldn't.

    To resolve, install the patch RPM for your distribution, and re-run /scripts/easyapache

    That should resolve the issue.
     
  5. amal

    amal Well-Known Member

    Joined:
    Nov 22, 2003
    Messages:
    155
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    cPanel Access Level:
    Root Administrator
    From where did you get the patch rpm

    Hi,

    Could you please let us know, how you got the patch rpm?
    :confused:
     
Loading...

Share This Page