Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

On Apache server's I can create a .htaccess file with the following code.

AddHandler application/x-httpd-php5 .php

Is there something similar that I can do for a windows server or does php5 need to be enabled site wide?

share|improve this question

PHP can be disabled on an individual site via the Handler Mappings for a given site. Information on setting up the handler mapping can be found here, but if it is already enabled on a site, you only have to disable it on the Handler Mapping settings.

You may also want to have a look at the PHP Manaager for IIS on Codeplex.

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.