Multiple yii2 project on same machine using xampp

HI all

I already have one yii2 project in my localhost at 8080 port and i use php yii serve to run the project. now i have created another yii2 project which acts as an API and it also has database.How can I run my API project and call in same machine ?

I need to call API project in first project.


Hi @yiimatch, welcome to the forum.

I think that the most straightforward solution is to set up 2 virtual hosts using Apache http server since you are using xampp.

1 Like