Short answer
The server settings are in the .cache/Server folder, in files named after the server name from Startup parameters (by default Pterodactyl). Server rules such as the password, player limit and PVP are in the .ini file, world rules such as zombies, loot and weather are in _SandboxVars.lua. Edit both in Files while the server is stopped.
Two files, two different things
The server settings go into the .cache/Server folder, and the file names come from the server name in Startup parameters:
| File | What it controls |
|---|---|
Pterodactyl.ini | password, player limit, ports, mods, PVP, backups |
Pterodactyl_SandboxVars.lua | world rules: number of zombies, their strength, loot, weather, electricity |
Pterodactyl_spawnpoints.lua | the places where new players appear |
The fields you change most often
| Field | What it does |
|---|---|
Password | server password, empty means no password |
Open | when set to false, only accounts added by an admin can join |
MaxPlayers | player limit |
PVP | whether players can hurt each other |
PauseEmpty | whether time in the world stops when nobody is online |
SaveWorldEveryMinutes | how often, in minutes, the world is saved |
BackupsCount and BackupsOnStart | how many backups to keep and whether to make one on every start |
ServerWelcomeMessage | greeting shown after joining the server |
The server name, the admin username and password and the player limit are also in Startup parameters. More about joining, passwords and the whitelist is in Project Zomboid server for friends.
World rules: the sandbox
The world rules file covers everything that in single player you set with sliders before starting: the number and strength of zombies, how fast they respawn, the amount of loot, the length of the day, when power and water shut off.
Some of these settings only apply to newly generated terrain. Changing the amount of loot does not change the contents of houses someone has already visited, and a change to zombie respawning kicks in gradually, as players move into new areas.
Settings to handle with care
- The server name. The names of the files and the save folder come from it. Changing the name means the server generates a new, empty world, and the old one stays on the disk under the previous name.
- Extra maps from mods. Adding them to a world you have already played is possible, removing them leaves holes in the terrain.
- Starting map size. Terrain that has been generated once cannot be rebuilt without deleting the save.
.cache/Saves/Multiplayer folder to your computer. It takes a few seconds. You can also take a backup in the Server backups tab, see Backups.How to set up the server from scratch is in How to set up a Project Zomboid server. Ready to start? See Project Zomboid server hosting.
FAQ
In the .cache/Server folder, and the file name comes from the server name set in Startup parameters.
Set the Open field to false. Then only accounts added earlier by an admin can join the server.
Because they were made while the server was running. Zomboid saves its own version of the file when it shuts down and overwrites manual edits.
Some do, but settings for loot and terrain only apply in areas players have not visited yet.
Your own Project Zomboid server
Plans from 5.99 € a month, set up in a few minutes and managed from one panel.

