Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am hosting php 5.2 on IIS 8. Yes, I know that's a horrible idea, but that is reality.

The server runs out of resources after our website is up for a few hours because for some reason php-cgi.exe opens up dozens of times:

enter image description here

What am I doing wrong? perhaps something wrong with the php.ini file?

Could this be caused by mssql_result not closing the connection?

I followed this nifty tutorial without luck

I have actually been able to limit the number of instances, but then all additional requests are getting processed very slowly.

share|improve this question
What does your config look like? – AbsoluteƵERØ Mar 29 '13 at 22:30
do you mean the php.ini? – l--''''''---------'''''''''''' Mar 29 '13 at 22:31
@cpattersonv1 here it is! – l--''''''---------'''''''''''' Mar 29 '13 at 22:35
@cpattersonv1 is that what you wanted? – l--''''''---------'''''''''''' Mar 29 '13 at 22:48
The fastcgi config. – AbsoluteƵERØ Mar 29 '13 at 22:51

I think it's better for you to perform the installation automatically using the tools provided by Microsoft:

  1. Download the Microsoft Web Platform Installer.
  2. Check in Options that you'll use IIS (not IIS Express).
  3. Search for "php", select some version and click "Add".
  4. Click "Install".
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.