Skip to content

Instantly share code, notes, and snippets.

@kmcconnell
Created August 7, 2016 07:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kmcconnell/5d079e3fb3eab619ebd976df206923eb to your computer and use it in GitHub Desktop.
Save kmcconnell/5d079e3fb3eab619ebd976df206923eb to your computer and use it in GitHub Desktop.
AimiPHP Vagrant Bootstrap
#!/bin/bash
echo '### Updating installed packages...'
apt-get update
apt-get upgrade -y
echo '### Installing Apache...'
apt-get -y install apache2
sed -i -e 's/\/var\/www\/html/\/var\/www\/public/g' /etc/apache2/sites-available/000-default.conf
if [ -f /var/www/html/index.html ]; then
rm -rf /var/www/html
fi
a2enmod rewrite
service apache2 restart
echo '### Installing PHP 7.0...'
add-apt-repository -y ppa:ondrej/php
apt-get update
apt-get -y install php7.0
apt-get -y install php7.0-mysql
apt-get -y install php-curl php7.0-mcrypt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment