This guide covers how to configure your Project Zomboid server hosted with Legion Hosting — including the server settings file and sandbox variables through GPanel.
Overview of Configuration Files
Project Zomboid stores its server configuration in two files inside the /.cache/server/ directory on your server. Both files use your server's name as part of their filename.
| File | Purpose |
|---|---|
/.cache/server/servername.ini |
Core server settings — password, player slots, ports, PvP, voice chat, and more |
/.cache/server/servername_SandboxVars.lua |
Gameplay and world settings — zombie population, loot abundance, speed, respawn rates |
servertest unless you changed it. If you are unsure, check the GPanel Startup tab — it is the value in the Server Name field.
Step 1 — Open the File Manager in GPanel
- Log in to GPanel.
- Click your Project Zomboid server from the server list.
- On the Console tab, click Stop if the server is running. Wait for the status to change to Offline before continuing.
- Click the Files tab to open the file manager.
- Navigate to the
.cache/server/directory. You may need to click Show Hidden Files or toggle hidden file visibility if the.cachefolder is not visible — it begins with a dot.

Step 2 — Edit the Server Settings File (.ini)
The .ini file controls the core server configuration. Click the file to open it in the inline editor.
Commonly Changed Settings
| Setting | Description | Example Value |
|---|---|---|
PublicName |
The server name shown in the public server browser | My PZ Server |
PublicDescription |
Short description shown in the server browser | Welcome! Friendly server. |
Password |
Password players must enter to join. Leave blank for no password. | hunter2 |
MaxPlayers |
Maximum number of simultaneous players | 16 |
PVP |
Enable or disable player vs. player combat | true or false |
Public |
Whether the server appears in the public server list | true or false |
DefaultPort |
UDP port the server listens on (default 16261). Match this to GPanel's assigned port. | 16261 |
Map |
Map name. Use Muldraugh, KY for the default map. Append mod maps separated by semicolons. |
Muldraugh, KY |
Mods |
Semicolon-separated list of Mod IDs. B41 format: modid1;modid2. B42 format: \modid1;\modid2; |
2392509783;2400857388 |
WorkshopItems |
Semicolon-separated Workshop item IDs (must match the Mods list) |
2392509783;2400857388 |
Mods must have a matching entry under WorkshopItems. A mismatch is a common cause of server startup failures after adding mods.
After making your changes, click Save in the file editor. Do not start the server yet if you also want to edit sandbox variables — complete Step 3 first.
Step 3 — Sandbox Variables (Gameplay Settings)
Sandbox variables control the gameplay experience: how many zombies spawn, how fast they move, loot rarity, and dozens of other world parameters. These live in servername_SandboxVars.lua in the same /.cache/server/ directory.
Editing the SandboxVars File Directly
If you prefer to edit the file, the format is a Lua table. Each setting is on its own line:
SandboxVars = {
Zombies = 3, -- Population: 1=Insane, 2=Very High, 3=High, 4=Normal, 5=Low
Distribution = 2, -- Zombie distribution: 1=Urban focused, 2=Uniform
ZombieSpeedType = 3, -- Speed: 1=Sprinters, 2=Fast Shamblers, 3=Shamblers, 4=Crawlers
LootAbundance = 3, -- Loot: 1=Insane, 2=Abundant, 3=Normal, 4=Scarce, 5=Very Scarce
DayLength = 2, -- In-game day length in hours: 1=1h, 2=2h ... 15=15h, 16=Real Time
StartYear = 1, -- Starting year (offsets from 1993)
StartMonth = 7, -- Starting month (1–12)
StartDay = 9, -- Starting day (1–31)
WaterShut = 0, -- Tap water shutoff: 0=Never, 1=Instant ... 14=2 years
ElecShut = 0, -- Electricity shutoff: 0=Never, 1=Instant ... 14=2 years
HoursForCorpseRemoval = 0, -- 0=Never auto-remove
CharacterFreePoints = 0, -- Bonus starting trait points
}
Troubleshooting
My changes to the .ini file were not saved
- The most likely cause is that the server was still running when you saved the file. Project Zomboid overwrites the config on shutdown. Stop the server first, edit the file, save it, then start the server.
- Confirm you saved the file in GPanel's editor before navigating away — look for a confirmation toast or check that the file's last-modified timestamp updated.
I cannot see the .cache folder in the file manager
- Hidden directories (those starting with a dot) are not shown by default. Look for a Show Hidden Files toggle or checkbox in the GPanel Files tab and enable it.
- If the directory does not exist at all, the server has not run yet. Start and stop the server once to generate the config files, then edit them.
Sandbox settings are not changing in the live world
- Changes to the
_SandboxVars.luafile only take effect on a new world. For an existing running world, use the Options tab of the in-game admin panel to adjust settings without a wipe.