Last active
August 29, 2015 14:24
-
-
Save cpgillem/a12f3ecf7d1c9ca613aa to your computer and use it in GitHub Desktop.
Basic bootstrap shell script for Vagrant. Installs the LAMP stack and sets the MySQL password to "twentyseven" (A password I tend to use for such things).
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 | |
# from https://www.howtoforge.com/tutorial/vagrant-ubuntu-linux-apache-mysql-php-lamp/ | |
# Update Repo | |
sudo apt-get -y update | |
# Install Apache | |
sudo apt-get -y install apache2 | |
# Install MySQL | |
# # Set MySQL Root Password to "twentyseven" | |
sudo debconf-set-selections <<< 'mysql-server-5.5 mysql-server/root_password password twentyseven' | |
sudo debconf-set-selections <<< 'mysql-server-5.5 mysql-server/root_password_again password twentyseven' | |
sudo apt-get -y install mysql-server libapache2-mod-auth-mysql php5-mysql | |
# Install PHP | |
sudo apt-get -y install php5 libapache2-mod-php5 php5-mcrypt | |
# Symlink /var/www | |
sudo rm -Rf /var/www | |
sudo ln -s /vagrant /var/www |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment