Some time we are in a situation where we badly need another PHP version to check our projects in local machine. We have some solutions too for this like Vagrant or Docker which provides us virtual environment. But for some one who heard it first time or in a hurry what will be the solution then?
Let see how we can quickly do it in our local machine in out known environment. I am going to show it for Windows user. Let assume i have a xampp setup of PHP 7.0 but i suddenly in need for PHP 5.6.
Listen 80and replace with
Listen 5656OR any number you like, Also replace
ServerName localhost:5656. Make sure that both number are same.
Listen 443and replace with
3306and replace with
Now run apache and mysql from xampp control panel in xampp_5.6 And we have two setup with two different PHP version.