Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

500 error traced to SuExec uid/gid any ideas

Discussion in 'General Discussion' started by j0hnb, Aug 16, 2008.

  1. j0hnb

    j0hnb Member

    Joined:
    May 17, 2004
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    151
    I'm getting a 500 error on one of my sites, I traced it to a uid/gid error logged in SuExec. But i've run through the forum and attempted a few different things all with no luck. Any suggestions?

    Code:
    error: target uid/gid (32003/32005) mismatch with directory (0/0) or program (0/0) or trusted user (0/10)
    
     
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    830
    Likes Received:
    26
    Trophy Points:
    178
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    This happened to me before a long time ago but I don't remember how to fix it. For starters, make sure all your PHP files are owned by their respective cPanel users (/scripts/chownpublichtmls).

    Also check /opt/suphp/etc/suphp.conf and make sure that:

    -chroot section is commented
    -webserver_user is nobody
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. nerbonne

    nerbonne Well-Known Member

    Joined:
    Aug 19, 2007
    Messages:
    52
    Likes Received:
    1
    Trophy Points:
    58
    That error means that the directories/files you are trying to access thru a web user are owned by root.

    Use:

    chmod -R user:grp files

    to correct.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice