Skip to content

Instantly share code, notes, and snippets.

@lvnilesh
Forked from chrisyip/vagrant-lamp.sh
Last active December 22, 2015 09:18
Show Gist options
  • Save lvnilesh/6450616 to your computer and use it in GitHub Desktop.
Save lvnilesh/6450616 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 123 | debconf-set-selections
echo mysql-server-5.5 mysql-server/root_password_again password 123 | 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-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