Vagrant DEV Box

Vagrantfile & provisioning script which configure base devbox for php7.2 environment. The box uses Ubuntu 18.04.2 LTS (Bionic Beaver) linux distribution as a base system.

Tools available in the box:

  • apache 2.4
  • php8.1 (with phpdbg, uopz, apcu, memcached, mongodb, redis, ssh2 extensions)
  • mariadb 10.2
  • mongodb
  • redis
  • memcached
  • rabbitmq (with rabbitmq_management plugin)
  • git & git-flow
  • composer
  • phpmd
  • elasticsearch 7

Getting Started

  1. By default Vagrantfile does three things:
  • mounts your local directory ~/Projects into the guest /vagrant directory (NFS mount)
  • copy ssh key(s) from host machine
  • copy .gitconfig file from host machine

Prepare file in about paths or edit Vagrantfile, on the bottom of the file if you want to change anything.

  1. Set a default mysql root password in provision.sh file

  2. Run a command:

# vagrant up
  1. Go to make a coffee

  2. Done. You can log into your vagrant machine:

# vagrant ssh