We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

IIS PHP5 vHost configuration [Answered]RSS

6 replies

Last post Jul 14, 2008 01:15 PM by ruslany

  • IIS PHP5 vHost configuration

    Jul 02, 2008 08:27 AM|zealot2k|LINK

    hi,

     

    i googled for quite some time now and it seems there are limitless sollutions for individual php configurations for vhosts using apache, but for IIS there is nothing to be found -.-

    I own a Windows 2003 64bit Rootserver with several domains already working. PHP5 is also working fine, but i'm unable to find a way to configure local settings for different vhosts, only global settings exist.

    So: (How) can PHP-vhost-configuration be done? i've read about writing php-flags directly into the windows registry, but this sollution seems to be limited.

    thanks

     

  • Re: IIS PHP5 vHost configuration

    Jul 02, 2008 10:40 AM|Alex.W474|LINK

    In the C:\WINDOWS\system32\inetsrv\fcgiext.ini you can create different configurations per site:

    http://learn.iis.net/page.aspx/248/configuring-fastcgi-extension-for-iis60/

  • Re: IIS PHP5 vHost configuration

    Jul 02, 2008 12:18 PM|zealot2k|LINK

    hm. interesting

    does this include php-flags / php_values like safemode or magic_quotes_gpc?
     

  • Re: IIS PHP5 vHost configuration

    Jul 02, 2008 01:28 PM|ruslany|LINK

    A possible way of providing per-site PHP configuration on IIS 7.0 is described here: http://learn.iis.net/page.aspx/208/#Per-site.

    iis7 php ini

  • Re: IIS PHP5 vHost configuration

    Jul 02, 2008 03:37 PM|Alex.W474|LINK

    > does this include php-flags / php_values like safemode or magic_quotes_gpc

     Yes.

    For IIS 5.1, 6.0 FastCGI handler and IIS 7.0 FastCGI module.

  • Re: IIS PHP5 vHost configuration

    Jul 02, 2008 05:22 PM|brashquido|LINK

    If you are using PHP ISAPI, have a look at my article on setting per directory PHP configuration values on my website. Personally, I'd recommend using the FastCGI method as there are some limitations doing this with ISAPI.

    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    IIS Aid
    IIS and Open Source
  • Re: IIS PHP5 vHost configuration

    Jul 14, 2008 01:15 PM|ruslany|LINK

    This blog post explains how to configure FastCGI/PHP on IIS 6.0 to enable per-site PHP configuration.

    FastCGI IIS6 php ini