There are different ways to install Magento 2 as per the guideline from Magento. You can choose web-based wizard interface or command line.
This section discusses how to install the Magento 2.x software using a web-based wizard interface.
1. Magento system requirements
Before you start your installation make sure everything ready as per the Magento 2.x requirements. You can refer the details mentioned on Magento official document.
2. Prerequisite check
It is strongly recommended to update and upgrade your operating system and softwares. These upgrades can provide security and software fixes that might prevent future problems.
Refer the details listed in Magento official site.
3. Download Magento 2 latest
Once everything is ready go to download latest version of Magento 2.x from the official website. You can download with sample data as well. Extract the package of the Magento into the root directory and go to the browser.
4. Running the Setup Wizard
The Setup is a multi-page web-based wizard interface that enables the user to go back and forward one page at a time. You cannot skip pages in-between, and you must fill up all required information on each page before proceed to the next page.
If errors occur at any step, you can run the installer again or you can return to the previous page to fix errors on that page.
Access the website folder like http://<Magento host or IP>/<path to Magento root>/setup, you will see the setup screen like below.
Step 1: Initial page
On the initial page, click Agree and Set Up Magento.
Step 2: Readiness Check
Start Readiness Check to check your server configuration to install Magento2.
Magento 2 needs PHP version 5.5 or above and MySql 5.6.0 or above. It will check for PHP settings, PHP Extensions and File Permissions Check. If any errors display, you must resolve them before you continue.
Click Show detail if available to see more information about each check.
Click on Start Readiness Check
Step 3: Database Setup
The setup wizard will ask for the database details to install Magento 2. Create a database for Magento 2 and fill-up the details (Database Host, Database Username, Database Password, Database Name, Table prefix).
Step 4: Web Configuration
In this step, you can set your store URL (Front-end and admin). While giving the store font URL, it will automatically take your store address and generate random admin URL. You can edit to keep it whatever you want.
If you want to go for optional advanced options (HTTPS, Apache Rewrite, Encryption key, and session save), click Advanced Options and enter the details required.
Step 5: Customize your store option
Select time zone, country, and language for your store. You can also look for Advanced Module Configurations. Advanced Modules Configuration to optionally enable or disable modules before you install the Magento software. Actually, Magento 2 comes with the default extensions and allows you to choose the default extensions whichever you want to install.
Before you enable or disable modules, review the information discussed in Magento official document.
You have the following options for any module listed:
- To enable a module that is currently disabled, select its check box.
- To disable a module that is currently enabled, clear its check box.
- Use the Select All check box to enable or disable all available modules.
If a module’s check box is unavailable, some other module depends on it. In the case of a dependency, to change the state of that module, you must first perform the corresponding action on the module on which it depends.
For example, Magento_GoogleAnalytics can be disabled only if Magento_GoogleOptimizer is disabled first. Conversely, if both modules are disabled, you must enable Magento_GoogleAnalytics first.
Module dependency errors
A dependency error occurs when two inter-dependent modules are disabled at the same time.
Step 6: Create Admin Account
Enter username, email and password to creating an admin account.
Step 7: Finalize Install
After completing all preceding steps in the Setup Wizard it’s ready to install Magento 2. Click on Install Now button and Installation will be started. To see installation progress or error details, click Console Log.
Wait till it finishes the Installation process.
Step 8: Installation Success
You have successfully installed Magento 2. The message Success displays to indicate a successful installation.
If the installation failed, click Previous to review the information you entered, make sure the Magento server and database host are still reachable
Step 9: Verify the installation
Verify the storefront (with optional sample data)
Go to the storefront in a web browser. For example, http://<Magento host or IP>/<path to Magento root>/ , enter it in your browser’s address or location bar.
The following figure shows a sample storefront page. If it displays as follows, your installation was a success!
Without data the front-end will display as follows.
Verify the Magento Admin
Go to the Magento Admin in a web browser. The Admin URI is specified by the value of the backend-frontname installation parameter.
When prompted, log in as a Magento Administrator.
The following figure shows a sample Magento Admin page. If it displays as follows, your installation was a success!
For more information regarding Magento 2 Installation or want to upgrade your existing Magento shop to Magento 2, you can contact us below. We are always happy to help you