Skip to content

Instantly share code, notes, and snippets.

@leonardostefani
Last active January 15, 2021 01:50
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 leonardostefani/2bbfce63a4e7b58b40d08732789f9b04 to your computer and use it in GitHub Desktop.
Save leonardostefani/2bbfce63a4e7b58b40d08732789f9b04 to your computer and use it in GitHub Desktop.
Composer Hostgator
mkdir ~/bin
echo -e '\nPATH=/opt/cpanel/ea-php73/root/usr/bin:$PATH\n' >> ~/.bashrc
echo -e '\nPATH=~/bin:$PATH\n' >> ~/.bashrc
source ~/.bashrc
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php composer-setup.php --install-dir=$(eval echo ~$USER)/bin --filename=composer
php -r "unlink('composer-setup.php');"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment