Summary
- How to install composer on a new droplet running Ubuntu 14.04.
Installing composer on a Digital Ocean droplet is a pretty straight forward process and only needs a few commands. Log in to your droplet.
First, update you package manager:
1 2 3 |
sudo apt-get update |
Install cURL:
1 2 3 |
sudo apt-get install curl php5-cli git |
You’ll be asked if you want to use the extra space, type ‘yes’ and hit enter.
Finally, install composer:
1 2 3 |
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer |
You should now be able to just type ‘composer’ and see the list of available commands.