Created
August 7, 2016 07:39
-
-
Save kmcconnell/5d079e3fb3eab619ebd976df206923eb to your computer and use it in GitHub Desktop.
AimiPHP Vagrant Bootstrap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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