How to make your own eCommerce site on the cheap-Part 2
Tags: magento2, ecommerce, opensource
Published: 2019-11-20 21:20:12

<p>This is a continuation of this article > "How to make your own eCommerce site on the cheap-Part 1". At this point, you should have a server and a domain name set up. Now, we are going to take it from a blank landing page to a real store! At this point, you can lean on the Magento dev docs, and a few other resources to get everything you need.</p>
<p>
Next, you are going to actually download the software from Magento.
</p>
<ol>
<li>Go to this link:https://magento.com/tech-resources/download</li>
<li>Click download on the latest stable version of Magento 2 with NO sample data as a zip file. The sample data build tends to break more than the build with no data. And, you probably want to put your products on the site anyways without deleting a bunch of made up products.</li>
<li>You will be asked to make an account, complete the account creation process. </li>
</ol>
<p>Now that it is downloaded you will log into your server and upload the zipped file to the root of your file system. If you unzip the file before you try to upload it, it will take a long time. There are a few different ways to do this, but since you are using Plesk it is very easy.
</p>
<ol>
<li>Log into your server</li>
<li>Click Files in the left navigation</li> 
<li>Click upload and upload the zipped file</li>
<li>Move it to your document root, which is httpdocs</li> 
<li>Unzip the file. This may take some time</li>
</ol>
<p>Once it is unzipped, you can follow the Magento install instructions which I will just link because they are pretty good. These are the instructions you want to follow: https://devdocs.magento.com/guides/v2.3/install-gde/prereq/zip_install.html. 
If you run into any issues during your process, there is a very good chance someone else has ran into the issue and you can just google the error message and get good results and help. The dev docs (which is what the link with the instructions is a part of) is a great place to start but you also have Magento’s StackExchange. This is a great place to ask questions and find answers, but be sure to follow community guidelines. Additionally, because Magento is opensource you can find out a lot on their GitHub: https://github.com/magento/magento2 . 
</p>
<p>
After installation, you want to log on to the back end through the admin link you created during installation. Let’s walk through some steps you will need to do to get your store running. When you first log into your backend you will probably get an error about “index not valid” or “cron job not running”. This just means you don’t have your backend jobs running properly, so you will go index management from the side menu:
</p>
![Menu in magento](https://thepracticaldev.s3.amazonaws.com/i/1fzt8u0hlr8h2exvq3id.png)
<p>Then select all indexes and update to schedule, so that it looks like this:</p>
![Indexes](https://thepracticaldev.s3.amazonaws.com/i/8n4cbaxet2sks7hbfeku.png)
<p>This can also be done through the CLI, which is the faster more recommended method. This is the command if you want to do it that way:</p>
<code>php bin/magento indexer:reindex</code>
<p>After updating your index, your error message will change to “your cache is out of date” or a similar error. From system tools go to cache management and select all and refresh. These should all also be enabled, so if any are disabled, enable them. You may also need to Flush the cache. This step can also be done with the CLI and the command is:</p>
<code>php bin/magento cache:flush</code>
<p>After this, your site will be operational and now you can do fun stuff like adding plugins, products, and themes. Once you get your site fully customized and have set up all of your payment handling solutions, you are good to go! 
</p>
<p>Here are some recommendations to get your site perfect (not sponsored):</p>
<ul>
<li>Plugins:</li>
<ul>
<li>Payment processing: Stripe</li> 
<li>Tax handling: Taxjar</li>
</ul>
<li>Themes</li>
<ul>
<li>https://marketplace.magento.com/</li>
</ul>
</ul>
<p>It is also recommended that you set up remote backups on your server before you do too much so that you can always restore your site.</p>
<p>Products can also be uploaded via CSV, and there are many paid services that will help you switch your products from a different system to Magento 2 if you already have a lot of products on another system.</p>

<p>It is also recommended to set up your site on Cloudflare, which helps prevent DDOS, and can make your site a lot faster.</p>

<p>Remember, the Magento community is open source so ask lots of questions! Good luck! 
</p>