Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Magento 2 Beginners Guide
Magento 2 Beginners Guide

Magento 2 Beginners Guide: Discover what you need to know to build your own profitable online stores using the power of Magento 2!

eBook
$9.99 $39.99
Paperback
$48.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Magento 2 Beginners Guide

Chapter 2. Installation

In this chapter, we will cover the tasks related to installing Magento 2 in a Linux server, including the following ones:

  • Setting up an AWS server
  • Installing PHP
  • Installing MySQL
  • Installing Magento dependencies
  • Creating a custom domain for the server
  • Setting up GIT for version control
  • Setting the right permissions for the server

System requirements for Magento 2

Before moving forward with the installation, we should review the system requirements for Magento 2 to ensure that the environment is correct for Magento to run properly.

The following are the system requirements for Magento 2:

  • Operating System:
    • Linux

  • Web servers:
    • Apache 2.2 or 2.4
    • nginx 1.8

  • Database:
    • MySQL 5.6 or
    • MySQL 5.7 (Magento 2.1.2 or above) or
    • MariaDB or
    • Percona

  • PHP:
    • PHP 5.6 and later. PHP 7.0.2, 7.0.4, 7.0.6-7.0.x (Magento 2.1.2 and later)
    • PHP 7.0.2, 7.0.6-7.0.x (all Magento 2.1.x versions)
    • PHP 5.6.x (Magento 2.1.0)

  • Required PHP extensions:
    • BC Math
    • curl
    • GD, ImageMagick 6.3.7 (or later), or both
    • intl
    • mbstring
    • Mcrypt
    • Mhash
    • OpenSSL
    • PDO/MySQL
    • SimpleXML
    • OPCache
    • SOAP
    • xml
    • XSL
    • Zip
    • JSON (PHP 7 only)
    • iconv (PHP 7 only)

  • PHP Dependency Manager:
    • Composer

  • SSL:
    • Valid security certificate (required for HTTPS)
    • Transport Layer Security (TLS) requirement

  • Mail Server:
    • Mail Transfer Agent (MTA) or SMTP server

  • Optional:
    • Redis 3.0
    • Varnish 3.5 or latest stable 4.x version
    • Memcached
    • Xdebug
    • PHPUnit...

Local installation in your computer

In this section, we will review the general process to set up Magento with sample data in your local computer. In the next two sections, we will review the process of choosing the right hosting provider and set up a server to install Magento from scratch.

Taking that into consideration, we will assume that you have PHP 7 and MySQL running in your local machine and all the dependencies listed in the previous section as well.

Besides that, you should have your virtual host for the local instance already created (that is, http://magento2-playground.dev), the hosts file with the new entry for the local Magento instance (127.0.0.1 magento2-playground.dev), and an empty database.

Getting the Magento code base

The first step is to get the latest version of the Magento code base. In order to do that, you should visit the Magento download page (https://magento.com/tech-resources/download) and choose the latest version of Magento:

Getting the Magento code base

In order to have products, categories, and other useful information for our local Magento installation, we will choose the latest version from the Full Release with Sample Data (ZIP with sample data) section:

Getting the Magento code base

Once you download the file, you should uncompress it in the document root of your local machine.

After uncompressing the file, you should see a similar output to the following screenshot:

Getting the Magento code base

Now, we have the code base in place to move ahead with the installation.

There are two ways of installing Magento:

  • Setup Wizard installation
  • Command-line installation

Setup Wizard installation

The Setup Wizard is a simple installation process that is performed from the browser.

In order to install Magento using the Setup Wizard,...

How to choose the right hosting provider

Magento is a big platform with a huge community that provides all the services that you need, from design and development to hosting for the store.

The advantage when there is a big community behind a product is that you get specialized professionals who can help resolve your problems.

It is an advantage that you can use to ensure that your Magento store is always in good shape and that you are ready to resolve emergencies, if necessary.

That being said, it's really important to choose the right server for the Magento store. There are two types of servers that hosting providers offer:

  • Managed servers
  • Self-managed server

Managed servers

Managed servers are managed by the hosting provider. This means that the hosting provider is in charge of keeping the server up and running.

If there is any problem related to the server, you can create a ticket on the helpdesk of the hosting provider.

When you choose this type of server, you should...

System requirements for Magento 2


Before moving forward with the installation, we should review the system requirements for Magento 2 to ensure that the environment is correct for Magento to run properly.

The following are the system requirements for Magento 2:

  • Operating System:

    • Linux

  • Web servers:

    • Apache 2.2 or 2.4

    • nginx 1.8

  • Database:

    • MySQL 5.6 or

    • MySQL 5.7 (Magento 2.1.2 or above) or

    • MariaDB or

    • Percona

  • PHP:

    • PHP 5.6 and later. PHP 7.0.2, 7.0.4, 7.0.6-7.0.x (Magento 2.1.2 and later)

    • PHP 7.0.2, 7.0.6-7.0.x (all Magento 2.1.x versions)

    • PHP 5.6.x (Magento 2.1.0)

  • Required PHP extensions:

    • BC Math

    • curl

    • GD, ImageMagick 6.3.7 (or later), or both

    • intl

    • mbstring

    • Mcrypt

    • Mhash

    • OpenSSL

    • PDO/MySQL

    • SimpleXML

    • OPCache

    • SOAP

    • xml

    • XSL

    • Zip

    • JSON (PHP 7 only)

    • iconv (PHP 7 only)

  • PHP Dependency Manager:

    • Composer

  • SSL:

    • Valid security certificate (required for HTTPS)

    • Transport Layer Security (TLS) requirement

  • Mail Server:

    • Mail Transfer Agent (MTA) or SMTP server

  • Optional:

    • Redis 3.0

    • Varnish 3.5 or latest stable 4.x version

    • Memcached

    • Xdebug

    • PHPUnit...

Local installation in your computer


In this section, we will review the general process to set up Magento with sample data in your local computer. In the next two sections, we will review the process of choosing the right hosting provider and set up a server to install Magento from scratch.

Taking that into consideration, we will assume that you have PHP 7 and MySQL running in your local machine and all the dependencies listed in the previous section as well.

Besides that, you should have your virtual host for the local instance already created (that is, http://magento2-playground.dev), the hosts file with the new entry for the local Magento instance (127.0.0.1 magento2-playground.dev), and an empty database.

Left arrow icon Right arrow icon

Key benefits

  • Set up and manage your very first online store with a friendly and engaging approach using Magento 2
  • Create your own shipping rates matrix and connect to shippers such as UPS, FedEx, and USPS
  • Create reports to track store sales, customer activity, and statistics

Description

Do you have a good product to sell but need your start-up to sell it to your potential customers the right way? Were you unhappy with what Magento 1 had to offer and are looking forward to trying out what Magento 2 provides? If either of these questions ring a bell, then this book is for you! You'll start by getting a general understanding of what Magento is, why and how you should use it, and whether it is possible and feasible to migrate from an old web store to Magento 2. We'll introduce you to the main e-commerce concepts and basic features and let you play with them, so you can get a taste of how catalog and content management works. Following on from that, we'll show you how to tune your store up. You will learn how to get web store offers up and running, how to offer various discounts in the catalog, how to let the customers reduce the total price in the shopping cart by combining different products, and how to generate coupon codes that customers can use. Finally, we'll get serious and turn your plaything into a real web store, teaching you how to run it for real.

Who is this book for?

This book is for e-commerce merchants, e-commerce managers, and store administrators who are looking to migrate existing e-commerce stores to Magento 2. Magento administrators wishing to learn the benefits of Magento 2 will also find this book helpful. E-commerce professionals looking to build an online store will also get benefited from this book.

What you will learn

  • Build your first web store in Magento 2
  • Migrate your development environment to a live store
  • Configure your Magento 2 web store the right way, so that your taxes are handled properly
  • Create pages with arbitrary content
  • Create and manage customer contacts and accounts

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Mar 14, 2017
Length: 442 pages
Edition : 1st
Language : English
ISBN-13 : 9781785881558
Languages :
Concepts :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Mar 14, 2017
Length: 442 pages
Edition : 1st
Language : English
ISBN-13 : 9781785881558
Languages :
Concepts :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 167.97
Magento 2 Beginners Guide
$48.99
Magento 2 Theme Design
$38.99
Mastering Magento 2
$79.99
Total $ 167.97 Stars icon
Banner background image

Table of Contents

21 Chapters
1. Introduction to Magento 2 Chevron down icon Chevron up icon
2. Installation Chevron down icon Chevron up icon
3. Migration Chevron down icon Chevron up icon
4. Creating Your First Product, Images, Inventory, and Prices Chevron down icon Chevron up icon
5. Attribute Sets and Custom Attributes Chevron down icon Chevron up icon
6. Product Types Chevron down icon Chevron up icon
7. Categories Chevron down icon Chevron up icon
8. CMS Pages, Blocks, and Widgets Chevron down icon Chevron up icon
9. Managing Scope and Locale Settings Chevron down icon Chevron up icon
10. System Configuration Chevron down icon Chevron up icon
11. Working with Customers Chevron down icon Chevron up icon
12. Admin Users and Roles Chevron down icon Chevron up icon
13. Taxes Chevron down icon Chevron up icon
14. Catalog and Shopping Cart Price Rules Chevron down icon Chevron up icon
15. Processing Payments Chevron down icon Chevron up icon
16. Configuring Shipping Chevron down icon Chevron up icon
17. Fulfilling Orders Chevron down icon Chevron up icon
18. Transactional E-mails and Newsletter Chevron down icon Chevron up icon
19. Reports Chevron down icon Chevron up icon
20. Customizing Your Magento Store Chevron down icon Chevron up icon
21. Store Maintenance Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Empty star icon Empty star icon Empty star icon 2
(1 Ratings)
5 star 0%
4 star 0%
3 star 0%
2 star 100%
1 star 0%
narendra kumar Nov 14, 2022
Full star icon Full star icon Empty star icon Empty star icon Empty star icon 2
Good
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.