Installing Magento2 with Sample Data
- git clone https://github.com/magento/magento2.git
- cd magento2
- composer install
- Open browser to install Magento 2 as shown on the screen
- In the magento2 folder, run git clone https://github.com/magento/magento2-sample.data.git
- Change to the [your Magento sample data clone dir]/dev/tools/
- Type in command: php -f build-sample-data.php — —ce-source=”[your Magento CE install dir]”; i.e. /home/jeff/magento2
- php bin/magento setup:upgrade
Remove Magento sample data
- To find all installed modules: php bin/magento module:status
- php bin/magento sampledata:remove [module-list]
- php bin/magento sampledata:reset
Magento 2 css and javascript not loading
If you are facing problem of css and design after installation in window please follow the following steps.
- Step 1. php bin/magento setup:static-content:deploy
- Step 2: php bin/magento indexer:reindex
- Step 3: make sure apache “rewrite_module” is enable and the restart the server
- Step 4: delete cache folder under var/cache