Skip to content

Instantly share code, notes, and snippets.

@smitty1eGH
Forked from chrisyip/vagrant-lamp.sh
Created January 28, 2014 01:09
Show Gist options
  • Save smitty1eGH/8660637 to your computer and use it in GitHub Desktop.
Save smitty1eGH/8660637 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
apt-get update
echo mysql-server-5.5 mysql-server/root_password password PASSWORD | debconf-set-selections
echo mysql-server-5.5 mysql-server/root_password_again password PASSWORD | debconf-set-selections
apt-get install -y mysql-common mysql-server mysql-client
apt-get install -y apache2
apt-get install -y php5 libapache2-mod-php5
apt-get install -y php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl
apt-get install -y vim
/etc/init.d/apache2 restart
rm -rf /var/www
ln -fs /vagrant /var/www
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment