How to Set Up a FiveM Server: Step-by-Step Guide
Complete FiveM server setup guide on REXE VDS: installation, txAdmin configuration, port settings, and performance optimization tips for GTA V roleplay servers.
Set up a Project Zomboid dedicated server on REXE VDS with mod support, sandbox settings, and multiplayer configuration.
Project Zomboid is an isometric zombie survival game by The Indie Stone. With extensive mod support and sandbox settings, you can create a unique survival experience on your own dedicated server. This guide covers the complete Project Zomboid server installation on REXE VDS, including mod management and sandbox configuration.
| Resource | Minimum | Recommended |
|---|---|---|
| CPU | 2 Cores | 4+ Cores |
| RAM | 4 GB | 8+ GB |
| Disk | 10 GB SSD | 20+ GB NVMe |
| OS | Ubuntu 22.04+ | Ubuntu 22.04 LTS |
| Network | 10 Mbps | 50+ Mbps |
Project Zomboid server RAM consumption increases with mod count and map size. 8 GB+ RAM is recommended when using many mods.
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install lib32gcc-s1 lib32stdc++6 -y
sudo adduser steam --disabled-login
sudo su - steam
mkdir ~/steamcmd && cd ~/steamcmd
wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
tar -xzf steamcmd_linux.tar.gz
cd ~/steamcmd
./steamcmd.sh +force_install_dir ~/pzserver +login anonymous +app_update 380870 validate +quit
Project Zomboid Dedicated Server App ID: 380870. The initial download is approximately 3-5 GB.
Project Zomboid server requires Java:
sudo apt install openjdk-17-jre-headless -y
java -version
Start the server for the first time to generate configuration files:
cd ~/pzserver
./start-server.sh -servername rexeserver
Set a strong admin password when prompted. Then type quit to stop the server.
nano ~/Zomboid/Server/rexeserver.ini
PublicName=REXE Project Zomboid Server
PublicDescription=REXE Technology PZ Dedicated Server
MaxPlayers=32
Open=true
PVP=false
PauseEmpty=true
DefaultPort=16261
UDPPort=16262
Password=
MaxAccountsPerUser=5
PingLimit=400
HoursForLootRespawn=0
MaxItemsForLootRespawn=4
SaveWorldEveryMinutes=10
PlayerSafehouse=true
SteamVAC=true
Map=Muldraugh, KY
Mods=
WorkshopItems=
VoiceEnable=true
LoginQueueEnabled=true
LoginQueueConnectTimeout=60
ServerWelcomeMessage=Welcome to REXE Project Zomboid Server! <LINE> <RGB:1,0,0> Type /help for rules.
| Parameter | Description | Default |
|---|---|---|
| DefaultPort | Game port (UDP) | 16261 |
| UDPPort | Direct connect port (UDP) | 16262 |
| MaxPlayers | Maximum players | 32 |
| PVP | PvP enabled | false |
| PauseEmpty | Pause when empty | true |
| SaveWorldEveryMinutes | Auto-save frequency (min) | 10 |
Sandbox settings allow you to fully customize the game experience:
nano ~/Zomboid/Server/rexeserver_SandboxVars.lua
SandboxVars = {
Zombies = 4, -- 1=Insane, 2=Very High, 3=High, 4=Normal, 5=Low
Distribution = 1, -- 1=Urban Focused, 2=Uniform
DayLength = 2, -- 1=15min, 2=30min, 3=1hr, 4=2hr
StartMonth = 7,
StartDay = 1,
WaterShut = 2, -- 0=Instant, 1=0-30 days, 2=0-2 months
ElecShut = 2,
FoodLoot = 2, -- 1=Extremely Rare, 2=Rare, 3=Normal, 4=Common
WeaponLoot = 2,
XpMultiplier = 1.0,
ZombieSpeed = 3, -- 1=Sprinters, 2=Fast Shamblers, 3=Shamblers
ZombieStrength = 3, -- 1=Superhuman, 2=Normal, 3=Weak
ZombieTransmission = 1, -- 1=Blood+Saliva, 2=Saliva Only, 3=Everyone's Infected
ZombieCognition = 3, -- 1=Navigate+Use Doors, 2=Navigate, 3=Basic
EnableVehicles = true,
CarSpawnRate = 3,
}
Customize sandbox settings based on your community's preferences. For new players, set zombie speed to "Shamblers" and loot to "Normal".
To add mods, edit rexeserver.ini:
Mods=mod1;mod2;mod3
WorkshopItems=workshop_id1;workshop_id2;workshop_id3
Example popular mods:
Mods=Hydrocraft;Arsenal(26)GunFighter;Brita_2
WorkshopItems=2778991038;2297098490;2275412165
WorkshopItems line (semicolon-separated)Mods lineMod incompatibilities can cause server crashes. Test mods one by one.
nano ~/pzserver/start.sh
#!/bin/bash
cd ~/pzserver
./start-server.sh \
-servername rexeserver \
-adminpassword ADMIN_PASSWORD \
-ip 0.0.0.0 \
-port 16261 \
-udpport 16262 \
-players 32 \
-cachedir=/home/steam/Zomboid \
-Xmx4096m
chmod +x ~/pzserver/start.sh
| Port | Protocol | Usage |
|---|---|---|
| 16261 | UDP | Project Zomboid game port |
| 16262 | UDP | Direct connect port |
sudo ufw allow 16261/udp comment "PZ Game"
sudo ufw allow 16262/udp comment "PZ Direct"
sudo ufw reload
sudo nano /etc/systemd/system/pzserver.service
[Unit]
Description=Project Zomboid Dedicated Server
After=network.target
[Service]
Type=simple
User=steam
WorkingDirectory=/home/steam/pzserver
ExecStart=/home/steam/pzserver/start.sh
Restart=on-failure
RestartSec=30
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl enable pzserver
sudo systemctl start pzserver
nano ~/update_pz.sh
#!/bin/bash
echo "Stopping Project Zomboid server..."
sudo systemctl stop pzserver
~/steamcmd/steamcmd.sh +force_install_dir ~/pzserver +login anonymous +app_update 380870 +quit
sudo systemctl start pzserver
echo "Update complete."
chmod +x ~/update_pz.sh
crontab -e
0 5 * * * /home/steam/update_pz.sh
nano ~/backup_pz.sh
#!/bin/bash
BACKUP_DIR="/home/steam/pz-backups"
SAVE_DIR="/home/steam/Zomboid/Saves"
DATE=$(date +%Y%m%d_%H%M%S)
mkdir -p $BACKUP_DIR
tar -czf "$BACKUP_DIR/pz_save_$DATE.tar.gz" -C "$SAVE_DIR" .
find $BACKUP_DIR -name "*.tar.gz" -mtime +7 -delete
echo "Backup completed: pz_save_$DATE.tar.gz"
chmod +x ~/backup_pz.sh
crontab -e
0 */4 * * * /home/steam/backup_pz.sh
Basic admin commands from the server console:
/adduser username password
/addusertowhitelist username
/setaccesslevel username admin
/kickuser username
/banuser username
/save
/quit
Project Zomboid dedicated server setup can be completed quickly with SteamCMD. With comprehensive sandbox settings and mod support, you can create a unique zombie survival experience for your community. REXE VDS powerful infrastructure and Path.net DDoS protection ensure your server runs securely.
Minimum 4 GB RAM is required. 8 GB or more is recommended when using many mods. Mod count and map size directly affect RAM consumption.
Add the mod name to the Mods line and Workshop ID to the WorkshopItems line in rexeserver.ini. Multiple mods are separated by semicolons.
Sandbox settings are in ~/Zomboid/Server/rexeserver_SandboxVars.lua. You can customize zombie behavior, loot rates, weather, and more.
Two ports are used: 16261 (UDP) game port and 16262 (UDP) direct connect port. Both must be opened in the firewall.
Use /adduser to create a user and /setaccesslevel to grant admin privileges from the server console.
Add mods one by one and test. Check server logs to identify which mod is causing issues. Remove incompatible mods or use alternatives.
Complete FiveM server setup guide on REXE VDS: installation, txAdmin configuration, port settings, and performance optimization tips for GTA V roleplay servers.
Complete Minecraft server setup guide on REXE VDS: Paper/Spigot installation, Java configuration, plugin management, and performance optimization for stable gameplay.
Complete CS2 dedicated server setup guide on REXE VDS: SteamCMD installation, GSLT token, server configuration, game modes, and DDoS protection with Path Panel.