A Vagrant setup to create an Ubuntu 14.04 (Trusty) virtual machine with Nginx, MySQL and PHP for WordPress development.
Intended to be as simple as possible:
- Quickly create a fresh WP instance served up via the Vagrant server.
This Vagrant box and provisioning is based on (https://github.com/digitalquery/wp-vagrant)
-
Install VirtualBox
-
Install Vagrant
-
Install Vagrant triggers
$ vagrant plugin install vagrant-triggers
-
Install vagrant-hostupdater
$ vagrant plugin install vagrant-hostsupdater
Use these instructions if you want to create a new WP site with the default empty database.
- Fire up Vagrant to create the VM and then run the provisioning scripts
$ vagrant up
- This may take a little while as the provisioning scripts download and install everything
- Browse to 192.168.50.2 - you should see the default twentyfourteen theme
To change the PHP version, edit settings.sh
and set the php_version
setting to 5.5, 5.6 or 7.0. Run vagrant provision
if you're changing an already created vagrant instance
The full list - more comments and explanation are in the settings.sh
file itself.