Thursday, May 22, 2008

How to specify PHP.ini for IIS5.1 and IIS6 FastCGI

The specific PHP.ini can be specified in the "Arguments" IIS FastCGI configuration option as follows:

[Types]
php=PHP-5.2
[PHP-5.2]
ExePath=C:\path\to\php-cgi.exe
Arguments=-c C:\path\to\php.ini

You can open the FastCGI configuration file by opening Windows command prompt and executing the following command:

notepad C:\WINDOWS\system32\inetsrv\fcgiext.ini

No comments: