diff options
Diffstat (limited to 'vagrant.sh')
-rw-r--r-- | vagrant.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vagrant.sh b/vagrant.sh new file mode 100644 index 0000000..e38dca7 --- /dev/null +++ b/vagrant.sh @@ -0,0 +1,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 |