Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45406 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70977 invoked from network); 25 Aug 2009 20:17:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Aug 2009 20:17:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=ctrahey@csisd.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=ctrahey@csisd.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain csisd.org from 204.56.144.240 cause and error) X-PHP-List-Original-Sender: ctrahey@csisd.org X-Host-Fingerprint: 204.56.144.240 gateway.csisd.org Received: from [204.56.144.240] ([204.56.144.240:56192] helo=gateway.csisd.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 10/21-00335-5F6449A4 for ; Tue, 25 Aug 2009 16:17:57 -0400 Received: from gateway.csisd.org (localhost.localdomain [127.0.0.1]) by localhost (Email Security Appliance) with SMTP id 7EC5B79434E_A9446A9B for ; Tue, 25 Aug 2009 20:16:41 +0000 (GMT) Received: from mail.csisd.org (email4400.csisd.org [204.56.144.241]) by gateway.csisd.org (Sophos Email Appliance) with ESMTP id 2AA6179434C_A9446A9F for ; Tue, 25 Aug 2009 20:16:41 +0000 (GMT) Message-ID: Date: Tue, 25 Aug 2009 15:19:03 -0500 X-Mailer: FirstClass 9.1 (build 9.221) X-FC-SERVER-TZ: 10486504 To: internals@lists.php.net MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="--=_--05122eb3.051229ea.c6b9f7b7" Subject: Multiple Apache Modules From: ctrahey@csisd.org ("Chris Trahey") ----=_--05122eb3.051229ea.c6b9f7b7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit 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] ----=_--05122eb3.051229ea.c6b9f7b7--