Skip to content

Instantly share code, notes, and snippets.

@jpetitcolas
Created November 30, 2013 09:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpetitcolas/7717020 to your computer and use it in GitHub Desktop.
Save jpetitcolas/7717020 to your computer and use it in GitHub Desktop.
Vagrant bootstraping script for PHP project
#!/usr/bin/env bash
# Install common environment
apt-get update
apt-get install -y curl
# Install Git and configure it (useful when working on Windows)
apt-get install -y git-core
git config --global color.ui auto
git config --global core.filemode false
# Install Composer
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/
ln -s /usr/local/bin/composer.phar /usr/local/bin/composer
# Install Apache2 + PHP and change directory index
apt-get install -y apache2 php5 git-core
rm -rf /var/www
ln -fs /vagrant/web /var/www
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment