Spin up a local WordPress instance using Vagrant.
- Vagrant: https://www.vagrantup.com/
- Virtual Box: https://www.virtualbox.org/
Once Vagrant and VirtualBox have been installed, open a new terminal window in the cloned repository path and instantiate Vagrant:
vagrant up
Vagrant will first install a plugin called vagrant-hostsupdater
if this is the first time running vagrant up
. After the plugin(s) has been installed Vagrant will ask you to run vagrant up
again.
Vagrant will take a few minutes to spin up and install LAMP and WordPress.
Once spun up your local development instance can be viewed here: http://wp.local.
WordPress core files can be found in the src
folder within cloned repository.
The below credentials can be amended via vagrant-bootstrap.sh
if needed. This needs to be done before the initial spin up of this Vagrant box.
Username | Password |
---|---|
wpuser | wordpress |
IP | Schema | Username | Password |
---|---|---|---|
192.168.33.11 | wordpress | wordpress | wordpress |