- Clone the repo
- Copy
conf/SETTINGS.tpl.yml
toconf/settings.yml
. - You can edit
settings.yml
file with your favourite editor to modify the VM. - Run
vagrant up
from the same folder as the Vagrantfile to build the VM. - Run
vagrant port
to see which host port is mapped to :80 on guest. - After build complete, visit
http://localhost:hostport
to see apache message. - Run
vagrant ssh
after the build is complete to access the VM.
Use this repo to build a VM using Vagrant. The VM specifications are managed using the settings.tpl file. The default settings are:
- Ubuntu 16.04 (Xenial)
- Apache (latest)
- MySQL (latest)
- PHP 7.2 (default) or PHP 5.6
- Composer
- Drush 8
- Vagrant: https://www.vagrantup.com/
- VirtualBox: https://www.virtualbox.org/
- Webroot from host: http://localhost:*hostport*
- DB root user password: root
- Both PHP 5.6 and PHP 7.2 are installed at /user/bin/php[version].
- PHP 7.2 is the default
- You can view php version with
update-alternatives --list php
- You switch between versions with:
update-alternatives --set php /usr/bin/phpXX
, where XX is the version you want to switch to. - The following PHP modules are also installed for each version:
php-curl php-dev php-gd php-mbstring php-zip php-mysql php-xml php-json
Look at the conf/scripts/
folder for additional scriptings, including scripts that will:
- import databases
- install composer
- install drush
- install drupal
- install wordpress (coming soon)