Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.