Skip to content

Instantly share code, notes, and snippets.

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 faiyazalam/8156ead00057cebf67a38c9ced17f003 to your computer and use it in GitHub Desktop.
Save faiyazalam/8156ead00057cebf67a38c9ced17f003 to your computer and use it in GitHub Desktop.
How to run composer with a specifig PHP version on cPanel?
syntax:
COMPOSER_MEMORY_LIMIT=-1 php-path composer-path update
example:
1) COMPOSER_MEMORY_LIMIT=-1 ea-php72 /opt/cpanel/composer/bin/composer update
2) COMPOSER_MEMORY_LIMIT=-1 /opt/cpanel/ea-php72/root/usr/bin/php /opt/cpanel/composer/bin/composer update
@faiyazalam
Copy link
Author

composer update should not run with sudo.
So change user and then run composer update.

su - username

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