Tag Archives: webserver

How to install two PHP versions in Window XAMPP?

While Xampp with PHP7 is great there are times when you need PHP5 for an old project. I found this great article on medium the other day on how to have two different PHP versions and one Xampp installation. The alternative is a pain as running two Xampp versions is just too much hassle.

The below article allows you to setup xampp to use PHP 5 and 7 when ever you want. So for normal projects you would use the address’s below, basically it makes xammp listen on port 8888 (or whatever u want) for requests and then uses PHP5 to interpret/compile any Php5 code.

PHP 7http://localhost/myproject
PHP 5http://localhost:8888/myproject

Article with details;
https://medium.com/@naingdroid/how-to-install-two-php-versions-in-window-xampp-b1402c23f42