Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jun 2007
    Posts
    2

    Default SSL /cpanel redirect not working on some domains - Suexec error

    Hi all,

    hope somebody can help me here....

    I've got my VPS set up one one IP and run some domains on that vps IP, while hosting some domains on other IPs.
    Recently the /cpanel, /webmail etc. SSL redirects stopped working on all domains, that are hosted on the vps IP!

    On my domains with different IPs I can use https://www.domain.com/cpanel, which then redirects me to https://vps.hostingdomain.com:2083 (I set cpanel to redirect to SSL hostname).
    But on the domains on the VPS IP, the redirects aren't working any more.

    Here's what I found:

    My suexec_log shows this error:
    uid: (99/nobody) gid: (99/99) cmd: redirect.cgi
    cannot run as forbidden uid (99/redirect.cgi)

    All the permissions in /usr/local/cpanel/cgi-sys/ are set like this:
    -rwxr-xr-x 1 root wheel 2892 2006-12-21 23:08 randhtml.cgi-wrap
    -rwxr-xr-x 1 root wheel 25 2006-03-22 23:15 realhelpdesk.cgi
    -rwxr-xr-x 1 root wheel 16 2008-02-07 10:25 realsignup.cgi
    -rwxr-xr-x 1 root wheel 152 2007-06-06 02:56 redirect.cgi
    I presume that should be correct.

    When I disable suexec, the redirects work fine again!

    WHM 11.15.0 cPanel 11.18.1-R20683 FEDORA 8 i686 on xen - WHM X v3.1.0
    Apache 2.2, but also tried with 2.0 with the same results.
    The error is really strange, because it only occurs on my vps IP....

    I'd like to use suexec, any suggestions how to fix this redirect issue?

  2. #2
    cPanel Staff
    Join Date
    Mar 2007
    Posts
    113

    Default

    If you check your httpd.conf, you'll probably find that the VirtualHost is question has the user and group for Suexec set to 'nobody'. Apache's Suexec doesn't like this and cPanel builds numbered 20687 and higher have a fix to address this problem.

    If you'd like to do a quick test, turn on Suexec using the PHP and Suexec config tool, comment out the Suexec user and group line or lines from that VirtualHost in httpd.conf, restart Apache and try the redirect scripts again. If that fixes your problem you'll need to either wait for the fix to be published in Stable and Release, or switch to Current. Once you're on a branch of cPanel that has the fixed templates, just run /scripts/rebuildhttpdconf and restart Apache.

  3. #3
    Registered User
    Join Date
    Jun 2007
    Posts
    2

    Default

    Great!
    Thanks a lot, that did it.

    Will rebuild the httpdconf as soon as the release branch is updated >20687.

Similar Threads & Tags
Similar threads

  1. Redirect https to http for non-ssl enabled domains
    By rkula in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-21-2011, 02:23 PM
  2. cPanel redirect tool is errant - redirect loop error
    By jols in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-19-2009, 02:05 PM
  3. Parked Domains on PHP suEXEC = 302 Error
    By Francisco in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-15-2005, 07:16 PM
  4. cpanel redirect.cgi - SuExec issues
    By tgibobby in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-02-2005, 09:19 PM
  5. Getting non-cPanel users (with subdomains) working with suexec?
    By muppet in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 05-28-2005, 11:03 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube