Skip to content

Instantly share code, notes, and snippets.

@wesamly
Created February 28, 2017 10:52
Show Gist options
  • Save wesamly/44c6067a34d331d91691bf75a156954e to your computer and use it in GitHub Desktop.
Save wesamly/44c6067a34d331d91691bf75a156954e to your computer and use it in GitHub Desktop.
composer on cpanel shared hosting with ssh access
#Add at the top after # .bashrc
[ -z "$PS1" ] && return
#Add at the bottom
alias mycomposer="/usr/bin/php-cli -d suhosin.executor.include.whitelist=phar /home/userdir/bin/composer.phar"
@wesamly
Copy link
Author

wesamly commented Feb 28, 2017

Taken from this SO answer: http://stackoverflow.com/a/29436655/249645

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