Re: Multiple Apache Modules

From: Date: Tue, 25 Aug 2009 23:13:45 +0000
Subject: Re: Multiple Apache Modules
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-45409@lists.php.net to get a copy of this message
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 <ctrahey@csisd.org> 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

« previous php.internals (#45409) next »