Re: [PHP4BETA] Multiple virtual hosts on IIS
| From: | Zeev Suraski | Date: | Fri, 24 Mar 2000 23:35:33 +0000 |
| Subject: | Re: [PHP4BETA] Multiple virtual hosts on IIS | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-12578@lists.php.net to get a copy of this message | ||
Putting php.ini files in the various directories isn't supposed to affect
PHP in any way, it's supposed to ignore them, as it only reads one php.ini
file. You're saying it makes PHP crash?
As for your question, you can configure PHP 4 with per-directory values
using the registry.
Create the path HKLM\SOFTWARE\PHP\Per Directory Values, create the
relevant path under it (e.g. "InetInfo\Site1"), and under it, create
string values with the relevant information (e.g. safe_mode = "0").
This method currently lacks the ability to specify the drive letter, but
I'm going to submit a patch to fix this in a few minutes.
Zeev
On Fri, 24 Mar 2000, Chris Adams wrote:
> For reasons beyond my control, a site I'm working on will be hosted on NT/IIS
> instead of Linux/Apache. One of the things I had been using was Apache's
> ability to specify per-site configuration settings to set the PHP include
> path for each virtual host. Is there some equivalent configuration option
> under IIS? It's trivial to make one site work using the global php.ini but I
> need to have several sites with different settings. I don't like the idea of
> putting php.ini files in every directory with scripts, and that doesn't seem
> to work in any case ("Access violation" or a cpu-chewing inetinfo.exe),
> although that may just be the regular php.ini crashes and not a multiple .ini
> problem.
>
>
>
--
Zeev Suraski <zeev@zend.com>
http://www.zend.com/