> For the complete documentation index, see [llms.txt](https://blueskytechcompany.gitbook.io/minimog/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://blueskytechcompany.gitbook.io/minimog/theme-installation/how-to-install/base_start_package.md).

# Base\_Start\_Package

{% hint style="info" %}
Install only template: If you exist a magento website or don't want to use our demo database, you can use Base\_Start\_Package.
{% endhint %}

### 1. Prepare Installation

In this guide, We assume that you already have Magento installed, so to prepare installation, you need to do the following steps:

* Backup your Magento source files and your store database:

  Creating a backup is very imporant before installing theme, especially when you are working on a live site. Please don't ignore this step.
* Disable all cache on your server:

  Any additional cache on your server, for instance PHP cache engines, APC, ...
* Enable Maintenance mode for your store before uploading theme source.

### 2. Install

![](https://1228290169-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOKXJeKzPNYFTVQat5VJw%2Fuploads%2FoHb0OjPSTfGXKSH9EIeV%2FScreen%20Shot%202022-08-02%20at%2017.36.30.png?alt=media\&token=8ee8a249-44ab-4fdb-bf54-905a6bfac4ac)

**Download our theme package files from themesforest and Extract this package. You can use Base\_Start\_Package**

***Step 1:*** Upload all folders in minimog\_theme: app, lib, pub to the root directory ( www, public\_html) of your magento folder. You can use a FTP software, such as FileZilla, then login to your hosting to do it.

\ <mark style="color:red;">**Important notice: If you are using version 2.3.7 or lower, it is necessary to replace the variable $escaper with $block. You can do this in two ways:**</mark>

&#x20;      <mark style="color:red;">**\* Option 1: Using a code editor (such as Sublime Text, Notepad++, or Visual Studio Code):**</mark>

1. <mark style="color:red;">**Open the "minimog\_base" folder.**</mark>
2. <mark style="color:red;">**Press Ctrl+H to open the Find and Replace dialog.**</mark>
3. <mark style="color:red;">**Replace all occurrences of $escaper with $block.**</mark>
4. <mark style="color:red;">**Click on "Replace All" to apply the changes.**</mark>

<figure><img src="https://1228290169-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOKXJeKzPNYFTVQat5VJw%2Fuploads%2FljCrFDFnLTE4EpHDi6hg%2Freplace_1.png?alt=media&amp;token=120e912b-7fa3-4868-b824-144ff016259c" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1228290169-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOKXJeKzPNYFTVQat5VJw%2Fuploads%2FuubEYKJceBXbWdxz6xSI%2Freplace_2.png?alt=media&amp;token=749a5e63-a946-4493-953e-2c1d7a58dd05" alt=""><figcaption></figcaption></figure>

&#x20;     <mark style="color:red;">**\* Option 2: Using the command line:**</mark>

1. <mark style="color:red;">**Connect to your server via SSH (you can use tools like Putty, Terminus, or mRemoteNG).**</mark>
2. <mark style="color:red;">**Navigate to the "app" folder using the command:**</mark>

{% hint style="success" %}

1. cd /public\_html/minimog\_242/app/
   {% endhint %}

3) <mark style="color:red;">**Execute the following command to replace the variable:**</mark>

{% hint style="success" %}

```
find . -name "*.phtml" -exec sed -i 's/$escaper/$block/g' {} \;
```

{% endhint %}

&#x20;         <mark style="color:red;">**This command will find all files with the extension ".phtml" and replace every occurrence of $escaper with $block.**</mark>

***Step 2:*** Upload patch folder (You can skip this step if using magento version 2.4.3.x)

For 2.3.5 version or lower version, upload and overwrite files in the patch\_for\_magento\_2.3.5\_and\_below folder.

For 2.3.6 version, upload and overwrite files in the patch\_for\_magento\_2.3.6 folder.

For 2.3.7 version, upload and overwrite files in the patch\_for\_magento\_2.3.7 folder.

For 2.4.0 or 2.4.1 version, upload and overwrite files in the patch\_for\_magento\_2.4.0\_and\_2.4.1 folder.

For 2.4.2 version, upload and overwrite files in the patch\_for\_magento\_2.4.2 folder.

For 2.4.4 version, upload and overwrite files in the patch\_for\_magento\_2.4.4 folder.

For 2.4.5 version, upload and overwrite files in the patch\_for\_magento\_2.4.5 folder.

For 2.4.6 version, upload and overwrite files in the patch\_for\_magento\_2.4.6 folder.

For 2.4.7 version, upload and overwrite files in the patch\_for\_magento\_2.4.7 folder.

<mark style="color:red;">**Make sure that you upload all theme folders and files successfully. You disable Maintenance Mode for your store.**</mark>

***Step 3:*** Go to SSH on server and cd to root magento and run commandlines below

* Note: If you have use old magento  2.4.2 or lower magento version.. You need run command composer require lib for old version magento. Magento page builder public in version 2.4.3. Pls run:\ <mark style="color:red;">**composer require phpgt/dom**</mark>
* php bin/magento cache:flush
* php bin/magento indexer:reindex
* php bin/magento setup:upgrade
* php bin/magento setup:static-content:deploy -f
* sudo chmod -R 777 var pub generated (if you use linux)

How to add CLI commands. Pls check here: <https://devdocs.magento.com/guides/v2.4/config-guide/cli/config-cli.html>

***Step 4:*** Finish install. You can next step [**Activation Purchase Code**](/minimog/theme-installation/activation-purchase-code.md)**.**

* Copyright © 2022 [Blueskytechco.com](https://blueskytechco.com/). All Rights Reserved.
