Skip to content

Instantly share code, notes, and snippets.

@sachbearbeiter
Forked from gthln/gist:8401080
Last active August 29, 2015 14:14
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 sachbearbeiter/40968d1ffa961618947b to your computer and use it in GitHub Desktop.
Save sachbearbeiter/40968d1ffa961618947b to your computer and use it in GitHub Desktop.

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.

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