Update Vagrantfile to use Xenial

This commit is contained in:
Frédéric Guillot
2018-01-26 17:01:44 -08:00
parent f6756b837a
commit 82eacc488c
5 changed files with 7 additions and 6 deletions

5
Vagrantfile vendored
View File

@@ -1,7 +1,8 @@
$script = <<SCRIPT
apt-get update
apt-get install -y apache2 php5 php5-sqlite php5-mysql php5-pgsql php5-gd curl unzip php5-curl php5-ldap && \
apt-get install -y apache2 libapache2-mod-php7.0 php7.0-cli php7.0-mbstring php7.0-sqlite3 php7.0-zip \
php7.0-opcache php7.0-json php7.0-mysql php7.0-pgsql php7.0-ldap php7.0-gd php7.0-xml php7.0-curl && \
apt-get clean && \
echo "ServerName localhost" >> /etc/apache2/apache2.conf && \
sed -ri 's/AllowOverride None/AllowOverride All/g' /etc/apache2/apache2.conf && \
@@ -25,7 +26,7 @@ SCRIPT
Vagrant.configure("2") do |config|
config.vm.define "ubuntu" do |m|
m.vm.box = "ubuntu/trusty64"
m.vm.box = "ubuntu/xenial64"
m.vm.provision "shell", inline: $script
m.vm.synced_folder ".", "/var/www/html", owner: "www-data", group: "www-data"
m.vm.network :forwarded_port, guest: 80, host: 8001