Last active
January 3, 2016 00:19
-
-
Save zvineyard/8382016 to your computer and use it in GitHub Desktop.
Vagrant (VirtualBox) bootstrap. Holla!
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
#!/usr/bin/env bash | |
# Upgrade Base Packages | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
# Install Web Packages | |
sudo apt-get install -y apache2 | |
rm -rf /var/www | |
ln -fs /vagrant /var/www | |
sudo apt-get install -y php5 | |
sudo apt-get install -y php5-dev | |
sudo apt-get install -y php5-xdebug | |
sudo apt-get install -y php5-apcu | |
sudo apt-get install -y php5-json | |
sudo apt-get install -y php5-mysql | |
sudo apt-get install -y php5-gd curl | |
sudo apt-get install -y php5-curl | |
sudo apt-get install -y memcached | |
sudo apt-get install -y php5-memcached | |
sudo apt-get install -y libmcrypt4 | |
sudo apt-get install -y php5-mcrypt | |
sudo apt-get install -y beanstalkd | |
sudo apt-get install -y openssh-server | |
sudo apt-get install -y git | |
# Install MySQL | |
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root' | |
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root' | |
sudo apt-get -y install mysql-server | |
# Configure Mcrypt (Ubuntu 13.10) | |
#sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available | |
#sudo php5enmod mcrypt | |
#sudo service apache2 restart | |
# Install Composer | |
curl -sS https://getcomposer.org/installer | php | |
sudo mv composer.phar /usr/local/bin/composer | |
# Install PHPUnit | |
sudo pear config-set auto_discover 1 | |
sudo pear install pear.phpunit.de/phpunit | |
# Enable PHP Error Reporting | |
sudo sed -i "s/error_reporting = .*/error_reporting = E_ALL/" /etc/php5/apache2/php.ini | |
sudo sed -i "s/display_errors = .*/display_errors = On/" /etc/php5/apache2/php.ini | |
sudo sed -i "s/error_reporting = .*/error_reporting = E_ALL/" /etc/php5/cli/php.ini | |
sudo sed -i "s/display_errors = .*/display_errors = On/" /etc/php5/cli/php.ini | |
sudo sed -i "s/memory_limit = .*/memory_limit = 512M/" /etc/php5/cli/php.ini | |
# Generate SSH Key | |
cd ~ | |
mkdir .ssh | |
cd .ssh | |
ssh-keygen -f id_rsa -t rsa -N '' | |
sudo reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment