Wir freuen uns auf Ihre Nachricht

Die von Ihnen gesendete Nachricht wird selbstverständlich streng vertraulich behandelt. Wir melden uns dann so rasch wie möglich auf Ihr Anliegen.

Ihr Download steht bereit

Geben Sie uns bitte ein paar Infos zu Ihrer Person bekannt. Die Präsentation wird im Anschluss an die von Ihnen angegebene E-Mail-Adresse gesendet.

Using Laravel Homestead for local WordPress Development

Laravel Homestead. Simple & effective VM.

Homestead SSH
TOWA Mitarbeiter Sahin Ucar

Written By
Sahin Ucar

| 3 Minuten

In a previous post we described how you can use Laravel Valet for your local development environment. This post shows how to setup your local development environment based on Laravel Homestead.

Laravel Homestead

Laravel Homestead is an official package for vagrant. It’s packed with all the needed software for a Laravel project, but the used stack is also suitable for any other PHP-based application.

The box includes the Nginx web server, PHP 5.6 til 7.3, PostgreSQL, MySQL, Redis, Memcached and few other software. You can find the full list in the official documentation.

It’s perfect for an independent setup on your machine without installing any other software than vagrant and a VM-provider like virtualbox.

WordPress & Homestead

We use the same bedrock-based setup as mentioned in our post about the Valet example. The same applies here, you can use the default or any other WordPress Boilerplate.

It takes a little bit more time than setting up Valet, but it’s just as easy.

1. Requirements

Before installing Laravel Homestead, check if you have vagrant as well as a VM-provider installed. Following VM-providers are supported: VirtualBox, VMWare, Parallels or Hyper-V.

Please also check the further information for the VM-providers other than vagrant here.

We use the combination of vagrant + VirtualBox.

2. Installation

For installing Homestead you can either use vagrant or clone the repository itself. To download the Homestead-box via vagrant, use the following command:

vagrant box add laravel/homestead

If you consider cloning the Homestead-repo instead, use the following:

▲ git clone https://github.com/laravel/homestead.git ~/Homestead
cd ~/Homestead
▲ git checkout v7.xx.0 // Clone the desired release...

After the cloning run the initialisation script which creates the Homestead configuration file:

bash init.sh

There will be a Homestead.yaml file afterwards in the ~/Homestead folder.

Homestead initialised

3. Configure

The created configuration file has everything we need already. We’ll just adjust the mapping and domain-name for the demo-project, so it’s callable via towa.boilerplate.local.

Homestead Default Configuration

Nothing complicated or special there. Just map the desired project folder to the VM-folder. Also note the /web as the root, which is required for the bedrock setup.

To call the website via towa.boilerplate.local adjust your ~/etc/hosts file:

So far so good. The final step before we need is to create a database to use. The database credentials are per default the following:

  • host:
  • port: 33060
  • username: homestead
  • password: secret

4. Start

That’s it. Now you can start the vagrant box – will take a few minutes the first time – and then you’re good to go.

For starting just run vagrant up in the ~/Homestead folder. If the VM is ready you can open now towa.boilerplate.local and also ssh into the VM.

Homestead WP Demo
Homestead SSH
TOWA Mitarbeiter Sahin Ucar

Sahin Ucar

Director of Development. Developer.

We would love to get some feedback, questions, comments or what so ever :)
E-Mail senden