Skip to content

Instantly share code, notes, and snippets.

@aalfiann
Created September 3, 2019 12:41
Show Gist options
  • Save aalfiann/5ec4fe415ae4c6b8ddd79bffdcd33070 to your computer and use it in GitHub Desktop.
Save aalfiann/5ec4fe415ae4c6b8ddd79bffdcd33070 to your computer and use it in GitHub Desktop.
Install composer xampp ubuntu 18

Install composer like so:

sudo curl -s https://getcomposer.org/installer | /opt/lampp/bin/php

After installation, you should then symlink it by running command:

sudo ln -s /opt/lampp/bin/php /usr/local/bin/php

Then run the command below to allow the 'composer' command to be run globally (this will be run from within the folder where you've just installed composer in which a composer.phar file has just been created):

sudo mv composer.phar /usr/local/bin/composer
@Henrique-Miranda
Copy link

thanks

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