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.
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
zealot2k
2 Posts
IIS PHP5 vHost configuration
Jul 02, 2008 12:27 PM|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
Alex.W474
26 Posts
Re: IIS PHP5 vHost configuration
Jul 02, 2008 02:40 PM|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/
zealot2k
2 Posts
Re: IIS PHP5 vHost configuration
Jul 02, 2008 04:18 PM|LINK
hm. interesting
does this include php-flags / php_values like safemode or magic_quotes_gpc?
ruslany
900 Posts
Microsoft
Moderator
Re: IIS PHP5 vHost configuration
Jul 02, 2008 05:28 PM|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
Alex.W474
26 Posts
Re: IIS PHP5 vHost configuration
Jul 02, 2008 07:37 PM|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.
brashquido
396 Posts
Moderator
Re: IIS PHP5 vHost configuration
Jul 02, 2008 09:22 PM|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
ruslany
900 Posts
Microsoft
Moderator
Re: IIS PHP5 vHost configuration
Jul 14, 2008 05:15 PM|LINK
This blog post explains how to configure FastCGI/PHP on IIS 6.0 to enable per-site PHP configuration.
FastCGI IIS6 php ini