Skip to content

Instantly share code, notes, and snippets.

@gdevlugt
Created May 26, 2020 13:39
Show Gist options
  • Save gdevlugt/c3e62d52c42d8b027d3571b8e3dc42b4 to your computer and use it in GitHub Desktop.
Save gdevlugt/c3e62d52c42d8b027d3571b8e3dc42b4 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# apt-get update
sudo apt-get install -y unzip
sudo apt-get install -y nodejs
sudo apt-get install -y npm
#if ! [ -e /home/vagrant/.composer ]; then
# mkdir /home/vagrant/.composer
#
# cat <<EOT >> /home/vagrant/.composer/config.json
# {
# "config": {
# "process-timeout": 600,
# "preferred-install": "dist",
# "github-protocols": ["https"]
# }
# }
#EOT
#
#fi
sudo update-alternatives --set php /usr/bin/php7.1
sudo sed -i 's/DocumentRoot .*$/DocumentRoot \/var\/www\/public/' /etc/apache2/sites-available/001-jimmy5.6.conf
sudo sed -i 's/DocumentRoot .*$/DocumentRoot \/var\/www\/public/' /etc/apache2/sites-available/002-jimmy7.0.conf
sudo sed -i 's/DocumentRoot .*$/DocumentRoot \/var\/www\/public/' /etc/apache2/sites-available/003-jimmy7.1.conf
sudo sed -i 's/DocumentRoot .*$/DocumentRoot \/var\/www\/public/' /etc/apache2/sites-available/004-jimmy7.2.conf
sudo sed -i 's/DocumentRoot .*$/DocumentRoot \/var\/www\/public/' /etc/apache2/sites-available/005-jimmy7.3.conf
sudo sed -i 's/DocumentRoot .*$/DocumentRoot \/var\/www\/public/' /etc/apache2/sites-available/006-jimmy7.4.conf
/usr/sbin/a2ensite 001-jimmy5.6.conf
/usr/sbin/a2ensite 002-jimmy7.0.conf
/usr/sbin/a2ensite 003-jimmy7.1.conf
/usr/sbin/a2ensite 004-jimmy7.2.conf
/usr/sbin/a2ensite 005-jimmy7.3.conf
/usr/sbin/a2ensite 006-jimmy7.4.conf
sudo systemctl restart apache2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment