# Configuring Your The Forest Server (/docs/the-forest/configure-your-server)



import { Step, Steps } from 'fumadocs-ui/components/steps';

The Forest dedicated servers are configured through the `config.cfg` file. This guide covers how to access and modify your server settings.

Server Configuration [#server-configuration]

<div className="fd-steps">
  <div className="fd-step">
    Stop Your Server [#1-stop-your-server]

    Access the [XGamingServer Panel](https://panel.xgamingserver.com) and `Stop` your server.
  </div>

  <div className="fd-step">
    Open the Configuration File [#2-open-the-configuration-file]

    Go to `Files` and open the `config.cfg` file in the server's root directory.
  </div>

  <div className="fd-step">
    Edit Server Settings [#3-edit-server-settings]

    The configuration file uses key-value pairs. Here are the most common settings:

    | Setting                    | Description                   | Values                               |
    | -------------------------- | ----------------------------- | ------------------------------------ |
    | `serverName`               | Server name shown in browser  | Any text                             |
    | `serverPlayers`            | Maximum players               | 1-8                                  |
    | `serverPassword`           | Password to join              | Any text or blank                    |
    | `serverAutoSaveInterval`   | Auto-save interval in minutes | Number                               |
    | `difficulty`               | Game difficulty               | Peaceful, Normal, Hard, HardSurvival |
    | `initType`                 | New or continue game          | New, Continue                        |
    | `slot`                     | Save slot number              | 1-5                                  |
    | `treeRegrowMode`           | Whether trees regrow          | On, Off                              |
    | `vegetationMode`           | Vegetation density            | On, Off                              |
    | `enemySpawn`               | Whether enemies spawn         | On, Off                              |
    | `allowBuildingDestruction` | Can buildings be destroyed    | On, Off                              |
    | `allowCheats`              | Enable cheat commands         | On, Off                              |
  </div>

  <div className="fd-step">
    Save and Start Your Server [#4-save-and-start-your-server]

    Save your changes and start your server to apply the new settings.

    > 💡 **Tip:** Many common settings like server name, max players, and password can also be changed from `Startup` in the panel. See [Change Server Name](/docs/the-forest/change-server-name), [Max Players](/docs/the-forest/max-players), and [Set a Password](/docs/the-forest/set-a-password) for details.

    If you need help with configuration, join our [Discord](https://discord.xgamingserver.com) and we will assist you.
  </div>
</div>
