# 2. CMS setup

First of all, after uploading files to the root of the site, you need to set up a connection to your hosting's MySQL database.

{% hint style="info" %}
The database must already be created!

We will need following data for configuration:

* Database name;
* Database Login;
* Database password.
  {% endhint %}

After you specify all data above to connect to the MySQL database, you need to find the Config.php file in the root of the site

![config file](https://926669381-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MBKZbS5Cb7cxz5sHYKf%2F-MBP9RfBXYn24JKGo2vf%2F-MBPELxkBuMd_Rzz2ILE%2Fimage.png?alt=media\&token=6b91a76f-0ed0-4201-8c27-33757953eed0)

Open it in a text editor such as NotePad ++.

## Installing an API Key

The key is located in the [mmoweb.b](https://mmoweb.biz/)iz panel, in the information block, in the Group **secret key field**:

Copy the secret key

Paste it into your Config.php file like in example below:

```php
/**
* Это главный ключ группы он хранится в админ панеле
* This is the main key of the group it is stored in the admin panel.
*/
define('API_KEY',       "q08YmsGbX0lC)54U7ZJ1")
```

## Setting up a database connection

![DataBase connection settings](https://926669381-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MBKZbS5Cb7cxz5sHYKf%2F-MBP9RfBXYn24JKGo2vf%2F-MBPEeQMjopInb7dhpJ-%2Fimage.png?alt=media\&token=211a7d03-53b1-4a7d-9898-bd4f4392c08e)

| Key          | Value                                                                     |
| ------------ | ------------------------------------------------------------------------- |
| DB\_HOST     | Specify the address of the database. This is usually localhost            |
| DB\_NAME     | The name of the database where the personal account tables will be stored |
| DB\_USER     | Database connection login                                                 |
| DB\_PASSWORD | Database connection password                                              |

{% hint style="warning" %}
After you fill in the connection data, you need to set a new **Login** and **Password** to enter the admin panel of the cabinet.&#x20;

**By default, these settings are:**

**Login:** admin&#x20;

**Password:** admin
{% endhint %}

## Setting up access to the admin panel

![Setting up access to the MMO admin panel](https://926669381-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MBKZbS5Cb7cxz5sHYKf%2F-MBP9RfBXYn24JKGo2vf%2F-MBPFom3ZQkDPvBvpv4d%2Fimage.png?alt=media\&token=a817ef5c-45b2-4298-b71e-605f5f286261)

| Key               | Value                                  |
| ----------------- | -------------------------------------- |
| ADMIN\_PANEL      | Is the panel active: true/false        |
| ADMIN\_LOGIN      | Login login to the admin panel         |
| ADMIN\_PASSWORD   | Password to enter the admin panel      |
| TEMPLATE\_WYSIWYG | Whether to use text editor: true/false |

The admin panel will be available at url: **https: //[www.yousite/admin](http://www.yousite/admin)** if the following setting is active:

```php
define('ADMIN_PANEL',       true);
```

The basic settings are now complete.&#x20;

Now let's move on to running the installer.
