Re: PHP processes

From: Date: Mon, 04 Dec 2000 15:06:06 +0000
Subject: Re: PHP processes
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-28585@lists.php.net to get a copy of this message
If PHP is configured to run as an Apache module, it gets started as a part of each apache daemon process (actually, it is an extension of the apache httpd, statically or dynamically compiled into apache httpd binary). Apache does not start a separate php process - php is just a part of each apache httpd process. If a httpd process crushes, it takes its php module with it. If other httpd processes (children) remain alive, each of them would successfully handle php-related stuff, because they have their own independent (but the same) php modules. "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 -- Best regards, Max A. Derkachev mailto:kot@books.ru Symbol-Plus Publishing Ltd. phone: +7 (812) 324-5353 http://www.Books.Ru -- All Books of Russia

« previous php.general (#28585) next »