Skip to content

Instantly share code, notes, and snippets.

@damashe
Forked from Rarst/siteground-composer.md
Created March 9, 2018 03:17
Show Gist options
  • Save damashe/c12e3167172c5e05000b80c8310b3a08 to your computer and use it in GitHub Desktop.
Save damashe/c12e3167172c5e05000b80c8310b3a08 to your computer and use it in GitHub Desktop.

How to get Composer running on SiteGround shared

  1. Download getcomposer.org/composer.phar to your account's home directory — /home/username.
  2. Edit .bashrc file in same directory by adding alias composer='/usr/local/php56/bin/php-cli ~/composer.phar' line. Update php56 part to current relevant version, if necessary.
  3. Restart SSH session or run source ~/.bashrc to reload config.
  4. Use composer command!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment