User Tools

Site Tools


sandbox:install-composer

CentOS install composer

To install composer run these commands:

cd /tmp
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php --install-dir=/usr/local/bin --filename=composer
php -r "unlink('composer-setup.php');"

Composer in cagefs

Create the file /etc/cagefs/conf.d/composer.cfg and add the following contents:

[composer]
comment=Composer
paths=/usr/local/bin/composer

Run the following command to add composer to every user.

cagefsctl --force-update
sandbox/install-composer.txt · Last modified: 2018/07/11 10:47 by dreiggy