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!

/home is not owned by "XXXXX" error after apache recompile

Discussion in 'EasyApache' started by noimad1, May 8, 2008.

  1. noimad1

    noimad1 Well-Known Member

    Joined:
    Mar 27, 2003
    Messages:
    627
    Likes Received:
    0
    Trophy Points:
    166
    I was just working on a server, recompiling apache, and all of a sudden we started getting premature end of script headers on all sites on the server with php.

    When I started looking through the logs I found errors like this:

    /home is not owned by "thisuser" (where thisuser is whatever user the script is trying to run for).

    in the /etc/httpd/logs/error_log

    So I'm assuming this is a mod_suphp issue, so I'm removing that now.

    However, has anyone seen this problem before? I mean /home shouldn't be owned by any users right?
     
  2. noimad1

    noimad1 Well-Known Member

    Joined:
    Mar 27, 2003
    Messages:
    627
    Likes Received:
    0
    Trophy Points:
    166
    Hmm...it was for sure mod_suphp...anyone had problems like this recently?
     
  3. jdlightsey

    jdlightsey Perl Developer III
    Staff Member

    Joined:
    Mar 6, 2007
    Messages:
    126
    Likes Received:
    2
    Trophy Points:
    243
    Location:
    Houston Texas
    cPanel Access Level:
    Root Administrator
    All directories leading from the PHP script to / need to be owned by the user executing the script or the root account. Is the /home directory owned by some account other than root?
     
  4. noimad1

    noimad1 Well-Known Member

    Joined:
    Mar 27, 2003
    Messages:
    627
    Likes Received:
    0
    Trophy Points:
    166
    Ahh....ok, i'm dumb. the root folder was owned by a user for some reason. Not sure why. I changed it to root and that solved the issue.

    Thanks,
    Damion
     
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