How can I install XAMPP to work with different versions of PHP?
I use XAMPP because some of the scripts are buggy when run in WAMP. I use WAMP because it supports different versions of PHP.
But now I would like to streamline it down to just XAMPP so that my web development would be easier to manage.
Is it possible to configure XAMPP to work with more than one version of PHP? Or is it something that I have to look for in an alternative solution?
Note: I'm running on Windows 7.
Best Answer
Please note
This answer is not valid for new version of XAMPP.
First, you'll need to stop Apache from XAMPP. Then,
Go go cmd and switch to your XAMPP folder. For example, if your XAMPP folder is in C:\
In this folder is a file named
php-switch.bat
, run from the command line. If not, you can also runphp-switch.bat
directly.You'll see the version you are now on, and procedure to switch. For example, type
4
to switch PHP 4 then follow the procedure.PHP 4 will install in your XAMPP\PHP directory and successfully switch. then re-enable the Apache.