Install the necessary packages if they are missing
# sudo apt install curl php-cli php-mbstring git unzip
# curl -sS https://getcomposer.org/installer -o composer-setup.php
To perform a global composer installation, type:
# sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
This command will download the Composer manager package and install it globally in / usr / local / bin, after which the public composer command will appear on the system. Do not run Composer as root/super user! Run with normal user. The output will look like this:
$ composer ______ / ____/___ ____ ___ ____ ____ ________ _____ / / / __ / __ `__ / __ / __ / ___/ _ / ___/ / /___/ /_/ / / / / / / /_/ / /_/ (__ ) __/ / ____/____/_/ /_/ /_/ .___/____/____/___/_/ /_/ Composer version 1.9.0 2019-08-02 20:55:32 Usage: command [options] [arguments]
Similar Posts:
- How to install multiple PHP versions on VestaCP
- install drupal 8 with composer
- Install Drupal 8 via composer
- How to change Drupal core files
- How to install phpMyAdmin with nginx on Debian 11
1,092