summaryrefslogtreecommitdiff
path: root/vagrant.sh
blob: e38dca7063b588d754e5be24c54813e35b98bb57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash
apt-get update
apt-get install -y apache2 vim php5

# set web root
rm -rf /var/www/html
ln -fs /vagrant /var/www/html

# conf apache
sudo echo "export APACHE_RUN_USER=vagrant" >> /etc/apache2/envvars
sudo echo "export APACHE_RUN_GROUP=vagrant" >> /etc/apache2/envvars

sudo service apache2 restart