Skip to content

Instantly share code, notes, and snippets.

@taylorlapeyre
Last active December 16, 2015 09:29
Show Gist options
  • Save taylorlapeyre/5413222 to your computer and use it in GitHub Desktop.
Save taylorlapeyre/5413222 to your computer and use it in GitHub Desktop.
Box Details

Every vagrant box starts out as a bare, minimal linux distribution. In our case, this was Ubuntu 12.04 LTS.

This page is a record of every command that was given to this base VM before it was repackaged as the lamp.box that we use. I've also included the vagrant commands used to generate it.

taylorlapeyre: vagrant init precise32
taylorlapeyre: vagrant ssh
# All passwords: "vagrant"

# Initial setup
$ sudo apt-get update
$ sudo apt-get install daemon

# Install & configure Apache
$ sudo apt-get install apache2
$ sudo vi /etc/apache2/httpd.conf                   # append "User vagrant \nGroup vagrant"
$ sudo vi /etc/apache2/mods-enabled/dir.conf        # prepend "index.php" to DirectoryIndex
$ sudo vi /etc/apache2/sites-enabled/000-default    # change AllowOverwrite to "All"
$ sudo a2enmod rewrite
$ sudo service apache2 restart

# Install & configure MySQL
$ sudo apt-get install mysql-server
$ sudo apt-get install libapache2-mod-auth-mysql
$ sudo apt-get install php5-mysql
$ sudo mysql_install_db

# Install & configure PHP
$ sudo apt-get install php5
$ sudo apt-get install libapache2-mod-php5
$ sudo apt-get install php5-mcrypt
$ sudo apt-get install php-apc

# Some extras
$ sudo apt-get install phpmyadmin
$ sudo apt-get install vim

$ sudo service apache2 restart
taylorlapeyre: vagrant package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment