skip to Main Content

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.

2

Answers


  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.

    you can get proper guideline from here in this link:

    Login or Signup to reply.
  2. With Deverser and his Virtual Host Manager you can do whatever you want. You can define a specific environment for each one.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search