Skip to content

Instantly share code, notes, and snippets.

@alonextou
Forked from chrisyip/vagrant-lamp.sh
Created December 20, 2013 00:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alonextou/8048830 to your computer and use it in GitHub Desktop.
Save alonextou/8048830 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