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

noimad1

Well-Known Member
Mar 27, 2003
626
0
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?
 

noimad1

Well-Known Member
Mar 27, 2003
626
0
166
Hmm...it was for sure mod_suphp...anyone had problems like this recently?
 

jdlightsey

Perl Developer III
Staff member
Mar 6, 2007
126
2
243
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?
 

noimad1

Well-Known Member
Mar 27, 2003
626
0
166
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?
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