Skip to content

Instantly share code, notes, and snippets.

@Nav-Appaiya
Created January 4, 2022 21:24
Show Gist options
  • Select an option

  • Save Nav-Appaiya/fb383c1a9c7349565295fd19f2c4b24f to your computer and use it in GitHub Desktop.

Select an option

Save Nav-Appaiya/fb383c1a9c7349565295fd19f2c4b24f to your computer and use it in GitHub Desktop.
Composer 1 and 2 both at the same time on the Server:
cd /home/master/ && wget https://getcomposer.org/download/1.10.17/composer.phar
chmod +x composer.phar
mv composer.phar composer
SSH via Master Credentials and run these commands:Now if you wish to use composer 1 instead of using composer commands like composer install, Kindly run commands as follows for composer 1:
/home/master/composer install
In this way, you will be able to have both Composer 1 and 2 at the same time and don't require to rollback and upgrade again and again.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment