This is a collection of shell scripts I am using setting up a LAMP vagrant box with debian squeeze.
Squeeze can be obtained @ http://www.vagrantbox.es/
Updates apt with the file within etc/apt/sources.list
.
Installs apache2, php5, mysql-server, mysql-client, openssl, php-pear, pecl_http, sendmail, mod_rewrite, ssl.
Installs the nfs client. Required when using the vagrant NFS setting.
Installs phpmyadmin with pre-answers questions.
Sets up wkhtmltopdf. The binary should be placed in
opt/wkhtmltopdf/wkhtmltopdf
http://code.google.com/p/wkhtmltopdf/
Installs sphinx(search) with a custom configuration file
etc/sphinxsearch/sphinx.conf
. Make sure you edit this file.
Will also copy an updated etc/default/sphinxsearch
file so sphinx will
automatically start on booting the box.
Cleans up downloaded packages.
Vagrant::Config.run do |config|
config.vm.provision :shell, :inline => "sh /vagrant/update-package-manager.sh; sh /vagrant/install-nfs.sh; sh /vagrant/install-lamp.sh; sh /vagrant/install-phpmyadmin.sh; sh /vagrant/install-wkhtmltopdf.sh; sh /vagrant/install-sphinx.sh; sh /vagrant/cleanup.sh;"
end