« Previous Next »

Thread: IIS PHP5 vHost configuration

Last post 07-14-2008 1:15 PM by ruslany. 6 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (7 items)

Sort Posts:

  • 07-02-2008, 8:27 AM

    • zealot2k
    • Not Ranked
    • Joined on 07-02-2008, 12:18 PM
    • Posts 2

    IIS PHP5 vHost configuration

    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

     

  • 07-02-2008, 10:40 AM In reply to

    Re: IIS PHP5 vHost configuration

    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/

  • 07-02-2008, 12:18 PM In reply to

    • zealot2k
    • Not Ranked
    • Joined on 07-02-2008, 12:18 PM
    • Posts 2

    Re: IIS PHP5 vHost configuration

    hm. interesting

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

  • 07-02-2008, 1:28 PM In reply to

    • ruslany
    • Top 25 Contributor
    • Joined on 07-01-2007, 7:38 PM
    • Redmond, WA
    • Posts 651

    Re: IIS PHP5 vHost configuration

    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.

    http://ruslany.net
  • 07-02-2008, 3:37 PM In reply to

    Re: IIS PHP5 vHost configuration

    > 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.

  • 07-02-2008, 5:22 PM In reply to

    Re: IIS PHP5 vHost configuration

    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
    www.iis-aid.com
    My IIS articles
    My PHP articles
    My How-to guides
  • 07-14-2008, 1:15 PM In reply to

    • ruslany
    • Top 25 Contributor
    • Joined on 07-01-2007, 7:38 PM
    • Redmond, WA
    • Posts 651

    Re: IIS PHP5 vHost configuration

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

    http://ruslany.net
Page 1 of 1 (7 items)
Microsoft Communities