Multiple Apache Modules
| From: | Chris Trahey | Date: | Tue, 25 Aug 2009 20:19:03 +0000 |
| Subject: | Multiple Apache Modules | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-45406@lists.php.net to get a copy of this message | ||
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]