Install composer on Amazon Linux running on EC2

$ cd ~

$ sudo curl -sS https://getcomposer.org/installer | sudo php

$ sudo mv composer.phar /usr/local/bin/composer

$ sudo ln -s /usr/local/bin/composer /usr/bin/composer

then run below command

$ sudo composer install

Leave a Reply