> For the complete documentation index, see [llms.txt](https://docs.mmoweb.biz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mmoweb.biz/en/quick-start-guide/cms-setup/nastroika-konfiga.md).

# 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](/files/-MBPELxkBuMd_Rzz2ILE)

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](/files/-MBPEeQMjopInb7dhpJ-)

| 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](/files/-MBPFom3ZQkDPvBvpv4d)

| 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.
