diff --git a/Vagrant.bootstrap.sh b/Vagrant.bootstrap.sh new file mode 100644 index 0000000..169b47b --- /dev/null +++ b/Vagrant.bootstrap.sh @@ -0,0 +1,12 @@ +apt-get -qq update +apt-get install -y --no-install-recommends \ + apache2 \ + libapache2-mod-php7.0 \ + php7.0 \ + git +apt-get -qy autoremove +apt-get -qy clean +a2enmod php7.0 rewrite +echo "ServerRoot /var/www/html" >> /etc/apache2/apache2.conf +rm -f /var/www/html/index.html +service apache2 reload diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 0000000..d6d1774 --- /dev/null +++ b/Vagrantfile @@ -0,0 +1,13 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! +VAGRANTFILE_API_VERSION = "2" + +Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| + config.vm.box = "ubuntu/xenial64" + config.vm.hostname = "lfilabs" + config.vm.network :forwarded_port, host: 8080, guest: 80 + config.vm.provision :shell, path: "Vagrant.bootstrap.sh" +end +