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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mmoweb.biz/quick-start-guide/cms-setup/nastroika-konfiga.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
