Archive for March 2017

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

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.

Prerequisites
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.