Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Think you mean Ubuntu 16.04
Not: Prerequisites For this tutorial, you will need:
A system running Ubuntu 14.04
sudo apt-get install curl php-cli php-mbstring git unzip
that command fails on a fresh ubuntu 16.04 VM. There is no php-cli (there is php5-cli) and there is no php-mbstring (nor is there a php5-mbstring).
do this command after u install php 5 or 7
sudo apt-get install -y php libapache2-mod-php php-cli php-zip php-mbstring php-mcrypt php-mysql php-xml
work good
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
The composer hash in this article is out of date so the line below will only return, “Installer corrupt”.
php -r "if (hash_file('SHA384', 'composer-setup.php') === '92102166af5abdb03f49ce52a40591073a7b859a86e8ff13338cf7db58a19f7844fbc0bb79b2773bf30791e935dbd938') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
To fix it, you’ll need the current hash from the original site, https://getcomposer.org/download/
root@ssss:~# composer Do not run Composer as root/super user! See https://getcomposer.org/root for details
php -r "if (hash_file('SHA384', 'composer-setup.php') === '92102166af5abdb03f49ce52a40591073a7b859a86e8ff13338cf7db58a19f7844fbc0bb79b2773bf30791e935dbd938') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
May be Hashing is out of date … always returns installer corrupt
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
this also seems to have some problem , below code worked for me
sudo php installer --install-dir=/usr/local/bin --filename=composer
When installing a project that already contains a composer.json file, you need to run composer install in order to download the project's dependencies.
You mean composer.lock here? As you need to run update for the json, install for the lock.
hello,
i runned
sudo apt-get install curl php-cli php-mbstring git unzip accidentally . how can i remove this files ?
thank you.
I created an account just for this <3 First I wanted to say thank you for providing all the install-by-composer instructions in an easier to read form! I also wanted to point out that the SHA hash verification has changed and the one provided on this page does not work. Information taken from “http://learn.elgg.org/en/stable/intro/install.html” may help:
cd /path/to/wwwroot/ composer self-update composer global require “fxp/composer-asset-plugin:~1.3” composer create-project elgg/starter-project:dev-master . composer install composer install # 2nd call is currently required
Do consider where to specify where to create the elgg project. For example I would change “composer create-project elgg/starter-project:dev-master .” to something like: composer create-project elgg/starter-project:dev-master /var/www/newelgginstall
Please note that if this doesn’t work: sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer Try also doing this: Please note that if this sudo php composer-setup.php --install-dir=/usr/bin --filename=composer (I changed the install directory from /usr/local/bin to /usr/bin [it will not hurt to have it installed in both places])
Now it would be wise to merge the mod directory from the install folder to the mod directory that was specified during creation above with this command: rsync -r /path/from/installer/mod/ /path/to/finalized/mod/ (both trailing “/” are required here)
I believe that is all I have to add. Sorry it’s kinda all over the place. Thanks again DigitalOcean! I love your tutorials!!!