Skip to content
This repository has been archived by the owner on Oct 21, 2019. It is now read-only.

Commit

Permalink
Merge pull request #3 from niels-nijens/bionic
Browse files Browse the repository at this point in the history
Upgrade to Ubuntu Bionic (18.04) and add PHP7.3
  • Loading branch information
niels-nijens authored Sep 28, 2018
2 parents 1bdc887 + 82368ec commit 0e402fe
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
12 changes: 10 additions & 2 deletions Vagrantfile
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
# Extend from Ubuntu Xenial (16.04)
config.vm.box = "ubuntu/xenial64"
# Extend from Ubuntu Bionic (18.04)
config.vm.box = "ubuntu/bionic64"

# Add PHP version switcher
config.vm.provision "file", source: "provision/binary/switch-php.sh", destination: "/tmp/switch-php"

# Execute LAMP packages installation and configuration
config.vm.provision "shell", path: "provision/base.sh"

# Keep Vagrant insecure public key
config.ssh.insert_key = false

# Disable default serial port logging connection of Ubuntu box
config.vm.provider 'virtualbox' do |vb|
vb.customize [ 'modifyvm', :id, '--uartmode1', 'disconnected']
end
end
7 changes: 3 additions & 4 deletions provision/base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ sudo service apache2 restart
# Install MySQL
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-server

# Install PHP 5.6, 7.0, 7.1 and 7.2
# Install PHP 5.6, 7.0, 7.1, 7.2 and 7.3
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \
libapache2-mod-php5.6 \
php5.6 \
Expand All @@ -35,9 +35,8 @@ sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \
php7.0 \
php7.1 \
php7.2 \
libapache2-mod-php7.0 \
libapache2-mod-php7.1 \
libapache2-mod-php7.2 \
php7.3 \
libapache2-mod-php7.* \
php7.*-curl \
php7.*-gd \
php7.*-imap \
Expand Down

0 comments on commit 0e402fe

Please sign in to comment.