Apache allows specification of a configuration file (other than the default)
by using the -f option at the time the daemon is started. So, I can have
multiple instances of the same Apache binary running, each using a different
configuration file.

What I would like to do, is have each one of those instances also use a
different php.ini. I want the effect of the -c option for the PHP stand-alone
version, but in the Apache module version. However, it doesn't seem that I can
specify the location of the php.ini file for the Apache module version other
than via the compile-time option --with-config-file-path.

Specifically, I want some sites to run with Zend Optimizer, and some with APC.
Since these products can not run together, it seems clear that I must have
separate Apache processes handle them, as opposed to just different virtual
servers within the same process. Since neither product can be loaded
dynamically, I'll need to have different php.ini files for each set of sites.
However, it doesn't seem that I can accomplish my goal unless I compile two
separate libphp4.so files (the only difference being the
--with-config-file-path option), and then have the already separate httpd.conf
files refer specifically to them.

Is there a better way to accomplish this?

-- 
Alex Howansky
Wankwood Associates
http://www.wankwood.com/




-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to