I'm running IIS 6 unders windows 2003. I am trying to run php on 2
websites but they each need different configuration settings hence I
need php to use different php.ini files for each website. I have found
posts that suggest that if you put a php.ini file in the directory of
the website it will use it. So i have done so. each site has its own
php.ini in the root directory of the website. There exists no other
php.ini files except for the 2 directories. But when I start iis
neither site uses the php.ini file in the directory. In fact it doesn't
use any php.ini file. Is there a way to do this?

RE: IIS PHP using different php.ini files by AlokKumar

AlokKumar
Thu May 26 15:24:01 CDT 2005

When you click on the configuration under the Home directory in the IIS
properties, you will see that there is .php mapping pointing to
C:\PHP\php-cgi.exe. You can change this po point to two different place in
both the web sites. The ini file is loaded when the system is rebooted.

Alok

"ryanmhuc@yahoo.com" wrote:

> I'm running IIS 6 unders windows 2003. I am trying to run php on 2
> websites but they each need different configuration settings hence I
> need php to use different php.ini files for each website. I have found
> posts that suggest that if you put a php.ini file in the directory of
> the website it will use it. So i have done so. each site has its own
> php.ini in the root directory of the website. There exists no other
> php.ini files except for the 2 directories. But when I start iis
> neither site uses the php.ini file in the directory. In fact it doesn't
> use any php.ini file. Is there a way to do this?
>
>

Re: IIS PHP using different php.ini files by Kristofer

Kristofer
Sat May 28 10:01:31 CDT 2005

Hi,

Does PHP support this? (an individual php.ini file dependent on the
website)

Have you tried to ask this question in a PHP forum, since it is a PHP
configuration. They may have more insight about this, and can give you
better help.


--
Regards,
Kristofer Gafvert (IIS MVP)
www.gafvert.info - My Articles and help
www.ilopia.com


ryanmhuc@yahoo.com wrote:

> I'm running IIS 6 unders windows 2003. I am trying to run php on 2
> websites but they each need different configuration settings hence I
> need php to use different php.ini files for each website. I have found
> posts that suggest that if you put a php.ini file in the directory of
> the website it will use it. So i have done so. each site has its own
> php.ini in the root directory of the website. There exists no other
> php.ini files except for the 2 directories. But when I start iis
> neither site uses the php.ini file in the directory. In fact it doesn't
> use any php.ini file. Is there a way to do this?