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
  • Select an option

  • Save smitty1eGH/8660637 to your computer and use it in GitHub Desktop.

Select an option

Save smitty1eGH/8660637 to your computer and use it in GitHub Desktop.

Revisions

  1. @chrisyip chrisyip created this gist May 8, 2013.
    20 changes: 20 additions & 0 deletions vagrant-lamp.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    #!/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