public_html is under "nobody" Group

pauloray

Well-Known Member
Jan 16, 2012
74
0
56
Philippines
cPanel Access Level
Root Administrator
I updated Apache 2.2 to Apache 2.4 last week and one thing i noticed is that /home/cpaneluser/public_html is owned by cpaneluser and group under nobody

Code:
drwxr-x---  11 cpaneluser nobody  4096 Jan 12 01:13 public_html/
Is this normal?

And using using "top" on SSH, I also see "nobody" on the list under USER.


How can I fix this?

This is my server config:
Code:
Default PHP Version (.php files)	5
PHP 5 Handler	suphp
 	 
Apache suEXEC	on
Apache Ruid2	off
 

Sreejit

Member
Apr 11, 2011
20
0
51
cPanel Access Level
Root Administrator
Both permissions and ownership of public_html are correct.

Apache does run under nobody. The php process created under it will run under their respective user.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
Yes, the ownership values you referenced are normal, as indicated by the other poster. It's normal for Apache to run as "nobody". The exception to this is if you are using Mod_Ruid2:

EasyApache - Mod_Ruid2

Thank you.