{"id":21551,"date":"2019-04-24T18:00:13","date_gmt":"2019-04-24T16:00:13","guid":{"rendered":"https:\/\/belvg.com\/blog\/?p=21551"},"modified":"2021-02-18T14:14:33","modified_gmt":"2021-02-18T12:14:33","slug":"how-to-install-magento-2-step-by-step-instruction","status":"publish","type":"post","link":"https:\/\/belvg.com\/blog\/how-to-install-magento-2-step-by-step-instruction.html","title":{"rendered":"How to Install Magento 2? Step-by-Step Instruction"},"content":{"rendered":"\n<p>In this article, I will explore the process of Magento installation. It will cover such preparatory aspects as how to choose a Magento version and where to download it, as well as what hardware and software server requirements should be met in order for Magento to be installed. Moreover, I will go over installation options for Magento. After we look into these matters, I will provide you a step-by-step guide on how to install Magento.<\/p>\n<p><!--more--><\/p>\n<p><strong>Table of contents:<\/strong><\/p>\n<p><a href=\"#step_1\">How to download Magento<br>\n<\/a><a href=\"#step_2\">Check your server<br>\n<\/a><a href=\"#step_3\">Configure local server<br>\n<\/a><a href=\"#step_4\">Install Magento 2<br>\n<\/a><a href=\"#step_5\">Install SSL<br>\n<\/a><a href=\"#step_6\">Install Sample Data<\/a><\/p>\n<h2 id=\"step_1\">How to download Magento<\/h2>\n<p>First, let us look into what Magento is and what versions does it have. Magento is an open source ecommerce platform and CMS with advanced product, order and inventory management capabilities. Due to its architecture, Magento is very configurable and allows a retailer to customize this solution to suit their business needs and personal preferences. All these features make Magento an excellent solution for modern businesses who want a reliable and cutting-edge ecommerce solution.<\/p>\n<p>Throughout its history, Magento has offered various versions of its product, oriented at different customers. The recent rebranding happened in 2017, and since that Magento offers two distinct versions &ndash; Magento Open Source and Magento Commerce.<\/p>\n<p>Magento Open Source is a free version with a decent range of online retail functionalities, while Magento Commerce is a paid solution that offers more advanced capabilities to business owners. I will not dwell on peculiarities and advantages of each version &ndash; you can find it all in our article <a href=\"https:\/\/belvg.com\/blog\/what-is-magento.html\" target=\"_blank\" rel=\"noopener\">What is Magento?<\/a>, and this choice of the Magento version is up for you to make.<\/p>\n<p>You can download Magento Open Source at the official <a href=\"https:\/\/magento.com\/tech-resources\/download\" target=\"_blank\" rel=\"noopener\">Magento Tech Resources<\/a> page. Here, you can select the version of the platform and the format of the archive to download &ndash; .zip, .tar.gz or .tar.bz2. Moreover, there is the same Magento version with sample data available on this page, as well as Magento Open Source Patches for 2.x versions.<\/p>\n<p>Downloading Magento Commerce is more complicated, since it is a paid version and naturally is not publicly available. To get Magento Commerce, go to <a href=\"http:\/\/magento.com\/\" target=\"_blank\" rel=\"noopener\">http:\/\/magento.com\/<\/a> and log in to My Account (register, if you do not have one). At the menu bar on the left, find the Downloads section and select from Magento Enterprise Edition 2.X &gt; Full Release or Magento Enterprise Edition 2.X &gt; Full Release + Sample Data.<\/p>\n<p>Now, as we have downloaded the Magento version of your choice, it is high time to begin the installation.<\/p>\n<h2 id=\"step_2\">Step #1: Check your server<\/h2>\n<p>To install Magento, you should have a server that corresponds with the following official requirements.<\/p>\n<ul>\n<li>Operating systems -Linux x86-64. Magento IS NOT supported on Windows OS or Mac OS.<\/li>\n<li>Memory requirement &ndash; 2GB of RAM.<\/li>\n<li>Composer &ndash; no specific requirements, it should be a recent stable version.<\/li>\n<li>Web servers &ndash; Apache 2.2 or 2.4, or nginx 1.x.<\/li>\n<li>Database &ndash; MySQL 5.6, 5.7. Apart from these, Magento is compatible with binary-compatible MySQL technologies like NDB Cluster 7.4.*, MariaDB 10.0, 10.1, 10.2, Percona 5.7, and so on.<\/li>\n<li>PHP &ndash; ~7.1.3 or ~7.2.0.<\/li>\n<li>PHP extensions: ext-bcmath, ext-ctype, ext-curl, ext-dom, ext-gd, ext-hash, ext-iconv, ext-intl, ext-mbstring, ext-openssl, ext-pdo_mysql, ext-simplexml, ext-soap, ext-spl, ext-xsl, ext-zip, lib-libxml.<\/li>\n<li>SSL &ndash; a valid security certificate for HTTPS; self-signed SSL certificate is not allowed.<\/li>\n<li>Mail server &ndash; Mail Transfer Agent (MTA) or an SMTP server.<\/li>\n<\/ul>\n<p>If you are not able to detect what is your server missing, you can begin installing Magento &ndash; it will notify you of what is missing.<\/p>\n<h2 id=\"step_3\">Step #2: Configure local server<\/h2>\n<p>There is a number of virtual servers for Windows and Linux. I will go over the configuration for two of them for the first operational system &ndash; XAMPP and WampServer, and two &ndash; for the second. Moreover, I will go over another alternative &ndash; configuration via Docker.<\/p>\n<h3>How to configure XAMPP<\/h3>\n<p><strong>Step #1<\/strong>: Download the distribution package at <a href=\"https:\/\/www.apachefriends.org\/index.html\" target=\"_blank\" rel=\"noopener\">https:\/\/www.apachefriends.org\/index.html<\/a><\/p>\n<p><strong>Important!<\/strong> The XAMPP version you download should contain the supported PHP version. I would strongly recommend downloading the archive here <a href=\"https:\/\/sourceforge.net\/projects\/xampp\/files\/XAMPP%20Windows\/\" target=\"_blank\" rel=\"noopener\">https:\/\/sourceforge.net\/projects\/xampp\/files\/XAMPP%20Windows\/<\/a>. Find PHP compatible with the Magento version you are installing (for example, Magento 2.3.1 is compatible with PHP 7.2.11).<\/p>\n<p><strong>Step #2<\/strong>: Install the server distribution package.<\/p>\n<p>You can install several XAMPP servers to different folders with different PHP versions.<\/p>\n<p>You will be offered a choice of components; tick the ones you want to be installed.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/xampp_01.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-21553\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/xampp_01.png\" alt=\"xampp_01\" width=\"504\" height=\"427\" title=\"How to Install Magento 2? Step-by-Step Instruction\"><\/a><\/p>\n<p>The combination Apache + MariaDB + PHP is the basic one and it is necessary to be installed. Let us explore other additional options offered to us:<\/p>\n<p><strong>Program Languages<\/strong><\/p>\n<ul>\n<li>phpMyAdmin &ndash; is a software tool for handling the administration of MySQL over the Web. It supports numerous operations on MySQL and MariaDB.<\/li>\n<li>The Webalizer &ndash; is an analysis program for web server log files that produces detailed and configurable usage reports in HTML format.<\/li>\n<li>Fake Sendmail &ndash; a Windows console application that simplifies running Unix code.<\/li>\n<\/ul>\n<p><strong>Server<\/strong><\/p>\n<ul>\n<li>Tomcat &ndash; is a Java Servlet Engine and a very powerful J2EE Server. It can run JSP dynamic web pages.<\/li>\n<li>Mercury Mail Server &ndash; a mail processing environment.<\/li>\n<li>FileZilla Server &ndash; is a free FTP Manager that provides a secure connection to the server.<\/li>\n<\/ul>\n<p><strong>Step#4<\/strong>: Select the server in the following window.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/xampp_02.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-21554\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/xampp_02.png\" alt=\"xampp_02\" width=\"670\" height=\"436\" title=\"How to Install Magento 2? Step-by-Step Instruction\"><\/a><\/p>\n<p>If you start Apache &#1089;&#1077;&#1088;&#1074;&#1077;&#1088;, you will get the following URL http:\/\/localhost\/. It is associated with <strong>xampp\/htdocs<\/strong> folder at your PC. In case you start MySQL server, you will get a connection to databases via http:\/\/localhost\/phpmyadmin\/.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/xampp_04.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-21555\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/xampp_04.png\" alt=\"xampp_04\" width=\"670\" height=\"436\" title=\"How to Install Magento 2? Step-by-Step Instruction\"><\/a><\/p>\n<p>In MySQL configuration you can set a password for a root user, who will have access for the database.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/xampp_05.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-21556\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/xampp_05.png\" alt=\"xampp_05\" width=\"821\" height=\"616\" title=\"How to Install Magento 2? Step-by-Step Instruction\"><\/a><\/p>\n<p><strong>Step #5<\/strong>: Create a database for your Magento store in phpMyAdmin.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/xampp_03.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-21557\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/xampp_03.png\" alt=\"xampp_03\" width=\"1029\" height=\"565\" title=\"How to Install Magento 2? Step-by-Step Instruction\"><\/a><\/p>\n<p><strong>Step #6<\/strong>: Download Magento archive and unpack it to the xampp\/htdocs folder.<\/p>\n<p><strong>Step #7<\/strong>: Run the <a href=\"http:\/\/localhost\/\" target=\"_blank\" rel=\"noopener\">http:\/\/localhost\/<\/a>.<\/p>\n<p>The latest Magento versions archives (Full Release) contain all the necessary libraries, so you can run the <a href=\"http:\/\/localhost\/\" target=\"_blank\" rel=\"noopener\">http:\/\/localhost\/<\/a> at once and Magento will notify you in case there are some issues.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/xampp_06.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-21558\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/xampp_06.png\" alt=\"xampp_06\" width=\"964\" height=\"645\" title=\"How to Install Magento 2? Step-by-Step Instruction\"><\/a><\/p>\n<p>In my case, I am missing three php modules.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/xampp_07.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-21559\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/xampp_07.png\" alt=\"xampp_07\" width=\"949\" height=\"244\" title=\"How to Install Magento 2? Step-by-Step Instruction\"><\/a><\/p>\n<p>To fix that, I will include the missing php modules to the configuration.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/xampp-control-panel.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-21560\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/xampp-control-panel.png\" alt=\"xampp control panel\" width=\"512\" height=\"333\" title=\"How to Install Magento 2? Step-by-Step Instruction\"><\/a><\/p>\n<p>Delete this symbol &ldquo; ; &rdquo; in the lines of the modules you include.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/xampp_09.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-21561\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/xampp_09.png\" alt=\"xampp_09\" width=\"1136\" height=\"699\" title=\"How to Install Magento 2? Step-by-Step Instruction\"><\/a><\/p>\n<p>As you fixed all your issues, restart the servers and complete Magento installation.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/xampp_10.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-21562\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/xampp_10.png\" alt=\"xampp_10\" width=\"973\" height=\"701\" title=\"How to Install Magento 2? Step-by-Step Instruction\"><\/a><\/p>\n<h3>How to install WampServer<\/h3>\n<p><strong>Step #1<\/strong>: Download the server distributive package from <a href=\"http:\/\/www.wampserver.com\/en\/\" target=\"_blank\" rel=\"noopener\">http:\/\/www.wampserver.com\/en\/<\/a>.<\/p>\n<p><strong>Step #2<\/strong>: Perform the installation.<\/p>\n<p>Remember the folder you performed the installation into.<\/p>\n<p><strong>Step #3<\/strong>: Specify the browser and text editor you want to use.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/wamp_01.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-21563\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/wamp_01.png\" alt=\"wamp_01\" width=\"501\" height=\"389\" title=\"How to Install Magento 2? Step-by-Step Instruction\"><\/a><\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/wamp_02.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-21564\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/wamp_02.png\" alt=\"wamp_02\" width=\"501\" height=\"389\" title=\"How to Install Magento 2? Step-by-Step Instruction\"><\/a><\/p>\n<p><strong>Step #4<\/strong>: Run the server.<\/p>\n<p>Wamp supports several PHP versions, so you do not need any additional configurations.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/Run-the-server.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-21565\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/Run-the-server.png\" alt=\"Run the server\" width=\"424\" height=\"382\" title=\"How to Install Magento 2? Step-by-Step Instruction\"><\/a><\/p>\n<p>Select the version compatible with your Magento.<\/p>\n<p><strong>Step #5<\/strong>: Set the password for root access to MySQL.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/wamp_04.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-21566\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/wamp_04.png\" alt=\"wamp_04\" width=\"524\" height=\"424\" title=\"How to Install Magento 2? Step-by-Step Instruction\"><\/a><\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/wamp_05.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-21567\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/wamp_05.png\" alt=\"wamp_05\" width=\"821\" height=\"666\" title=\"How to Install Magento 2? Step-by-Step Instruction\"><\/a><\/p>\n<p>Step #6: Create a database for your store in phpMyAdmin <a href=\"http:\/\/localhost\/phpmyadmin\/\" target=\"_blank\" rel=\"noopener\">http:\/\/localhost\/phpmyadmin\/<\/a>.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/wamp_06.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-21568\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/wamp_06.png\" alt=\"wamp_06\" width=\"980\" height=\"521\" title=\"How to Install Magento 2? Step-by-Step Instruction\"><\/a><\/p>\n<p><strong>Step #7<\/strong>: Stop the server and edit the Apache configuration.<\/p>\n<p>One of the Apache modules used in Magento is by default disabled at this server. The log file that will notify you what module is absent, is situated at <strong>wamp64\/logs\/apache_error.log.<\/strong><\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/wamp_07.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-21569\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/wamp_07.png\" alt=\"wamp_07\" width=\"530\" height=\"401\" title=\"How to Install Magento 2? Step-by-Step Instruction\"><\/a><\/p>\n<p>Delete the commentary symbol &ldquo; # &rdquo; from the lines with our module &ldquo;mod_version&rdquo;.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/server.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-21570\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/server.png\" alt=\"server\" width=\"512\" height=\"415\" title=\"How to Install Magento 2? Step-by-Step Instruction\"><\/a><\/p>\n<p><strong>Step #8<\/strong>: Set up the following parameters for php.ini<\/p>\n<p><strong>memory_limit = 1024M<\/strong><br>\n<strong>max_execution_time = 360<\/strong><\/p>\n<p><strong>Step #9<\/strong>: Start the server<\/p>\n<div class=\"content_sales_info\" style=\"background-image: url(https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/03\/Sales_background.png\"><img width=\"65\" height=\"65\" src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2015\/11\/Andrey_Dubina.png\" alt=\"Andrey_Dubina\" title=\"How to Install Magento 2? Step-by-Step Instruction\"><div class=\"content_part\"><h3 class=\"title\">Partner With Us <\/h3><span class=\"sales_content_text\">Let's discuss how to grow your business. Get a Free Quote.<\/span><\/div> <a class=\"call-to-action\" href=\"https:\/\/belvg.com\/contact?utm_source=blog&amp;utm_campaign=sales_block&amp;utm_content=middle\" target=\"_blank\" rel=\"noopener\">Talk to Andrey<\/a><\/div>\n<p><strong>Step #10<\/strong>: Download the Magento archive and unpack it to <strong>wamp64\/www folder<\/strong>.<\/p>\n<p>The latest Magento versions archive contains all the necessary libraries; therefore, after the archive has been unpacked, run the http:\/\/localhost\/. Magento will notify you in case anything is missing.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/wamp-10.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-21571\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/wamp-10.png\" alt=\"wamp 10\" width=\"512\" height=\"369\" title=\"How to Install Magento 2? Step-by-Step Instruction\"><\/a><\/p>\n<p>In our case, everything is fine, and the server is ready for work.<\/p>\n<h3>How to install Ubuntu Nginx<\/h3>\n<p><strong>Step #1<\/strong>: Install the Ubuntu Nginx using the console<\/p>\n<p><strong>sudo apt update<\/strong><\/p>\n<p>NGINX<\/p>\n<p><strong>sudo apt install nginx<\/strong><\/p>\n<p>PHP + modules<\/p>\n<p><strong>sudo apt install php7.2-fpm php7.2-cli php7.2-xml php7.2-gd php-imagick php7.2-recode php7.2-tidy php7.2-xmlrpc php7.2-curl php7.2-mbstring php7.2-zip php7.2-soap php7.2-bcmath php7.2-intl php7.2-xsl php7.2-json php7.2-mcrypt&nbsp;php7.2-mysql<\/strong><\/p>\n<p>MySQL<\/p>\n<p><strong>sudo apt-get install mariadb-server mariadb-client<\/strong><\/p>\n<p>Create basic settings:<\/p>\n<p><strong>sudo mysql_secure_installation<\/strong><\/p>\n<p>Create new user:<\/p>\n<p><strong>CREATE USER &lsquo;admin&rsquo;@&rsquo;localhost&rsquo; IDENTIFIED BY &lsquo;password&rsquo;;<\/strong><br>\n<strong>GRANT ALL PRIVILEGES ON *.* TO &lsquo;admin&rsquo;@&rsquo;localhost&rsquo; WITH GRANT OPTION;<\/strong><\/p>\n<p><strong>Step #2<\/strong>: Configure the Ubuntu Nginx<\/p>\n<p><strong>sudo nano \/etc\/php\/7.2\/fpm\/php.ini<\/strong><\/p>\n<p><strong>Step #3<\/strong>: Find the &ldquo;memory_limit&rdquo; line and add more memory for php.<\/p>\n<p><strong>memory_limit = 1024M<\/strong><br>\n<strong>max_execution_time = 360<\/strong><\/p>\n<p><strong>Step #4<\/strong>: Create the separate local domen &ldquo;mymage.com&rdquo; for magento project<\/p>\n<p><strong>sudo nano \/etc\/hosts<\/strong><\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/linux_01.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-21572\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/linux_01.png\" alt=\"linux_01\" width=\"244\" height=\"78\" title=\"How to Install Magento 2? Step-by-Step Instruction\"><\/a><\/p>\n<p>This is how we specify that the domain connects to our local server.<\/p>\n<p><strong>Step #5<\/strong>: Create the folder for our website<\/p>\n<p><strong>sudo mkdir \/var\/www\/magento\/<\/strong><\/p>\n<p><strong>Step #6<\/strong>: Create a separate nginx file to configure this domain.<\/p>\n<pre class=\"lang:default decode:true \">sudo nano \/etc\/nginx\/sites-available\/mymage.com\r\n\r\n\r\nupstream fastcgi_backend {\r\n        server unix:\/var\/run\/php\/php7.2-fpm.sock;\r\n}\r\n\r\nserver {\r\n       listen 80;\r\n       listen [::]:80;\r\n\r\n       server_name mymage.com;\r\n       #root \/var\/www\/magento;\r\n\r\n       access_log \/var\/www\/magento\/var\/log\/access.log;\r\n       error_log \/var\/www\/magento\/var\/log\/error.log;\r\n\r\n       set $MAGE_ROOT \/var\/www\/magento;\r\n       set $MAGE_MODE developer;\r\n       set $MAGE_DEBUG_SHOW_ARGS 1;\r\n\r\n       include \/var\/www\/magento\/nginx.conf.sample;\r\n}\r\n<\/pre>\n<p>Configuration should contain the &ldquo;root&rdquo; parameters to connect our local domain to the Magento folder. However, Magento has a file with the main &ldquo;<strong>nginx.conf.sample<\/strong>&rdquo; folder that you need to connect.<\/p>\n<p>This is where we expect the fastcgi_backend parameter, which the handler we installed will indicate. This is where the correct root parameter will be created.<\/p>\n<p>We connect it in the end with the &ldquo;<strong>include<\/strong>&rdquo; command.<\/p>\n<p><strong>Step #7<\/strong>: Install the magento folder in the <strong>\/ var \/ www \/ magento \/ folder<\/strong>.<\/p>\n<p><strong>Step #8<\/strong>: Run the following command to reload<\/p>\n<p><strong>sudo systemctl restart nginx.service<\/strong><br>\n<strong>sudo systemctl restart php7.2-fpm.service<\/strong><\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/xampp_10-1.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-21573\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/xampp_10-1.png\" alt=\"xampp_10 (1)\" width=\"973\" height=\"701\" title=\"How to Install Magento 2? Step-by-Step Instruction\"><\/a><\/p>\n<h3>How to install Ubuntu Apache<\/h3>\n<p><strong>Step #1<\/strong>: Install via console<\/p>\n<p>Run the following commands:<\/p>\n<p><strong>sudo apt update<\/strong><\/p>\n<p>APACHE<\/p>\n<p><strong>sudo apt install apache2<\/strong><\/p>\n<p>PHP + modules<\/p>\n<p><strong>sudo apt install php7.2 libapache2-mod-php7.2 php7.2-cli php7.2-xml php7.2-mysql php7.2-gd php-imagick php7.2-recode php7.2-tidy php7.2-xmlrpc php7.2-curl php7.2-mbstring php7.2-zip php7.2-soap php7.2-bcmath php7.2-intl php7.2-xsl php7.2-json php7.2-mcrypt<\/strong><\/p>\n<p>MySQL<\/p>\n<p><strong>sudo apt install -y mysql-server mysql-client<\/strong><\/p>\n<p><strong>Step #2<\/strong>: Configure Ubuntu Apache<\/p>\n<p><strong>sudo nano \/etc\/php\/7.2\/apache2\/php.ini<\/strong><\/p>\n<p><strong>Step #3<\/strong>: Find the &ldquo;<strong>memory_limit<\/strong>&rdquo; line and add more memory for php<\/p>\n<p><strong>memory_limit = 1024M<\/strong><br>\n<strong>max_execution_time = 360<\/strong><\/p>\n<p><strong>Step #4<\/strong>: Create a separate local domain mymage.com for Magento project.<\/p>\n<p><strong>sudo nano \/etc\/hosts<\/strong><\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/linux_01-1.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-21575\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/linux_01-1.png\" alt=\"linux_01 (1)\" width=\"244\" height=\"78\" title=\"How to Install Magento 2? Step-by-Step Instruction\"><\/a><\/p>\n<p>This is how we demonstrate that this domain will connect to our local server.<\/p>\n<p><strong>Step #5<\/strong>: Create a folder for our website<br>\n<strong>sudo mkdir \/var\/www\/magento\/<\/strong><\/p>\n<p><strong>Step #6<\/strong>: Create a separate file<\/p>\n<p><strong>sudo nano \/etc\/apache2\/sites-available\/mage.conf<\/strong><\/p>\n<pre class=\"lang:default decode:true \">&lt;VirtualHost *:80&gt;\r\n     ServerAdmin admin@mymage.com\r\n     DocumentRoot \/var\/www\/magento\/\r\n     ServerName mymage.com   \r\n     ServerAlias www.mymage.com   \r\n\r\n     &lt;Directory \/var\/www\/magento\/&gt;\r\n        Options Indexes FollowSymLinks MultiViews\r\n        AllowOverride All\r\n        Order allow,deny\r\n        allow from all\r\n     &lt;\/Directory&gt;\r\n\r\n     ErrorLog \/var\/www\/magento\/var\/log\/error.log\r\n     CustomLog \/var\/www\/magento\/var\/log\/access.log combined\r\n&lt;\/VirtualHost&gt;\r\n\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>Step #7<\/strong>: Install Magento to the \/var\/www\/magento\/ folder.<br>\n<strong>Step #8<\/strong>: Run the following command to reload<\/p>\n<p><strong>sudo systemctl restart apache2.service<\/strong><\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/xampp_10-2.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-21576\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/xampp_10-2.png\" alt=\"xampp_10 (2)\" width=\"973\" height=\"701\" title=\"How to Install Magento 2? Step-by-Step Instruction\"><\/a><\/p>\n<p>Server configuration is completed.<\/p>\n<h3>How to configure the local server with Docker<\/h3>\n<p>Docker is a computer program that will automatically run the local server configuration process that will require minimum involvement on your part.<\/p>\n<p>All you need to do is to run the following command in the console <strong>sudo apt install docker-compose<\/strong>.<\/p>\n<p>Here you can find the list of installation scripts for Magento: <a href=\"https:\/\/github.com\/magento\/magento-cloud-docker\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/magento\/magento-cloud-docker<\/a>.<\/p>\n<h2 id=\"step_4\">Step #3: Install Magento 2<\/h2>\n<p><strong>Step #1<\/strong>: Create authentification keys in your Magento account.<\/p>\n<p><strong>Step #2<\/strong>: Make sure the server has console access.<\/p>\n<p><strong>Step #3<\/strong>: Detect the working project folder at the server and move files there.<\/p>\n<p>In our case, the folder is located at the path<strong> var\\www\\magento<\/strong>.<\/p>\n<p>There are three ways to do this:<\/p>\n<p>1.Console &ndash; Composer<\/p>\n<pre class=\"lang:default decode:true \">cd \\var\\www\\magento\r\ncomposer create-project --repository-url=https:\/\/repo.magento.com\/ magento\/project-community-edition magento2\r\n<\/pre>\n<p>2.&nbsp;Console &ndash; Github<\/p>\n<pre class=\"lang:default decode:true \">cd \\var\\www\\magento\r\ngit clone git@github.com:magento\/magento2.git.\r\ncomposer install\r\n<\/pre>\n<p>3.&nbsp;FTP Manager<\/p>\n<p>Download the suitable version here: https:\/\/www.magentocommerce.com\/download<br>\nIt can be an archive of any format. Connect to your server via FTP Manager and transfer the downloaded archive into the var <strong>\\ www \\ magento<\/strong> working folder.<\/p>\n<p>Next, we go to the console and unzip the archive.<\/p>\n<p>Step #4: Setup Config<\/p>\n<p>Define the access rights for the security folders<\/p>\n<p><strong>sudo chmod -R 0777 app\/etc\/<\/strong><br>\n<strong>sudo chmod -R 0777 pub\/static\/<\/strong><br>\n<strong>sudo chmod -R 0777 pub\/media\/<\/strong><br>\n<strong>sudo chmod -R 0777 generated\/<\/strong><br>\n<strong>sudo chmod -R 0777 var\/<\/strong><\/p>\n<p>Once all the Magento files have been deployed in the working folder, connect the database and create the initial admin user. This can be done two ways:<\/p>\n<p>1. Console commands<br>\nWrite the following line in any word processor:<\/p>\n<p><strong>php -f bin\/magento setup:install &ndash;base-url=http:\/\/mymage.com\/ &ndash;backend-frontname=admin &ndash;db-host=localhost &ndash;db-name=magento &ndash;db-user=magento &ndash;db-password=magento &ndash;admin-firstname=admin &ndash;admin-lastname=admin &ndash;admin-email=admin@admin.com &ndash;admin-user=admin &ndash;admin-password=admin123 &ndash;language=en_US &ndash;currency=USD &ndash;timezone=America\/Chicago &ndash;use-rewrites=1<\/strong><\/p>\n<p>After each equal mark, change the parameters. As you can see, you can set the entire initial configuration of the store.<\/p>\n<p>Next, we insert this line into the console.<\/p>\n<p>2. Web Wizard<\/p>\n<p>For the initial installation of the basic configuration, a browser will be enough. Go to mymage.com, which is already connected to our working folder <strong>var \\ www \\ magento<\/strong>.<\/p>\n<h2 id=\"step_5\">Step #4:&nbsp;Install SSL<\/h2>\n<p>SSL is the security certificate that we create for our domain or IP-address.You can select from two kinds of SSL &ndash; either a self-signed certificate or a certificate signed by third-party service.<\/p>\n<h3>How to install a self-signed&nbsp;SSL certificate in Magento 2<\/h3>\n<p>sudo openssl req -x509 -nodes -days 999 -newkey rsa:2048 -sha256 -subj &lsquo;\/CN=mymage.com\/subjectAltName=DNS.1=mymage.com\/&rsquo; -keyout \/etc\/ssl\/private\/mage.key -out \/etc\/ssl\/certs\/mage.crt<\/p>\n<p>sudo openssl dhparam -out \/etc\/ssl\/certs\/dhparam.pem 2048<\/p>\n<p><strong>How to install a self-signed&nbsp;SSL certificate in Magento 2 for Nginx<\/strong><\/p>\n<pre class=\"lang:default decode:true \">sudo nano \/etc\/nginx\/snippets\/ssl-params.conf\r\n\r\nssl_protocols TLSv1 TLSv1.1 TLSv1.2;\r\nssl_prefer_server_ciphers on;\r\nssl_ciphers \"EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH\";\r\nssl_ecdh_curve secp384r1;\r\nssl_session_cache shared:SSL:10m;\r\nssl_session_tickets off;\r\nssl_stapling on;\r\nssl_stapling_verify on;\r\nresolver 8.8.8.8 8.8.4.4 valid=300s;\r\nresolver_timeout 5s;\r\nadd_header Strict-Transport-Security \"max-age=63072000; includeSubdomains; preload\";\r\nadd_header X-Frame-Options DENY;\r\nadd_header X-Content-Type-Options nosniff;\r\nssl_dhparam \/etc\/ssl\/certs\/dhparam.pem;\r\n<\/pre>\n<p>Edit the Ubuntu Nginx configuration file we created.<\/p>\n<p><strong>sudo nano \/etc\/nginx\/sites-available\/mymage.com<\/strong><\/p>\n<p>Add new lines to the configuration file<\/p>\n<pre class=\"lang:default decode:true \">server {\r\n       listen 80;\r\n       listen 443 ssl;\r\n       listen [::]:80;\r\n\r\n       ssl_certificate \/etc\/ssl\/certs\/nginx-selfsigned.crt;\r\n       ssl_certificate_key \/etc\/ssl\/private\/nginx-selfsigned.key;\r\n       . . . . .\r\n}\r\n<\/pre>\n<p>Reload the server<\/p>\n<p><strong>sudo systemctl restart nginx<\/strong><\/p>\n<p><strong>How to install a self-signed&nbsp;SSL certificate in Magento 2 for Apache<\/strong><\/p>\n<p>Run the command:<\/p>\n<p>sudo nano \/etc\/apache2\/conf-available\/ssl-params.conf<\/p>\n<pre class=\"lang:default decode:true \">SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH\r\nSSLProtocol All -SSLv2 -SSLv3\r\nSSLHonorCipherOrder On\r\nHeader always set Strict-Transport-Security \"max-age=63072000; includeSubdomains; preload\"\r\nHeader always set X-Frame-Options DENY\r\nHeader always set X-Content-Type-Options nosniff\r\n# Requires Apache &gt;= 2.4\r\nSSLCompression off\r\nSSLSessionTickets Off\r\nSSLUseStapling on\r\nSSLStaplingCache \"shmcb:logs\/stapling-cache(150000)\"\r\nSSLOpenSSLConfCmd DHParameters \"\/etc\/ssl\/certs\/dhparam.pem\r\n<\/pre>\n<p>Edit the Apache configuration file we created.<\/p>\n<p><strong>sudo nano \/etc\/apache2\/sites-available\/mage.conf<\/strong><\/p>\n<p>Add the fonfiguration text for SSL<\/p>\n<pre class=\"lang:default decode:true \">&lt;IfModule mod_ssl.c&gt;\r\n     &lt;VirtualHost *:443&gt;\r\n          ServerAdmin webmaster@localhost\r\n          DocumentRoot \/var\/www\/magento\r\n\r\n          SSLEngine on\r\n          SSLCertificateFile \/etc\/ssl\/certs\/mage.crt\r\n          SSLCertificateKeyFile \/etc\/ssl\/private\/mage.key\r\n\r\n          &lt;FilesMatch \"\\.(cgi|shtml|phtml|php)$\"&gt;\r\n               SSLOptions +StdEnvVars\r\n          &lt;\/FilesMatch&gt;\r\n\r\n          &lt;Directory \/usr\/lib\/cgi-bin&gt;\r\n               SSLOptions +StdEnvVars\r\n          &lt;\/Directory&gt;\r\n\r\n          ErrorLog \/var\/www\/magento\/var\/log\/error.log\r\n          CustomLog \/var\/www\/magento\/var\/log\/access.log combined\r\n     &lt;\/VirtualHost&gt;\r\n&lt;\/IfModule&gt;\r\n<\/pre>\n<p>Reload the server<\/p>\n<p><strong>sudo a2enmod ssl<\/strong><br>\n<strong>sudo a2enmod headers<\/strong><br>\n<strong>sudo a2ensite mage.conf<\/strong><br>\n<strong>sudo systemctl restart apache2<\/strong><\/p>\n<h3>How to install a SSL certificate with&nbsp;https:\/\/letsencrypt.org\/<\/h3>\n<p>Run the command<\/p>\n<p><strong>sudo apt-get install letsencrypt<\/strong><br>\n(if the command does not execute, run another command &ndash; <strong>sudo apt-get install certbot<\/strong>)<\/p>\n<p>The command for Nginx:<\/p>\n<p><strong>sudo letsencrypt &ndash;nginx -d mymage.com<\/strong><\/p>\n<p>The command for Apache:<\/p>\n<p><strong>sudo letsencrypt &ndash;apache -d mymage.com<\/strong><\/p>\n<p>At the end of the generation, you will see the path to the generated keys.<\/p>\n<p>Certificates Let&rsquo;s Encrypt are valid for 90 days, so you just need to update them periodically with the command.<\/p>\n<p><strong>sudo letsencrypt renew<\/strong><\/p>\n<h2 id=\"step_6\">Step #5: Install sample data<\/h2>\n<p>As you have installed Magento, it is a complete tabula rasa, which can be rather complicated to work with. Run the following commands to install sample data into Magento.<\/p>\n<p><strong>php bin\/magento sampledata:deploy<\/strong><br>\n<strong>php bin\/magento setup:upgrade<\/strong><\/p>\n<p>The following commands will uninstall sample data:<\/p>\n<p><strong>php bin\/magento sampledata:remove<\/strong><\/p>\n<p>The following commands will reinstall sample data<\/p>\n<p><strong>bin\/magento sampledata:reset<\/strong><\/p>\n<h2>Wrapping it up<\/h2>\n<p>We hope you found this article useful and will successfully install Magento using our guide. If you have any questions or comments, feel free to leave them down below.<\/p>\n\n","protected":false},"excerpt":{"rendered":"In this article, I will explore the process of Magento installation. It will cover such &#8230;","protected":false},"author":82,"featured_media":21552,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"image","meta":{"_acf_changed":false,"footnotes":""},"categories":[14,491,389,469,471,524],"tags":[],"class_list":["post-21551","post","type-post","status-publish","format-image","has-post-thumbnail","hentry","category-magento","category-magento-2","category-magento2-development","category-magento2-tutorial","category-magento-developer","category-magento-speed-optimization","post_format-post-format-image"],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.4 - aioseo.com -->\n\t<meta name=\"description\" content=\"Find out how to install Magento 2 for your online store: server recommendations, localhost settings, Magento installation recommendations, SSL certificates for your online store and Magento extensions installation process.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Andrey Litvin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/belvg.com\/blog\/how-to-install-magento-2-step-by-step-instruction.html\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.4\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-install-magento-2-step-by-step-instruction.html#article\",\"name\":\"How to Install Magento 2? Step-by-Step Instruction | BelVG Blog\",\"headline\":\"How to Install Magento 2? Step-by-Step Instruction\",\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/andrey-litvin#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/04\\\/How-to-Install-Magento-2.png\",\"width\":1108,\"height\":590,\"caption\":\"How to Install Magento 2\"},\"datePublished\":\"2019-04-24T18:00:13+02:00\",\"dateModified\":\"2021-02-18T14:14:33+02:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-install-magento-2-step-by-step-instruction.html#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-install-magento-2-step-by-step-instruction.html#webpage\"},\"articleSection\":\"Magento, Magento 2, Magento 2 Development, Magento 2 Tutorial, Magento Developer, Magento Speed Optimization, Image\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-install-magento-2-step-by-step-instruction.html#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento#listItem\",\"name\":\"Magento\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento#listItem\",\"position\":2,\"name\":\"Magento\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-install-magento-2-step-by-step-instruction.html#listItem\",\"name\":\"How to Install Magento 2? Step-by-Step Instruction\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-install-magento-2-step-by-step-instruction.html#listItem\",\"position\":3,\"name\":\"How to Install Magento 2? Step-by-Step Instruction\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento#listItem\",\"name\":\"Magento\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/andrey-litvin#author\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/andrey-litvin\",\"name\":\"Andrey Litvin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-install-magento-2-step-by-step-instruction.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e1a6e3c80cb940fddb65016d94b015cd951b4a8a9cd7227565131f28ea95c7a0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Andrey Litvin\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-install-magento-2-step-by-step-instruction.html#webpage\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-install-magento-2-step-by-step-instruction.html\",\"name\":\"How to Install Magento 2? Step-by-Step Instruction | BelVG Blog\",\"description\":\"Find out how to install Magento 2 for your online store: server recommendations, localhost settings, Magento installation recommendations, SSL certificates for your online store and Magento extensions installation process.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-install-magento-2-step-by-step-instruction.html#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/andrey-litvin#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/andrey-litvin#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/04\\\/How-to-Install-Magento-2.png\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-install-magento-2-step-by-step-instruction.html\\\/#mainImage\",\"width\":1108,\"height\":590,\"caption\":\"How to Install Magento 2\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-install-magento-2-step-by-step-instruction.html#mainImage\"},\"datePublished\":\"2019-04-24T18:00:13+02:00\",\"dateModified\":\"2021-02-18T14:14:33+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"How to Install Magento 2? Step-by-Step Instruction | BelVG Blog","description":"Find out how to install Magento 2 for your online store: server recommendations, localhost settings, Magento installation recommendations, SSL certificates for your online store and Magento extensions installation process.","canonical_url":"https:\/\/belvg.com\/blog\/how-to-install-magento-2-step-by-step-instruction.html","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/belvg.com\/blog\/how-to-install-magento-2-step-by-step-instruction.html#article","name":"How to Install Magento 2? Step-by-Step Instruction | BelVG Blog","headline":"How to Install Magento 2? Step-by-Step Instruction","author":{"@id":"https:\/\/belvg.com\/blog\/author\/andrey-litvin#author"},"publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/How-to-Install-Magento-2.png","width":1108,"height":590,"caption":"How to Install Magento 2"},"datePublished":"2019-04-24T18:00:13+02:00","dateModified":"2021-02-18T14:14:33+02:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/belvg.com\/blog\/how-to-install-magento-2-step-by-step-instruction.html#webpage"},"isPartOf":{"@id":"https:\/\/belvg.com\/blog\/how-to-install-magento-2-step-by-step-instruction.html#webpage"},"articleSection":"Magento, Magento 2, Magento 2 Development, Magento 2 Tutorial, Magento Developer, Magento Speed Optimization, Image"},{"@type":"BreadcrumbList","@id":"https:\/\/belvg.com\/blog\/how-to-install-magento-2-step-by-step-instruction.html#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/belvg.com\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/magento#listItem","name":"Magento"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/magento#listItem","position":2,"name":"Magento","item":"https:\/\/belvg.com\/blog\/category\/magento","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/how-to-install-magento-2-step-by-step-instruction.html#listItem","name":"How to Install Magento 2? Step-by-Step Instruction"},"previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/how-to-install-magento-2-step-by-step-instruction.html#listItem","position":3,"name":"How to Install Magento 2? Step-by-Step Instruction","previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/magento#listItem","name":"Magento"}}]},{"@type":"Organization","@id":"https:\/\/belvg.com\/blog\/#organization","name":"BelVG Blog","description":"Magento and Prestashop articles","url":"https:\/\/belvg.com\/blog\/"},{"@type":"Person","@id":"https:\/\/belvg.com\/blog\/author\/andrey-litvin#author","url":"https:\/\/belvg.com\/blog\/author\/andrey-litvin","name":"Andrey Litvin","image":{"@type":"ImageObject","@id":"https:\/\/belvg.com\/blog\/how-to-install-magento-2-step-by-step-instruction.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/e1a6e3c80cb940fddb65016d94b015cd951b4a8a9cd7227565131f28ea95c7a0?s=96&d=mm&r=g","width":96,"height":96,"caption":"Andrey Litvin"}},{"@type":"WebPage","@id":"https:\/\/belvg.com\/blog\/how-to-install-magento-2-step-by-step-instruction.html#webpage","url":"https:\/\/belvg.com\/blog\/how-to-install-magento-2-step-by-step-instruction.html","name":"How to Install Magento 2? Step-by-Step Instruction | BelVG Blog","description":"Find out how to install Magento 2 for your online store: server recommendations, localhost settings, Magento installation recommendations, SSL certificates for your online store and Magento extensions installation process.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/belvg.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/belvg.com\/blog\/how-to-install-magento-2-step-by-step-instruction.html#breadcrumblist"},"author":{"@id":"https:\/\/belvg.com\/blog\/author\/andrey-litvin#author"},"creator":{"@id":"https:\/\/belvg.com\/blog\/author\/andrey-litvin#author"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/How-to-Install-Magento-2.png","@id":"https:\/\/belvg.com\/blog\/how-to-install-magento-2-step-by-step-instruction.html\/#mainImage","width":1108,"height":590,"caption":"How to Install Magento 2"},"primaryImageOfPage":{"@id":"https:\/\/belvg.com\/blog\/how-to-install-magento-2-step-by-step-instruction.html#mainImage"},"datePublished":"2019-04-24T18:00:13+02:00","dateModified":"2021-02-18T14:14:33+02:00"},{"@type":"WebSite","@id":"https:\/\/belvg.com\/blog\/#website","url":"https:\/\/belvg.com\/blog\/","name":"BelVG Blog","description":"Magento and Prestashop articles","inLanguage":"en-US","publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"}}]}},"aioseo_meta_data":{"post_id":"21551","title":"How to Install Magento 2? Step-by-Step Instruction | #site_title","description":"Find out how to install Magento 2 for your online store: server recommendations, localhost settings, Magento installation recommendations, SSL certificates for your online store and Magento extensions installation process.","keywords":null,"keyphrases":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_image_url":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"created":"2026-11-03 18:36:48","updated":"2026-11-03 18:36:48"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/category\/magento\" title=\"Magento\">Magento<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to Install Magento 2? Step-by-Step Instruction\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/belvg.com\/blog\/"},{"label":"Magento","link":"https:\/\/belvg.com\/blog\/category\/magento"},{"label":"How to Install Magento 2? Step-by-Step Instruction","link":"https:\/\/belvg.com\/blog\/how-to-install-magento-2-step-by-step-instruction.html"}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/21551","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/users\/82"}],"replies":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/comments?post=21551"}],"version-history":[{"count":2,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/21551\/revisions"}],"predecessor-version":[{"id":22877,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/21551\/revisions\/22877"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media\/21552"}],"wp:attachment":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media?parent=21551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/categories?post=21551"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/tags?post=21551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}