Skip to content

Instantly share code, notes, and snippets.

@asugai
Last active March 22, 2024 03:37
Show Gist options
  • Save asugai/6694502 to your computer and use it in GitHub Desktop.
Save asugai/6694502 to your computer and use it in GitHub Desktop.
Install composer on Amazon AMI 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 you can run
$ sudo composer install
@khuffsmp
Copy link

Thanks, can't count the number of times I've used this.

@mukeshdevmurari
Copy link

Thank you. It Worked.

@ImAkPatil
Copy link

Thanks 👍

@leandroribeiro
Copy link

Thanks! 👍

@nishankkumar1994
Copy link

Thanks.

@kevin1193
Copy link

cool

@LondonWebFactory
Copy link

I'm on AMI Linux 2 and I got:

To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section

when I ran

sudo composer install

@anikolaienko
Copy link

Thank you, works

@juanmanuel-wasi
Copy link

Thanks, It worked like a charm

@ajbazz
Copy link

ajbazz commented Apr 23, 2019

Genius!

@Mathieeusl
Copy link

not working thx

@abelvh
Copy link

abelvh commented Oct 17, 2019

It worked thanks. Although it is necessary to mention that you run "compose install" from the project directory

@fpultera
Copy link

Thanks!

@pankaj-torinit
Copy link

Thanks!!

@mikenk2010
Copy link

work like a charm

@adamcrampton
Copy link

Legend, thank you 🔥

@eduanmoldeep
Copy link

Thanks, Champ! Worked well and surprisingly Simple.

@fadilxcoder
Copy link

Thank you.

@Plinsboorg
Copy link

Thanks.

@Shashi99rocky
Copy link

Than u

@siddharth-prajapati
Copy link

thank you.. this helped a lot

@viraljetani
Copy link

Worked for me as well.. Thanks a lot.!

@JohnRamon
Copy link

Perfect TY 😄

@Expertweblancer
Copy link

Thanks

@prodev711
Copy link

Thanks

@joshu-aa
Copy link

Thanks brooo!

@rightpay22
Copy link

thanks

@Barr1ga
Copy link

Barr1ga commented Sep 5, 2023

Thank you

@teddzyb
Copy link

teddzyb commented Sep 5, 2023

much appreciated

@krisyam
Copy link

krisyam commented Sep 10, 2023

Thanks man! Appreciate the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment