Magento 2 Ubuntu 16.04 Installation Guide

April 19, 2018 | By the+gnu+linux+evangelist | Filed in: Tutorial.

Magento 2 Ubuntu 16.04 Install

You are Welcome! The Tutorial Shows You Step-by-Step How to Install Magento Community in Ubuntu 16.04 Xenial LTS GNU/Linux.

And Magento for Ubuntu 16.04 is an out-of-the-box e-commerce platform with many features, such as catalog navigation, promotion rules, RSS feeds, product search, product tags, product reviews, tax rules, reports, and order management.

Especially relevant: Magento Ubuntu 16.04 Installation has a series of peculiar Software Requirements like only some PHP 5-7 Versions.

So First, you have to follow the Included instructions on How to Install PHP 7.0 on Ubuntu 16.04 GNU/Linux.

Furthermore, if you want a Demo Quick Start Store it’s Best to Install Magento Sample Data after the Platform Using PHP Composer how described on the Linked Guide here Below.

Finally, and very significative, if you plan to Build a Web Commerce you find infos on How to Make Valid SSL Certificate for Free.

Magento 2 Ubuntu 16.04 Installation Guide - Featured
  1. 1. Launching Shell Session

    Or on Desktop Open a Terminal window
    Ctrl+Alt+t on Ubuntu
    (Press “Enter” to Execute Commands)

    Magento 2 Ubuntu 16.04 Installation Guide - Open Terminal Shell Emulator
  2. 2. Installing LAMP

    How to Install LAMP on Ubuntu GNU/Linux

    Get LAMP PHP 7.0 + Virtual Host Setup Guide

    In this Example we Install Magento as a magento.local Virtual Host.
    To Setup a Custom Domain modify this Domain Accordly!

  3. 3. Installing Required Packages

    Again Install Required PHP 7 Extensions

    sudo apt install php7.0-cli php7.0-curl php7.0-dom php7.0-gd 
    php7.0-intl php7.0-mbstring php7.0-mcrypt php7.0-mysql 
    php7.0-soap php7.0-zip php-pear
  4. 4. Increasing PHP Memory

    Follow to Increase the PHP 5 Memory Limit

    sudo nano /etc/php5/apache2/php.ini

    Set the Memory Limit to At Lest 512mb!

    memory_limit = 512M

    Ctrl+w to Search…
    And Ctrl+x to Save & from nano Editor :)

  5. 5. Enabling Apache Mod Rewrite

    Next Enable Apache 2 mod_rewrite module

    sudo a2enmod rewrite

    And Restart Apache 2 to Load Setup:

    sudo service apache2 restart
  6. 6. Setting Up Magento Database

    So Now Make Magento MySQL Database

    mysql -u root -p

    Login with the MySQL ‘root’ Password.
    And Enter the following commands at the mysql> Prompt.

    create database magento;
    GRANT USAGE ON *.* TO magento@localhost IDENTIFIED BY '[PASSWORD]';

    Set a Password for the magento User!

    GRANT ALL ON magento.* TO magento@localhost;

    Here we make a ‘magento’ DB with a ‘magento’ Admin.
    However in Production for Security it’s suitable to Set an Admin’s Name other than that…

  7. 7. Downloading Magento 2

    Download Magento 2 for Ubuntu GNU/Linux

    Get Magento 2 Community for Ubuntu

    Here I describe How to Install Magento without Sample Data.
    For Data Installation see instructions included on Bottom.
    In Firefox if prompted Choose ‘Open with Archive Manager’.

  8. 8. Extracting Magento

    Then Extract Mangento 2 Archive into /tmp/
    If not Automatically Open then simply Double-Click on it:

    Magento 2 Ubuntu 16.04 Installation Guide - Extraction

    Or from Shell:

    tar xvzf ~/Downloads/magento-2*tar.gz -C /tmp/
  9. 9. Relocating Magento

    Again Relocate Mangento 2 Stuff

    sudo mv /tmp/magento-2* /var/www/html/magento
  10. 10. Fixing Permissions

    By default the Apache 2 Web Hosts has to be Assigned to the ‘www-data’ Entity

    cd /var/www/html/magento
    sudo chown -R www-data:www-data .

    Furthermore, we Assign the Right Permissions to Directories and Files:

    sudo find . -type d -exec chmod 775 {} \;
    sudo find . -type f -exec chmod 664 {} \;
  11. 11. Installing Magento 2

    Running Magento Web UI Installer.

    Point Browser to:

    Click on Agree to Test if Requirements are meet:

    Magento 2 Ubuntu 16.04 Installation Guide - Welcome
    Magento 2 Ubuntu 16.04 Installation Guide - Rediness

    Then Configure Database Access:

    Magento 2 Ubuntu 16.04 Installation Guide - Database Configuration
    Set the Web UI Base URL & Options:
    Magento 2 Ubuntu 16.04 Installation Guide - Web Config

    Then Customize the Web Store:

    Magento 2 Ubuntu 16.04 Installation Guide - Customize Store

    Create an Admin Account:

    Magento 2 Ubuntu 16.04 Installation Guide - Create Admin Account

    Click on Install to Start with Magento 2 Setup:

    Magento 2 Ubuntu 16.04 Installation Guide - Start Installation
    Wait patiently while Magento Platform is Installed:
    Magento 2 Ubuntu 16.04 Installation Guide - Installing

    And in Few Time Magento will be Successfully Installed on Ubuntu.

    Magento 2 Ubuntu 16.04 Installation Guide - Success

    Congratulations! :)

  12. 12. Installing Magento Sample Store

    How to Install Magento 2 Sample Data on Ubuntu GNU/Linux

    Get Magento 2 Sample Data Installation Guide
  13. 13. Installing SSL Certificate

    How to Make and Install SSL Cerfitificate fro Free

    Get SSL Cerfitificate Setup
  14. So Now I’m truly Happy if My Guide could Help You to Install Magento 2 Ubuntu on 16.04!

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

QuickChic Theme • Powered by WordPress