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