Tag Archive for MAgento

How to Install Magento 2 on Ubuntu (16-04 or 16-10)

I’m sharing with you this post ,which guide you how to install Magento on Ubuntu 16.x.
Magento 2 of Community Edition (CE) is a free, open-source e-commerce platform.

Before You Start:

#Install and configure LAMP

#Install and configure Composer

#Validate current configuration as per magento System Requirements

My dev machine Configuration are :

Linux Ubuntu 16.10.x

Php 7.0.x

Mysql 5.0.12.x

Composer 1.4.x

 

Install via GitHub

First we must clone Magento repo from here: https://github.com/magento/magento2 or you can download releases on https://github.com/magento/magento2/releases

Create empty directory and run:

After deploying has been finished, run:

 

Update Write permission: 

Below directory should be writable,

generated, var, pub

 

Install Magento 2 : My setup configuration was looks like this:

Change your base-url, db-name, db-password, admin-email, admin-password to match your local setup.

Update VirtualHost Configuration : 

Open the apache2.conf file and AllowOverride all for Directory permission.

 

Enable Debug and error :

Open index.php and add below code on top :

 

REINDEX DATA: 

 

More About Re-index Data : Click here 

 

Final View: 

magento2-home

 

 

magento2-admin-home

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.

Prerequisites
For this post, you will need:

A system running Ubuntu 16.04

LAMP

Magento2

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.