Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45409 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18100 invoked from network); 25 Aug 2009 23:13:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Aug 2009 23:13:49 -0000 Authentication-Results: pb1.pair.com smtp.mail=tjerk.meesters@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tjerk.meesters@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.221.176 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: tjerk.meesters@gmail.com X-Host-Fingerprint: 209.85.221.176 mail-qy0-f176.google.com Received: from [209.85.221.176] ([209.85.221.176:37199] helo=mail-qy0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7E/D1-08117-C20749A4 for ; Tue, 25 Aug 2009 19:13:48 -0400 Received: by qyk6 with SMTP id 6so893448qyk.26 for ; Tue, 25 Aug 2009 16:13:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=nBt/q0Sh/iqWPJsE1hBA8NuCeRzuHK6cxVZBqncXOMc=; b=fefOu+ZtVPKEvEDSLdaocU+4AInGps1dp4Pu51OM4W9ZipB8jenPtn3nJS1fzhBxKz 2fbDJpmwdcPfv85HVA4nqJHnYNQsRoM1eqeeYaERaSeu4r55eR0OBlNIuX2bxxQovBE8 pcdLdiBvPXZPOTr8hs335JBhL+5M6lLUI2Spo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=Fna1aJRmMf71tbkzbjK8wxsFDXYN+/FDhodn/a1eIatqhrBfQA1Y4cCGSxWAEc97oj au6QG2LQdQxTkMeKhUykziVULUGCAf0tFllenTlD6DOg1halt0yW5JrsLZ54/Hb77Xyz tvpgBjXxVAejNpqEXQdcod8vSB8gYVKqGJjXg= MIME-Version: 1.0 Sender: tjerk.meesters@gmail.com Received: by 10.224.24.80 with SMTP id u16mr4555557qab.75.1251242025398; Tue, 25 Aug 2009 16:13:45 -0700 (PDT) In-Reply-To: References: Date: Wed, 26 Aug 2009 07:13:45 +0800 X-Google-Sender-Auth: 111115599b711d77 Message-ID: To: Chris Trahey , internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Multiple Apache Modules From: datibbaw@php.net (Tjerk Anne Meesters) I suggest you set up multiple instances of FastCGI instead and let your web server choose the right CGI gateway per request. On 8/26/09, Chris Trahey wrote: > Attempting to load 2 PHP modules in the same httpd instance. > modified mod_php5.c, php_apache.h, php.sym and sapi_apache2.c > to reflect a unique module name for the second compiled .so, as well as > change the PHP_MAGIC_TYPE to something unique. > basically changing php5_module to php5UNIQUE_module > and application/x-httpd-php to application/x-UNIQUE-php > > There is trouble at apache startup with both enabled, but not every time. > Is it conceivable to have a user-defined module name(space) for loading > multiple php shared objects? > > The use: > 1. Load mulitple PHP modules at startup. > 2. Inside virtual hosts, assign whichever php module is appropriate > 3. have v-hosts that point to the same files, but use different versions > of php\ > 4. requests can look like this: php5-2-10.mysite.com php5-3-0.mysite.com > php6-0.mysite.com > > Chris Trahey > Web Applications Developer > Database Administrator > CSISD [Technology] > > > -- -- Tjerk