Skip to main content

Comments

4 comments

  • Muhammed Fasal
    Hi, You need to login to your server via SSH as root user and then execute below command to know UID and GID of Apache Process: ps -o euid,egid --ppid `netstat --inet --inet6 -pln|awk '/:80 / { split($7,tmp, "/"); print tmp[1]; }'`|sort |uniq|grep -v EUID
    0
  • 24x7server
    Hi, You can also check this via executing below command directly on your server. # id apache The output of this command would be like: uid=48(apache) gid=48(apache) groups=48(apache)
    0
  • John Schmerold
    OK, in my case it appears to be running as user "nobody" is that optimal? [root@cp ~]# ps -o euid,egid --ppid `netstat --inet --inet6 -pln|awk '/:80 / { split($7,tmp, "/"); print tmp[1]; }'`|sort |uniq|grep -v EUID 99 99 EUID EGID [root@cp ~]# id nobody uid=99(nobody) gid=99(nobody) groups=99(nobody) id apache does not exist
    0
  • cPWilliamL
    Hi, The internal Apache configuration will also denote this:
    # grep -E ' (user|group):' /var/cpanel/conf/apache/main group: group: nobody user: user: nobody
    This is normal. I also wouldn't recommend trying to change the Apache user, as there are certain safeguards in place to prevent abuse by the Apache user `nobody'. Thanks,
    0

Please sign in to leave a comment.