为什么PHP会在php-cgi.exe下的一个Windows Server上运行,而在w3w.exe下运行另一个?

I have two servers that are both running Windows Server 2008. Both have PHP installed on them. If i run a PHP script on one, under task manager, i can see that a php-cgi.exe process has started and for a few seconds uses some CPU. However, on the other server, the same script create a w3w.exe process.

Why is there a difference? The Application pools for both applications have been configured much the same. Is there setting in the php.ini that controls this?

Both servers run PHP version 5.3.28 which is what gets installed when you run the automatic PHP installer from php.iis.net