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

Zaheen's avatar
Level 21

How to install Laravel Homestead on Windows

Install laravel homestead on a Windows computer is not that difficult. Just follow the Laravel documentation and add one environment variable. I will also try to explain the steps.

Follow these steps:

1 - First, you need install VirtualBox & Vagrant (please refer http://laravel.com/docs/master/homestead)

2 - Add box by typing "vagrant box add laravel/homestead" (If this command fails, you may have an old version of Vagrant that requires the full URL: "vagrant box add laravel/homestead https://atlas.hashicorp.com/laravel/boxes/homestead"

3 - clone homestead by typing: "git clone https://github.com/laravel/homestead.git Homestead"

4 - Add this path to your environment variables. "C:\Users\YourUserName\AppData\Roaming\Composer\vendor\bin"

5 - Run "bash init.sh" to generate homestead.yaml file inside your .homestead directory.

6 - Generate ssk key if you haven't already by typing: ssh-keygen -t rsa -C "you@emailaddress.com"

7 - Initialize homestead by typing "homestead init"

8 - Run homestead by typing "homestead up"

Don't forget to add the "domains" for your Nginx sites to the hosts file on your machine! The hosts file will redirect your requests for the local domains into your Homestead environment. On Windows, it is located at C:\Windows\System32\drivers\etc\hosts. The lines you add to this file will look like the following:

192.168.10.10 homestead.app (if 192.168.1.1 is not working, try 127.0.0.1)

That's all. Good luck

0 likes
0 replies

Please or to participate in this conversation.