Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Dec 2001
    Posts
    67

    Default redirect.cgi + suexec = HTTP 500

    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?
    Fire extinguisher extraordinare
    -------------------------------
    Brandon
    FastServers.Net NOC Admin

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jun 2003
    Posts
    647

    Default

    Did you use the --force luke?

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

  3. #3
    Member
    Join Date
    Dec 2001
    Posts
    67

    Default

    Yes, I did try that.
    Fire extinguisher extraordinare
    -------------------------------
    Brandon
    FastServers.Net NOC Admin

  4. #4
    Member
    Join Date
    Dec 2001
    Posts
    67

    Default

    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.
    Fire extinguisher extraordinare
    -------------------------------
    Brandon
    FastServers.Net NOC Admin

  5. #5
    Member amal's Avatar
    Join Date
    Nov 2003
    Location
    India
    Posts
    153

    Question From where did you get the patch rpm

    Hi,

    Could you please let us know, how you got the patch rpm?

Similar Threads & Tags
Similar threads

  1. accessing php code in cgi-bin=>500 http error
    By dmgens in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 02-19-2009, 01:59 PM
  2. Suexec gives 500 internal error
    By technoix in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-22-2008, 03:42 AM
  3. cpanel redirect.cgi - SuExec issues
    By tgibobby in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-02-2005, 09:19 PM
  4. Permanture end of script: /usr/local/cpanel/cgi-sys/redirect.cgi
    By esupport.org.ua in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-08-2005, 12:22 PM
  5. Suexec and /cgi-sys/Count.cgi problems (Freebsd)
    By hatch in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 08-06-2004, 04:22 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube