Installing Magento 2 on Cloudways Managed Magento Platform is easy. But having the skeleton of the Magento store is not enough, especially if you are running your server on the Magento optimized platform of Cloudways. Therefore, in this blog, we are going to guide you on how you can make your Magento 2 store ready to test with Sample Data.
There are two common methods by which we can setup Magento 2 Sample Data in your store. Composer and Magento CLI. For the sake of consistency, I will use Magento CLI in this post.
Step 1: Magento CLI
Make sure that Magento CLI path is exported. From store’s webroot, Issue the following command if Magento CLI’s path is not exported.
Step 2: Installation of Sample Data
Change your current directory to Magento’s Webroot and execute the following command:
There may be a chance that you will face error about URL authentication to repo.magento.com. If this is true, then execute “composer update” command. It will ask you for the username password which we’ve created from Magento Connect Account section.
Step 3: Finalize Installation
We will now use “magento setup:upgrade” command which will re-compile the code and will clear the cache.
Your Magento store is now ready for you to start testing with sample data. You can add products, delete products, try out the payment systems, and test your server load as well. If you have any issue in this process, you can comment below and I would be glad to help you out with the issue.
Boost Your Magento Store Performance by 5x Times & Maximize Your Sales
Our fastest Magento hosting can help you in growing your business revenue by 500%