Answered by:
IIS PHP5 vHost configuration

Question
-
User-1901572003 posted
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
Wednesday, July 2, 2008 8:27 AM
Answers
-
User2072887442 posted
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/
- Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
Wednesday, July 2, 2008 10:40 AM -
User-1637866776 posted
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.
- Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
Wednesday, July 2, 2008 1:28 PM -
User2072887442 posted
> 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.
- Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
Wednesday, July 2, 2008 3:37 PM -
User2093557029 posted
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.
- Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
Wednesday, July 2, 2008 5:22 PM
All replies
-
User2072887442 posted
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/
- Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
Wednesday, July 2, 2008 10:40 AM -
User-1901572003 posted
hm. interesting
does this include php-flags / php_values like safemode or magic_quotes_gpc?
Wednesday, July 2, 2008 12:18 PM -
User-1637866776 posted
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.
- Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
Wednesday, July 2, 2008 1:28 PM -
User2072887442 posted
> 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.
- Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
Wednesday, July 2, 2008 3:37 PM -
User2093557029 posted
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.
- Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
Wednesday, July 2, 2008 5:22 PM -
User-1637866776 posted
This blog post explains how to configure FastCGI/PHP on IIS 6.0 to enable per-site PHP configuration.
Monday, July 14, 2008 1:15 PM