I am running Apache in 8080 port. After starting the httpd, I noticed that the parent process is owned by root.
[root@a ~]# ps -ef | grep httpd
root 13480 1 0 08:07 ? 00:00:00 /usr/sbin/httpd
apache 13505 13480 0 08:11 ? 00:00:00 /usr/sbin/httpd
apache 13506 13480 0 08:11 ? 00:00:00 /usr/sbin/httpd
apache 13507 13480 0 08:11 ? 00:00:00 /usr/sbin/httpd
apache 13508 13480 0 08:11 ? 00:00:00 /usr/sbin/httpd
apache 13509 13480 0 08:11 ? 00:00:00 /usr/sbin/httpd
apache 13510 13480 0 08:11 ? 00:00:00 /usr/sbin/httpd
apache 13511 13480 0 08:11 ? 00:00:00 /usr/sbin/httpd
apache 13512 13480 0 08:11 ? 00:00:00 /usr/sbin/httpd
[root@a ~]#
I saw below this post, but it says that by default, for the ports below 1024, root will start process.
If the apache works like this by default, where can I change this?
Thank you.
/var/run/httpd/httpd.pid
and/var/run/httpd/httpd.pid
. Now it is starting with another user. I want to start httpd as root and have apache or another user as process owners. Is that possible? – prado Nov 09 '16 at 13:16root
as owner. Is it becauseroot
starting it? – prado Nov 11 '16 at 07:54