Re: PHP processes

From: Date: Mon, 04 Dec 2000 15:58:14 +0000
Subject: Re: PHP processes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-28582@lists.php.net to get a copy of this message
When PHP is compiled into Apache as a module, it runs as part of the Apache process. That means that each individual httpd process you see running on your system has an instance of PHP already running within it. If something, perhaps PHP, causes an Apache process to crash then only the request currently being served would be lost. The other Apache processes would still function normally and the master Apache process would launch a new process to replace the one that crashed. In this respect Apache+PHP is extremely robust. -Rasmus On Mon, 4 Dec 2000, Ashley T. Howes PhD wrote: > I just wanted to check a technical point with the list. Apache uses > the following technique to manage requests from clients > > Apache starts master process > Master process starts x number of childen processes which handle > requests from web clients > Number of children processes is increased/decreased depending on web > server load > > If PHP is configured to run as a module inside Apache, does an > instance of PHP get created for each child process? I ask this > question due to stability issues. If Apache crashes you lose one > request. If a PHP instance crashes, does it take down only the child > process it is associated with, or will one crash in a PHP instance, > stop all other instances from operating correctly (until the web > server is restarted) > > > Thanks for your time, > > Ashley > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#28582) next »