httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eugene Lee <list-apa...@fsck.net>
Subject Re: [users@httpd] High load average problem
Date Thu, 20 May 2004 07:39:29 GMT
On Wed, May 19, 2004 at 04:47:45PM -0700, Paul Querna wrote:
: On Wed, 2004-05-19 at 18:44 -0500, Eugene Lee wrote:
: > On Wed, May 19, 2004 at 11:13:33AM -0700, David Yee wrote:
: > : 
: > : Thanks Eugene- looks like it's running prefork- do you know how I
: > : can switch over to worker in RH9?
: > 
: > Rebuild from source like so: 
: > 
: > 	./configure --with-mpm=worker ...
: 
: He is using PHP.  Do not use PHP with the Worker MPM. This will only
: cause more problems.  If he could remove PHP, then the Worker MPM
: could be a viable alternative.

Even though the PHP folks don't think Apache 2.0 is ready for production
servers, they do support PHP on a multithreaded Apache:

	http://www.php.net/manual/en/install.apache2.php

	In case you wish to build a multithreaded version of Apache 2.0
	you must overwrite the standard MPM-Module prefork either with
	worker or perchild.  To do so append to your configure line in
	step 6 above either the option --with-mpm=worker or
	--with-mpm=perchild.  Take care about the consequences and
	understand what you are doing.  For more information read the
	Apache documentation about the MPM-Modules. 

	Note: To build a multithreaded version of Apache your system
	must support threads.  This also implies to build PHP with
	experimental Zend Thread Safety (ZTS).  Therefore not all
	extensions might be available.  The recommended setup is to
	build Apache with the standard prefork MPM-Module. 


-- 
Eugene Lee

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message