Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Install Composer on Webfaction
cd $HOME
ln -s `which php54` ~/bin/php
export PATH=$HOME/bin:$PATH
curl -sS https://getcomposer.org/installer | php54
echo -e "\n# Composer\nalias composer=\"php54 \$HOME/composer.phar\"" >> $HOME/.bash_profile
source $HOME/.bash_profile
@luismec90

This comment has been minimized.

Show comment Hide comment
@luismec90

luismec90 Aug 26, 2014

It works! thanks a lot!

It works! thanks a lot!

@sebacruz

This comment has been minimized.

Show comment Hide comment
@sebacruz

sebacruz Sep 11, 2014

Thanks man!

Thanks man!

@mnpenner

This comment has been minimized.

Show comment Hide comment
@mnpenner

mnpenner Sep 21, 2014

Awesome! Thank you!

Awesome! Thank you!

@trevorwestca

This comment has been minimized.

Show comment Hide comment
@trevorwestca

trevorwestca Oct 30, 2014

I have returned to this thread twice now for different webfaction accounts. Thanks for doing this.

I have returned to this thread twice now for different webfaction accounts. Thanks for doing this.

@richpolis

This comment has been minimized.

Show comment Hide comment
@richpolis

richpolis Nov 21, 2014

Thank you!

Thank you!

@cesars1687

This comment has been minimized.

Show comment Hide comment
@cesars1687

cesars1687 Dec 1, 2014

Gracias (Y)

Gracias (Y)

@vivianspencer

This comment has been minimized.

Show comment Hide comment
@vivianspencer

vivianspencer Feb 26, 2015

awesome

awesome

@dxii

This comment has been minimized.

Show comment Hide comment
@dxii

dxii Aug 11, 2015

Works perfect.

dxii commented Aug 11, 2015

Works perfect.

@ngstigator

This comment has been minimized.

Show comment Hide comment
@ngstigator

ngstigator Aug 21, 2015

starred. thanks!

starred. thanks!

@PaulKish

This comment has been minimized.

Show comment Hide comment
@PaulKish

PaulKish Aug 31, 2015

Thanks

Thanks

@arandilopez

This comment has been minimized.

Show comment Hide comment
@arandilopez

arandilopez Sep 18, 2015

awesome!!! thank you!!! 👍

awesome!!! thank you!!! 👍

@johnnycho

This comment has been minimized.

Show comment Hide comment
@johnnycho

johnnycho Nov 8, 2015

THANK YOU! This was so helpful!

THANK YOU! This was so helpful!

@lorenzschmid

This comment has been minimized.

Show comment Hide comment
@lorenzschmid

lorenzschmid Jan 1, 2016

Thanks a lot!

Thanks a lot!

@zorobabel

This comment has been minimized.

Show comment Hide comment
@zorobabel

zorobabel Mar 10, 2016

This script is very useful, it worked not only for webfaction. Thanks!

This script is very useful, it worked not only for webfaction. Thanks!

@aricore

This comment has been minimized.

Show comment Hide comment
@aricore

aricore Jul 27, 2016

Thank you!!!

aricore commented Jul 27, 2016

Thank you!!!

@graphikjunkie

This comment has been minimized.

Show comment Hide comment
@graphikjunkie

graphikjunkie Feb 18, 2017

Couldn't find this anywhere in the webfaction documentation. Thanks!

Couldn't find this anywhere in the webfaction documentation. Thanks!

@dhigby

This comment has been minimized.

Show comment Hide comment
@dhigby

dhigby Feb 19, 2017

Thanks so much!!!
I replaced all php references with php70 and it worked great!

dhigby commented Feb 19, 2017

Thanks so much!!!
I replaced all php references with php70 and it worked great!

@rameyrobo

This comment has been minimized.

Show comment Hide comment
@rameyrobo

rameyrobo Feb 20, 2017

@dhigby

Thank you for that comment. I was racking my brain trying to get some php7 dependencies to work. I can verify that replacing instances of php54 with php70 did work.

@dhigby

Thank you for that comment. I was racking my brain trying to get some php7 dependencies to work. I can verify that replacing instances of php54 with php70 did work.

@pjrobertson

This comment has been minimized.

Show comment Hide comment
@pjrobertson

pjrobertson Jun 26, 2017

A few small updates:

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/bin/composer.phar\"" >> $HOME/.bash_profile
source $HOME/.bash_profile

A few small updates:

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/bin/composer.phar\"" >> $HOME/.bash_profile
source $HOME/.bash_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment