Starting with ubuntu/trusty64, this adds MySQL, PHP 5.5 on Apache, with Mailcatcher, PHPMyAdmin & XHGui profiler.
- Copy
Vagrantfile
andvm-provisioning
folder into your project. - Copy
vm-provisioning/variables.yml.dist
tovm-provisioning/variables.yml
and set appropriately. - Open
Vagrantfile
and change:- the IP address on
config.vm.network
if you need to. - the hostname (
config.vm.network
)
- the IP address on
- Change any other setting that you want to. Especially check out:
vm-provisioning\apachephp\files\php_overrides.ini
vm-provisioning\mysql\files\mysql_overrides.cnf
vm-provisioning\website\tempalates\vhost.conf
- Add .vagrant to your project's
.gitignore
file.
-
Install VitualBox, VirtualBox Guest Additions and Vagrant.
-
Run
vagrant up
from the command line. -
Add hostname to
/etc/hosts
.- Use the IP address that's in your
Vagrantfile
. - use the server-name that you sent up in
variables.yml
.
i.e. your add this to
/etc/hosts
orSystem32\Drivers\Etc\Hosts
:192.168.99.2 example.dev mailcatcher.example.dev phpmyadmin.example.dev profiler.example.dev
- Use the IP address that's in your
These are the URLs available:
Website: http://example.dev
Mailcatcher: http://mailcatcher.example.dev
PHPMyAdmin: http://phpmyadmin.example.dev
XHGui profiler: http://profiler.example.dev