Installing Composer for Drupal On Linux

Veröffentlicht am: 23 April 2022
auf dem Kanal: Easy Drupal
1,060
8

You can ask me for help with your Drupal site using my Fiverr gig here https://bit.ly/3yBWLWC

Please support the channel by using my eBay search website https://shopoftheworld.com its a Drupal site that is powered by eBay APIs and offers faster searching and filtering, its quite fun. Thanks


How to install composer on Linux so that you can use it to install Drupal and its dependencies.

Commands you will need

To install PHP and the bits you will need going forward (pre-requisites)

apt-get update
apt-get install php
apt-get install zip
apt-get install unzip
apt-get install git

To install composer follow the commands below - for the latest hash you must visit https://getcomposer.org/download/

like this

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '906a84df04cea2aa72f40b5f787e49f22d4c2f19492ac310e8cba5b96ac8b64115ac402c8cd292b8a03482574915d1a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"

And then move composer to somewhere in your path like this sudo mv composer.phar /usr/local/bin/composer

You may or may not need SUDO to complete this

Any questions leave a comment and I can update the description if I have something wrong

I am a UK based Drupal consultant with 10+ years experience of Drupal 7, 8 and 9 configuration, development and environment architecture.

Available for contract or maintenance work drop me a message below if interested or use my Fiverr gig to send a request for help https://www.fiverr.com/share/L9EdW4


Auf dieser Seite können Sie das Online-Video Installing Composer for Drupal On Linux mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Easy Drupal 23 April 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 1,060 Mal angesehen und es wurde von 8 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!