Created
October 25, 2013 07:16
-
-
Save andreasklinger/7150656 to your computer and use it in GitHub Desktop.
CakeResque
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
apt-get update | |
apt-get -y upgrade | |
# Install Apache2 | |
apt-get -y install apache2 | |
# Install PHP5 support | |
apt-get -y install php5 libapache2-mod-php5 php5-mysql | |
# PHP Extensions | |
apt-get -y install php5-mysql php5-curl php5-gd | |
apt-get -y install libcurl4-openssl-dev | |
# Create symlink for synced path | |
rm -rf /var/www/* | |
ln -fs /vagrant /var/www/default | |
# Restart services | |
/etc/init.d/apache2 restart | |
# upgrade php to version 5.3.27 via dotdeb for resque | |
gpg --keyserver keys.gnupg.net --recv-key 89DF5277 | |
gpg -a --export 89DF5277 | sudo apt-key add - | |
echo "deb http://packages.dotdeb.org squeeze all" >> /etc/apt/sources.list | |
apt-get update | |
apt-get -y upgrade php5 | |
apt-get -y install redis-server | |
apt-get -y install php5-mcrypt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "squeeze64" | |
config.vm.box_url = "http://puppet-vagrant-boxes.puppetlabs.com/debian-607-x64-vbox4210.box" | |
config.vm.provision :shell, :path => "setupvm.sh" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment