Magento2 Installation With Sample Data

Magento 2.0 offers enhanced performance and scalability, new features to boost conversion rates, and business agility and productivity improvements

Posted on March 16, 2016 in PHP, Magento2

Installing Magento2 with Sample Data

  1. git clone https://github.com/magento/magento2.git

  2. cd magento2

  3. composer install

  4. Open browser to install Magento 2 as shown on the screen

  5. In the magento2 folder, run git clone https://github.com/magento/magento2-sample.data.git

  6. Change to the [your Magento sample data clone dir]/dev/tools/

  7. Type in command: php -f build-sample-data.php — —ce-source=”[your Magento CE install dir]”; i.e. /home/jeff/magento2

  8. 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


comments powered by Disqus