Skip to content

Instantly share code, notes, and snippets.

@webcultist
Forked from gthln/gist:8401080
Last active April 25, 2018 09:48
Show Gist options
  • Save webcultist/7eedfc7875b9f6e77e64c51540d91311 to your computer and use it in GitHub Desktop.
Save webcultist/7eedfc7875b9f6e77e64c51540d91311 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 a hidden binary folder in root and add a symlink to a more up-to-date php version

cd ~/
mkdir .bin && cd .bin
ln -s /usr/local/bin/php5.6.2-cli php
cd ~/
source .zshrc

Step 3:

Add the new binary folder to the PATH Variable

echo "export PATH="\'"$HOME/.bin:\$PATH"\' >> .zshrc

Step 4:

Reload .zshrc with

source .zshrc

Step 4:

Install Composer with

curl -sS https://getcomposer.org/installer | php

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