'Multiple xampp uses single php environment variable problem
I have installed two xampp in my windows 11 machine. One is in c:/xampp and another one is in E:/xampp but the environment variable that I have been using is taking the php version from E:/xampp/php. I would like to run lower version of laravel application with older php version 7 in C:/xampp and new laravel development I would like to use the E:/xampp with latest php version 8. Is there a way in which The xampp in C can use only the php from c:/xampp and the xampp in E can only use the php from E:/xampp.
Solution 1:[1]
Best way is to make virtual host and defile both project paths in virtual host. like abc.com for a project in C directory project and xyz.com for E directory project. in this way you will run xamp that will automatically map project for its url defined in virtual host configurations.
Solution 2:[2]
With Deverser and his Virtual Host Manager you can do whatever you want. You can define a specific environment for each one.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Sajid Bashir |
| Solution 2 | Peter Estiven |
