From owner-freebsd-apache@FreeBSD.ORG Fri Feb 1 17:01:29 2008 Return-Path: Delivered-To: freebsd-apache@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 63E9816A41B for ; Fri, 1 Feb 2008 17:01:29 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.189]) by mx1.freebsd.org (Postfix) with ESMTP id CBE1213C447 for ; Fri, 1 Feb 2008 17:01:28 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: by mu-out-0910.google.com with SMTP id w8so908286mue.4 for ; Fri, 01 Feb 2008 09:01:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; bh=hltthaVJLThF1ktuWrDMHmdqTk8wGkVYHrpy65EsYVg=; b=VuEFFNk4oL8Ihd5wFNOf+Kg1rw+ZSzKEpepkW++8jCPKpv8bS6C1V/YSzDAjkpWUZTTPqfiPY2rpa6ZbNBpfWmMavQkRGuS0cov3nZk7Cz8bsNvsTrDsoXX4oNIRv6vzzvkO+eb3Q3xO7Ogtn0KwLM1G3GTxcyYED4a1Zib+WXs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; b=ieqkY0+s7m9qyvtuZwDjQRQGC/EGZFf/dhaZ/GtJSR/iKbNrFMHGjwkqFECIx7V76pn93PSBKVUbiSp4nFOjR+DmDBaLGuXB+T/NO0s2D1hp6bSVW4EQ+Tl1XcWXVt/4czlSTGW1Wpc2lUljf7sN9rUfmgjy3UE836gaoU8Wn1k= Received: by 10.78.168.1 with SMTP id q1mr6514727hue.71.1201885285663; Fri, 01 Feb 2008 09:01:25 -0800 (PST) Received: from ?127.0.0.1? ( [217.206.187.79]) by mx.google.com with ESMTPS id g11sm260675gve.6.2008.02.01.09.01.24 (version=SSLv3 cipher=RC4-MD5); Fri, 01 Feb 2008 09:01:24 -0800 (PST) From: Tom Evans To: "Chris H." In-Reply-To: <20080201074213.93ievskew4wgsgg4@webmail.1command.com> References: <20080131184116.ennj4jbvw480ws8s@webmail.1command.com> <1201863996.2975.27.camel@localhost> <20080201074213.93ievskew4wgsgg4@webmail.1command.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-JmAWDIecGY33V+Uap47h" Date: Fri, 01 Feb 2008 17:01:23 +0000 Message-Id: <1201885283.2975.56.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.10.2 FreeBSD GNOME Team Port Cc: freebsd-apache@freebsd.org, freebsd-stable@freebsd.org, freebsd-ports@freebsd.org, Pete French Subject: Re: [: -le: argument expected X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Feb 2008 17:01:29 -0000 --=-JmAWDIecGY33V+Uap47h Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2008-02-01 at 07:42 -0800, Chris H. wrote: > Hello Tom, and thank you for your thoughtful reply. >=20 > I would have to assert that in my case, your assertions are also a bit > moot. Would make deinstall apache2.0 && make install apache2.2 && > make install php5 -DWITH_CGI=3DTRUE -DWITH_CLI=3Dtrue -DWITH_APACHE=3Dtru= e > accomplish a successful build? In fact, no. As the real problem at > hand, is getting php5 to build the apache module (libphp5.so). :) >=20 > On the other hand. Assuming a successfully built apache module; > How large is the difference between the same modules in > 1.2 vs 2.0 vs 2.2? > How large is the difference in apache' reaction to calls made to > apache, where these modules are involved? > Does Apache 2.2 offer the -DWITH_MPM=3Dthreadpool? I couldn't find it. >=20 > Thank you for your informative, and thoughtful reply. >=20 > --Chris H HTH. I'm afraid I can't help too much with PHP, as I don't myself use PHP anywhere. I know other guys in the office do have PHP 5 working nicely with apache22 from ports though - I'd assume that the problem is with a system library, I may have missed the email with the actual error logs in it. When using PHP, it is important to use the prefork MPM. The other MPMs are all threaded, and not very many PHP extensions are thread safe. I'm not sure what the 'threadpool' MPM is - in 2.2 there is prefork, worker (which implements itself through a multi-process multi-thread model), and event, which is a specialized version of worker that uses a single dedicated thread to handle listening sockets and keep-alive sockets. We use the event MPM on our front end proxies (also marked as 'experimental', but this is (according to the dev I asked) as it doesn't support accept filters (and hence cannot handle SSL).=20 Our proxies handle a large amount of web traffic, serving static files locally and reverse proxying dynamic requests to the appropriate backend webservers, running anything from custom 1.3 apache modules, PHP 5 served from prefork MPM apache 2.2 servers, and, in one unfortunate incidence, hand-rolled web servers.=20 The event model works incredibly well at this task, with load averages never peeking above 0.05. I just checked the 2.0 modules page [1], and there is a 'threadpool' MPM there, listed as 'This MPM is a developer playground and highly experimental'! I think that even if you do get PHP5 to build with that, you will be disappointed as soon as you get some significant load, and will have a hell of a time debugging it.=20 prefork MPM isn't sexy, but it does work with PHP. From [2]: We do not recommend using a threaded MPM in production with Apache2. Use the prefork MPM instead, or use Apache1. For information on why, read the related FAQ entry on using Apache2 with a threaded MPM If you have some error messages (or pointers to the emails I missed!) I'll take a looksie at them. Cheers Tom [1] http://httpd.apache.org/docs/2.0/mod/ [2] http://uk.php.net/manual/en/install.unix.apache2.php --=-JmAWDIecGY33V+Uap47h Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQBHo1BflcRvFfyds/cRAqauAKCMIoNwei43/258o+ma5iV75g25dQCfXeKa 9GiD1uEadea5u5QT76dseEM= =tyN0 -----END PGP SIGNATURE----- --=-JmAWDIecGY33V+Uap47h--