Installing Composer

Table of Contents

  1. Installation

MageStack natively supports Composer, you can install and run composer in the conventional way for Linux for a global installation.

Installation

Composer is installed globally using the default installation method.

cd /home/www-data
curl -sS https://getcomposer.org/installer | php
chmod +x composer.phar

If you want to make the binary available to all users, you should use the root account to copy it to /usr/local/bin/ directory.

su -l root
mv /home/www-data/composer.phar /usr/local/bin/composer
exit

Then you can access composer using the composer binary name.