Created
November 30, 2013 09:28
-
-
Save jpetitcolas/7717020 to your computer and use it in GitHub Desktop.
Vagrant bootstraping script for PHP project
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 | |
# 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