Skip to content

Instantly share code, notes, and snippets.

@h3nn3s
Forked from gthln/gist:8401080
Last active November 23, 2016 09:49
Show Gist options
  • Save h3nn3s/5071939327876e7328c5711951101066 to your computer and use it in GitHub Desktop.
Save h3nn3s/5071939327876e7328c5711951101066 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-56LATEST-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 1.2.2 2016-11-03 17:43:15

Your version will probably differ.

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