-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathVagrantfile
More file actions
27 lines (25 loc) · 839 Bytes
/
Vagrantfile
File metadata and controls
27 lines (25 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.box_check_update = true
config.vm.network "forwarded_port", guest: 80, host: 80
config.vm.synced_folder "penlab", "/app"
config.vm.provision "shell", inline: <<-SHELL
apt-get update
apt-get install -yq \
apache2 \
libapache2-mod-php5 \
php5-gd \
php5-curl \
php-pear \
php5-sqlite \
php-apc && \
rm -rf /var/lib/apt/lists/*
echo "ServerName localhost" >> /etc/apache2/apache2.conf && \
sed -i "s/variables_order.*/variables_order = \"EGPCS\"/g" /etc/php5/apache2/php.ini
rm -fr /var/www/html && ln -s /app /var/www/html
chown www-data:www-data /app -R
service apache2 start
SHELL
end