Skip to content

Instantly share code, notes, and snippets.

@gthln
Created January 13, 2014 14:23
Show Gist options
  • Star 32 You must be signed in to star a gist
  • Fork 9 You must be signed in to fork a gist
  • Save gthln/8401080 to your computer and use it in GitHub Desktop.
Save gthln/8401080 to your computer and use it in GitHub Desktop.
Install Composer on Managed Hosting at Domainfactory

Install Composer on Managed Hosting at Domainfactory

Step 1:

Log in to your Managed Hosting Server via SSH

Step 2:

Add these two lines to .bashrc:

alias php5cli='/usr/local/bin/php5-54LATEST-CLI'
alias composer='php5cli ~/composer.phar'

Step 3:

Reload .bashrc with

$ source .bashrc

Step 4:

Install Composer with

$ curl -sS https://getcomposer.org/installer | php5cli

Step 5:

Done.

Check the installation with

$ composer -V

You should see something like this

Composer version 99f5b5a2383604d73c23aac19cea91a6b047171f 2014-01-12 20:13:00

Your version will probably differ.

@akger1379
Copy link

Great! Works perfectly. Thx

@tantebootsy
Copy link

Yes, thx a lot! For newer T3-versions use "alias php5cli='/usr/local/bin/php5.6.6-cli'" or newer.

@marsium
Copy link

marsium commented Aug 13, 2016

Like!

Copy link

ghost commented Sep 14, 2016

For me works this:

  1. curl -sS https://getcomposer.org/installer
  2. php56 composer.phar require package/name

package/name is the path and of github package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment