01
Before you start
You need a VPS running Ubuntu 24.04 or Debian 12, root access (or a sudo user) and an SSH connection. The Project Zomboid server is a Java program that ships with its own Java runtime: it runs in a Linux container just as it does on a virtual machine, with no kernel module to load.
Three things to settle before buying anything:
- the game version: Build 42 is the current stable version, multiplayer included. The server and the players must run exactly the same version, and a world started on Build 41 does not load on Build 42;
- memory: no per-player figure holds for every server. Usage grows with the explored map area, the number of zombies and above all mods. Plan for headroom rather than a server that barely copes on the first evening, and keep about 2 GB for the system on top of what you give the game (the official wiki advises staying under about 80 % of the memory);
- the processor: much of the simulation runs on few cores, so single-core speed matters more than core count.
The guide choosing a VPS for a game server covers these criteria in detail. Then apply the basic security settings described in securing a Linux VPS.
02
Install SteamCMD and the server
On Ubuntu, SteamCMD is in the multiverse repository:
sudo apt install -y software-properties-common
sudo add-apt-repository -y multiverse
sudo dpkg --add-architecture i386
sudo apt update && sudo apt install -y steamcmd tmux
On Debian, first add the non-free section to your repositories (in /etc/apt/sources.list or /etc/apt/sources.list.d/debian.sources), then run the last two lines. The installation asks you to accept the Steam licence.
Next, create a dedicated user without admin rights and download the server with that account:
sudo useradd -m -s /bin/bash pzserver
sudo -iu pzserver
/usr/games/steamcmd +force_install_dir /home/pzserver/pz +login anonymous +app_update 380870 validate +quit
380870 is the Steam ID of the Project Zomboid dedicated server. An anonymous login is enough: the server is free, only players need the game. Keep +force_install_dir before +login, or SteamCMD ignores it.
03
First start, admin password and memory
Run the first start by hand, still as pzserver, because the server asks you to choose the administrator password:
cd /home/pzserver/pz
./start-server.sh -servername pz1
Type the password twice, wait for the server to finish generating the world, then type quit in the console to stop it cleanly. The name passed to -servername names the settings files and the world folder: use the same one every time.
The memory given to Java is set by the -Xmx option in ProjectZomboid64.json, at the root of the server. To give the game 6 GB on an 8 GB VPS:
sed -i 's/-Xmx[0-9]*[gGmM]/-Xmx6g/' /home/pzserver/pz/ProjectZomboid64.json
grep -oE -- '-Xm[sx][0-9]+[gGmM]' /home/pzserver/pz/ProjectZomboid64.json
If the second command also shows a -Xms value (starting memory), it must not exceed -Xmx, or Java refuses to start. An update can restore the original value: check it after every SteamCMD run. If the value exceeds the VPS's free memory, the server stops at startup or later, in the middle of a game.
To keep it running and restart it with the VPS, go back to your admin account (exit) and create a systemd service, which starts the server in a tmux session, in the file /etc/systemd/system/zomboid.service:
[Unit]
Description=Serveur Project Zomboid
After=network-online.target
Wants=network-online.target
[Service]
Type=forking
User=pzserver
WorkingDirectory=/home/pzserver/pz
ExecStart=/usr/bin/tmux new-session -d -s pz /home/pzserver/pz/start-server.sh -servername pz1
ExecStop=/usr/bin/tmux send-keys -t pz quit Enter
ExecStop=/bin/sh -c 'while /usr/bin/tmux has-session -t pz 2>/dev/null; do sleep 2; done'
TimeoutStopSec=120
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl enable --now zomboid
sudo -u pzserver tmux attach -t pz
The last command opens the server console; leave it with Ctrl+B then D, without stopping the game. Stopping the service sends quit, which saves the world before closing.
04
Settings and Workshop mods
The settings live in /home/pzserver/Zomboid/Server/, in three files named after the server:
pz1.ini: the server itself. Among others PublicName (the displayed name), Public (whether it appears in the server list), Password (the players' password), MaxPlayers, PVP, Open (let anyone create an account, or only whitelisted players) and PauseEmpty (pause time when nobody is connected);
pz1_SandboxVars.lua: the game itself (zombie count and speed, loot, seasons, water and power shut-off…);
pz1_spawnregions.lua: the towns where players can spawn.
Edit them with the server stopped: the server reads the files again when it restarts.
Workshop mods need two lines in pz1.ini, with semicolons between values:
WorkshopItems=: the Workshop numbers, taken from the address of the mod's page. The server downloads them at startup;
Mods=: the mod identifiers to enable (Mod ID), often listed at the bottom of the mod's description. One Workshop item can contain several, and the identifier is not always the displayed name.
A map mod also needs its folder name in the Map= line, before the original map (Muldraugh, KY). Some mods do not use the same identifier on Build 41 and Build 42: the safest way is to build the list from the game (the Host menu, server settings, mods tab), which writes the file in the right format on your computer, then copy the two lines to the VPS. Players download the same mods when they connect.
Add mods one at a time and restart between each: when the server refuses to start, the console log almost always names the faulty mod. Also check that each mod states it supports your game version.
05
Ports, firewall and connecting
The server waits for players on two UDP ports, set in pz1.ini:
- 16261 UDP (
DefaultPort): the port players type in;
- 16262 UDP (
UDPPort): the server's second UDP port, which must be open too.
sudo ufw allow OpenSSH
sudo ufw allow 16261/udp
sudo ufw allow 16262/udp
sudo ufw enable
sudo ss -ulpn | grep -i zomboid
The last command shows the UDP ports the server actually opened: if your version uses another one, open it too. The RCON remote console (RCONPort, 27015 by default, and RCONPassword, over TCP) must not be open to the whole Internet: keep it closed, or restrict it to your IP address.
To join, players choose Join in the game menu, then enter the VPS's IP address, port 16261, an account username and password, plus the server password if there is one. Ports for each game are listed in game server ports.
06
Backups and updates
Everything that makes up your game is in /home/pzserver/Zomboid/: the world in Saves/Multiplayer/, the settings in Server/, accounts and the whitelist in db/. A full backup, with the server stopped:
sudo systemctl stop zomboid
sudo -u pzserver tar czf /home/pzserver/pz-backup-$(date +%F).tar.gz -C /home/pzserver Zomboid/Saves/Multiplayer Zomboid/Server Zomboid/db
sudo systemctl start zomboid
Then copy the archive off the VPS (with scp or rsync to your computer or separate storage): a copy on the same machine does not protect you from a mistake on that machine. The pz1.ini file also has settings whose names start with Backups, so the server keeps a few copies of the world itself.
To update when the game ships a patch: stop the service, take a backup, run the installation SteamCMD command again as pzserver, check the -Xmx value, then restart. Up-to-date players cannot join an outdated server, and the reverse is also true. Before a major update, wait until your mods support it. To stay on Build 41, the game keeps a beta branch on Steam: check that it also exists for the server (the -beta option of +app_update) and that every player picks the same one.
07
At CloudFive, and when to choose something else
CloudFive has no ready-made Project Zomboid plan: the game is installed on a VPS, as described above. Our Linux VPS are well suited to it:
- the Ryzen VPS (Ryzen 9 9950X, DDR5, NVMe) for fast single-core performance, which matters as the map and mods grow heavier;
- the Intel VPS (Xeon E5-2687W v4, DDR4 ECC memory) for a less demanding game between friends;
- Linux containers with root access and nesting enabled, a dedicated IPv4 address, a 1 Gb/s network, servers in France, monthly with no commitment;
- an emergency console, snapshots and system reinstallation from the customer area, handy before a risky update;
- basic anti-DDoS protection included on every VPS. Filters specific to certain games are part of Premium Protection, an option: ask support what it covers for Project Zomboid. Good habits are in protecting a game server against DDoS attacks;
- support in French 7 days a week, by ticket, on Discord and by phone.
It is not the right choice if you want to manage nothing: a VPS means handling updates, mods and backups yourself. For a large, heavily modded community, a dedicated server gives you more memory and cores of your own; it also lets you run several games side by side (see hosting several game servers). If you would rather run the server on Windows, the dedicated server also exists for that system and installs on a Windows VPS. Plans and prices are on the pricing page.
08
Frequently asked questions
Can I get a Project Zomboid server without installing anything?
With CloudFive's Pterobox, you create your game servers from the customer area without installing anything, on a Ryzen 9 9950X with Anti-DDoS Premium included (cloudfive.fr/en/pterobox). If Project Zomboid is not in the catalogue yet, request it from the customer area. A VPS remains the most flexible option if you want to configure everything yourself.
How much RAM for a Project Zomboid server?
No per-player figure holds for every server: memory depends mostly on the explored map, the number of zombies and mods. Plan for headroom, keep about 2 GB for the system and set the game's memory with the -Xmx option in ProjectZomboid64.json.
Which ports to open for a Project Zomboid server?
Ports 16261 and 16262 UDP: the first is the one players type in, the second is the server's second UDP port (UDPPort). The RCON console, over TCP (27015 by default), must not be open to the whole Internet.
How to add Workshop mods to a Project Zomboid server?
In the server's .ini file, put the Workshop numbers in WorkshopItems= and the mod identifiers in Mods=, separated by semicolons, with the server stopped. The server downloads the mods at startup. Add them one at a time to spot the one causing trouble.
Can you host Project Zomboid on a Linux VPS?
Yes: the dedicated server exists for Linux and installs with SteamCMD (app 380870). It ships with its own Java and runs in a Linux container, with no kernel module.
Where are a Project Zomboid server's saves?
In the Zomboid folder of the account that runs the server: the world in Saves/Multiplayer, the settings in Server, the accounts in db. Copy these three folders with the server stopped, then keep a copy off the server.
Does CloudFive offer a ready-made Project Zomboid server?
No. CloudFive has no ready-made Project Zomboid plan: the game is installed on a Linux VPS (Ryzen or Intel), hosted in France, with root access, a dedicated IPv4 address and basic anti-DDoS included.