"T.J. Boberek" wrote:
>
> I'm having a small trouble with my httpd. I know that it's a bad things to
> run it as root, and in the httpd.conf file, I have the user and group set to
> Nobody...but, for some reason, I always get one httpd process running as
> root. I can't figure out why, and was hoping someone could help...here's
> the relevant output from a ps -aux
>
> USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
> root 493 0.0 1.5 3924 1924 ? S 00:12 0:00 httpd
> nobody 496 0.0 1.5 3988 1944 ? S 00:12 0:00 httpd
> nobody 497 0.0 1.5 3988 1944 ? S 00:12 0:00 httpd
> nobody 498 0.0 1.5 3988 1944 ? S 00:12 0:00 httpd
> nobody 499 0.0 1.5 3988 1944 ? S 00:12 0:00 httpd
> nobody 500 0.0 1.5 3988 1944 ? S 00:12 0:00 httpd
> nobody 501 0.0 1.5 3988 1944 ? S 00:12 0:00 httpd
> nobody 502 0.0 1.5 3988 1944 ? S 00:12 0:00 httpd
> nobody 503 0.0 1.5 3988 1944 ? S 00:12 0:00 httpd
> nobody 504 0.0 1.5 3988 1944 ? S 00:12 0:00 httpd
> nobody 505 0.0 1.5 3988 1944 ? S 00:12 0:00 httpd
>
> Also, am I supposed to have so many httpd processes running? In case you
> can't tell, I'm pretty new, so if there is some information that I need to
> include that I didn't, please ask...wasn't sure what else to include...have
> a nice day!
>
> Thanks!
> T.J.
>
> [EMAIL PROTECTED]
>
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
That looks right IMHO. It starts as root, then the "root" parent
process forks the childern that run as nobody, it is the childern that
are running as nobody that take requests, I don't think the root parent
process takes requests, it is just there to fork more childern when
needed...
you questions about that "many httpd proceses running" in a short word :
Yes. It forks and each fork can handle X amount of requests. If you
are a low traffic site you can take the number of forks down to safe
resources or if you are a large site you can take the processes up for
improved performance, you are supose to have more than one, but how many
really depends on the site involved.