MashPress VWD stands for Vagrant Wordpress Development and is loosely based off the Vagrant Drupal Development.
- You'll need to have virtualbox and vagrant installed.
- Homebrew:
brew install virtualbox
andbrew install vagrant
- Make sure you pull the Wordpress submodule with
git submodule init
andgit submodule update
- Fork or clone the repository.
- Update the submodules using
git submodule init
andgit submodule update
- This will clone WordPress into the
www/wp
directory.
- This will clone WordPress into the
- Run
vagrant up
and cross your fingers.- You'll need to type in your password when vagrant tries to mount the nfs directories
vagrant up
Bring up the virtual machine.vagrant provision
Provision the virtual machine.- This is useful if the inital install fails for whatever reason and you need to run it again.
vagrant suspend
Stop the VM temporarily.vagrant halt
Shut down the VM.vagrant destroy
Destroy the VM and delete the vhd.
- Vagrant will mount the
www/
directory into the virtual machine'svar/www
var/www/wp
is the WordPress submodule location. Again make sure you import it.- Vagrant will attempt to forward localhost port 8080 to the virtual machine web server. If this port is not available, vagrant will search for a free one.
- The default server location is
192.168.100.100
and can be configured inconfig.json
- Username:
root
- Password:
root
- phpmyadmin is installed and available at
http://localhost:8080/phpmyadmin
- webgrind is installed and available at
http://localhost:8080/webgrind
The WordPress Skelton is used to better organize the WordPress directory. The uploads symlink has been removed because why not commit your uploads directory?
Q: How do I remove the /wp
from the url?
A: If you would like to remove the /wp
from the url then simply change the site url config option in the WordPress admin panel.
Q: I'm getting a php error when trying to view the site!
A: Chances are that you forgot to run git submodule init
and git submodule update
when cloning the repository. You need WordPress!