Skip to content

Instantly share code, notes, and snippets.

@techies23
Forked from Rarst/siteground-composer.md
Created March 13, 2023 10:21
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 techies23/67efc18fbaa7f16cbff32a9f15d84a9c to your computer and use it in GitHub Desktop.
Save techies23/67efc18fbaa7f16cbff32a9f15d84a9c 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