How To Install Composer on Ubuntu Server (16-04 or 16-10)

Composer is a popular tool for dependency management  which is widely used by PHP .Composer will check which other packages a specific project depends on and install them for you, using the appropriate versions according to the project requirements.

For this post, you will need:

A system running Ubuntu 16.04 or 16.10
Access to the server as a regular user with sudo permission

Update and Installing the Dependencies:

Update the package manager with below Cli:


Install curl in order to download Composer php-cli or installing and running it.Install php-mbstring package is necessary to provide functions for a library we’ll be using. git is used by Composer for downloading project dependencies, and unzip for extracting zipped packages.


Downloading and Installing Composer:


Verify that the installer matches the SHA-384 hash :

Now install composer globally via below Cli:


Validate the  installation, run:


This means Composer was successfully installed on your system.







Reindex Magento 2 – Command Line Indexer

Magento 2.0 system automatically saves the changes and updates the system.The changes may include anything starting from adding a new category, new products, new catalog, changes in the cost and similarly other data. Magento 2 is not so hard for the expert.  Unlike Magento 1 it’s not allowing for manual re index. Magento 2 is allow auto  re-index in admin panel for below action.

1. Update on Save.
2. Update by schedule via CRON job.

Magento 2 is tightly coupled with command line interface. The more you use Magento 2 ,the more you’ll know Cli or SSH.

For this post, you will need:

A system running Ubuntu 16.04



Magento 2 re-index via command line:
Go to root directory of Magento from terminal (Linux, window etc.)


1. Get list of available indexer in Magento 2 :


2. Get status of Magento 2 indexer :

Below command will get you the status of all the indexer whether indexing is required or ready.


3.Get individual indexer status


4. Reindex all Magento 2 indexer :


Note :  On windows machine using command prompt you need to run command using php installed or using php.exe path.