# Setup Module

####

{% embed url="<https://youtu.be/QEonX-r35Ts>" %}

**1. INSTALLATION FROM COMMAND LINE (RECOMMENDED)**

Your magento 2 extension can be installed in a few minutes by going through these following steps:

* Download/purchase the extension
* Unzip the file in a temporary directory
* Upload it to your Magento installation root directory
* Disable the cache under **System**->**Cache Management**
* Enter the following at the command line in **SSH terminal**:
* ```
  php bin/magento setup:upgrade
  php bin/magento setup:static-content:deploy
  ```
* After opening **Stores**->**Configuration**->**Advanced**->**Advanced**, the module will be shown in the admin panel

**2. MANUAL INSTALLATION**

* Download/purchase the extension
* Unzip the file in a temporary directory
* Upload it to your Magento installation root directory
* Disable the cache under **System**->**Cache Management**
* Edit **app/etc/config.php** file and three line code:\
  \&#xNAN;**‘Lof\_Affiliate’ => 1**
* Clean the cache under **System**->**Cache Management**
* After opening **Stores**->**Configuration**->**Advanced**->**Advanced**, the module will be shown in the admin panel

**3. UPGRADING DATABASE**

If you need to upgrade the database, run the following command line:

```
php  bin/magento setup:db-schema:upgrade
```

**Congrats! You finished install the extension, now you can go forward!**

Now your site will have a page name “**Lof Affilliate”** with link same <http://demo4coder.com/dev/affiliate/affiliate/home>
