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.

/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:
    16
    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:
    16
    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:
    18
    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:
    16
    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