Hi! The Tutorial shows you Step-by-Step How to Install Magento 2 Sample Data on a GNU/Linux Web Servers.
And the Magento 2 Sample Data sample data includes a Sample Store, complete with more than 250 products (about 200 of them are configurable products), categories, promotional price rules, CMS pages, banners, and so on.
Moreover, Magento 2 Sample Data uses the Luma Theme on the storefront.
Especially Relevant: before to Install Magento Data you follow instructions on How to Switch to Developer Mode.
-
1. Installing PHP Composer
How to Install Composer on Ubuntu GNU/Linux
-
2. Accessing Web Root
First, Access Magento Site Root.
cd /[PATH2ROOT/
It’s Depends from your Web Server Type…
On Ubuntu like E.g.:cd /var/www/html/magento.local
-
3. Switching to Developer Mode
This is Required prior to Data Installation.
rm -rf var/di/* var/generation/*
bin/magento deploy:mode:set developer
And in the Output you’ll be Confirmed by:
Switched to developer mode
-
4. Making Composer Project
Then Make a Composer Project.
composer create-project
-
5. Installing Sample Data
Finally, Install Magento 2 Sample Data.
php bin/magento setup:deploy
-
6. Updating Sample Data
Again Update Magento 2 Database & Schema.
php bin/magento setup:upgrade
So Now I’m truly Happy if My Guide could Help you to Install Magento 2 Sample Data on Linux!