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

I have a windows server 2003 with ISS 7.0. There runs 2 sites with simple php, which I have installed easily. (C:/Program Files/PHP)

Now I install XAMPP for MYSQL and XAMPP installed a second (inactive) PHP (C:/XAMPP/PHP).

How to change from my installed PHP to XAMPP PHP (It's newer and a few extensions I wanna use it's in there allready) ?

share|improve this question
up vote 1 down vote accepted

If you mean you want to switch entirely to the new PHP instance for IIS, then you need to create/use a registry key HKLM\Software\PHP\IniFilePath (String Value) with the directory where the PHP.INI file resides for your new PHP version.

If you want two different PHP instances for two sites in IIS then you might be able to do this with two application pools, but I suspect that could be tricky.

Otherwise you could use Apache and provide the PHPIniDir directive in the httpd.conf for each Apache instance you want to use a different PHP version for.

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.