Skip to content

Instantly share code, notes, and snippets.

@gseilheimer
Forked from gthln/gist:8401080
Created February 7, 2019 07:00
Show Gist options
  • Save gseilheimer/b0cff0f5adab063813cab7e710b43473 to your computer and use it in GitHub Desktop.
Save gseilheimer/b0cff0f5adab063813cab7e710b43473 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.

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