Starting with ubuntu/trusty64, this adds MySQL, PHP 5.5 on Apache, with Mailcatcher, PHPMyAdmin & XHGui profiler.
- Copy
Vagrantfileandvm-provisioningfolder into your project. - Copy
vm-provisioning/variables.yml.disttovm-provisioning/variables.ymland set appropriately. - Open
Vagrantfileand change:- the IP address on
config.vm.networkif 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.inivm-provisioning\mysql\files\mysql_overrides.cnfvm-provisioning\website\tempalates\vhost.conf
- Add .vagrant to your project's
.gitignorefile.
Install VitualBox, VirtualBox Guest Additions and Vagrant.
Run
vagrant upfrom 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/hostsorSystem32\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