Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Elemenop's avatar

How to run local project on another computer?

I have a laravel project inside the htdocs folder in xampp. I run it by serving localhost. How to run it locally on another computer by copying the project to the other computer? Should I install xampp in the other computer? Do I need to install other things?

0 likes
4 replies
MohamedTammam's avatar

Yes, you should install XAMPP again to have the environment for the project.

Lara_Love's avatar

install xampp , composer ,database in phpmyadmin , copy your project in other system. and go to folder project and php artisan serve

CODE-AXION's avatar

you can also use php artisan serve --host=your-computer-ip --port=8000 eg:- php artisan serve --host=12.168.0.2 --port=8000

now you can type this URL on any computer of your network : http:://192.168.0.2/home <- your route

CODE-AXION's avatar

copy the the entire project folder except vendor folder and after installing xampp and phpmyadmin run composer update in the current directory of the project and it will create a vendor folder of yours with the necessary packages you have installed

it will take alot of time if you will copy the whole vendor folder so by running composer update your vendor folder will be created within a minute

Please or to participate in this conversation.