Hi,
Can anyone tell me just for curiosity sake how many daemons are running when I start apache server?
Thanks,
Nik
Printable View
Hi,
Can anyone tell me just for curiosity sake how many daemons are running when I start apache server?
Thanks,
Nik
In the RH9 default configuration there are 8 of them. In apache 2.0 you can set it with the StartServers directive. I don't remember how to do it an apache pre-2, though.
and I can run an apache webserver as any user right? or does it have to be root? on solaris I was able to run it as any normal user..
I believe apache runs as either the use httpd or the user apache by default. Just check with "ps -lp $(pidof httpd)" to find out what user it runs as. The master server always runs as root in order to bind port 80 (which is privileged), but the slave servers, ie. the ones actually responding to requests, can, and by default do, run as a ordinary user.
It workes good with this command also
RegardsCode:ps -aux |grep http
root 23630 0.0 0.3 75884 3900 ? S 07:59 0:00 /usr/sbin/httpd -
apache 23633 0.0 0.4 76144 4392 ? S 07:59 0:00 /usr/sbin/httpd -
apache 23634 0.0 0.3 75980 4040 ? S 07:59 0:00 /usr/sbin/httpd -
apache 23635 0.0 0.3 75944 3944 ? S 07:59 0:00 /usr/sbin/httpd -
apache 23636 0.0 0.3 75944 3944 ? S 07:59 0:00 /usr/sbin/httpd -
apache 23637 0.0 0.3 75944 3944 ? S 07:59 0:00 /usr/sbin/httpd -
apache 27643 0.0 0.3 75940 3968 ? S 08:41 0:00 /usr/sbin/httpd -
apache 27644 0.0 0.3 75940 3968 ? S 08:41 0:00 /usr/sbin/httpd -
apache 27645 0.0 0.3 75940 3968 ? S 08:41 0:00 /usr/sbin/httpd -
Dolda,
any reason why 8 daemons start automatically? i mean do each of those daemons perform special functions or somethg or is it by design?
Apache starts that many processes by default, but i think you can alter that in the httpd.conf how many paralell connections and forks apache should to. There are many things to tune there if you want....
Regards
All those processes are identical worker processes. It's often A Good Thing (tm) to spread out tasks over several processes, but the real advantages of doing it that way is for SMP systems, where each process will be running on a seperate CPU, and therefore simultaneously.