Skip to content

Instantly share code, notes, and snippets.

@justinlevi
Forked from matthewpizza/install-composer.sh
Last active June 1, 2016 14:35
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 justinlevi/1df07019908c773eeb56d32d91dc3e92 to your computer and use it in GitHub Desktop.
Save justinlevi/1df07019908c773eeb56d32d91dc3e92 to your computer and use it in GitHub Desktop.
Install Composer on Webfaction
cd $HOME
ln -s `which php56` ~/bin/php
export PATH=$HOME/bin:$PATH
curl -sS https://getcomposer.org/installer | php56
echo -e "\n# Composer\nalias composer=\"php56 \$HOME/composer.phar\"" >> $HOME/.bash_profile
echo -e "\n# Load $HOME/bin\nexport PATH=$HOME/bin:$PATH" >> $HOME/.bash_rc
composer global require drush/drush
ln -s ~/.composer/vendor/drush/drush/drush ~/bin/composer
export DRUSH_PHP=$(which php56)
source $HOME/.bash_profile
source $HOME/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment