OrbitHost
Game hosting

Host a FiveM Server on Linux VPS (FXServer)

Run FXServer on Ubuntu for GTA V RP: artifacts, server.cfg essentials, ports, txAdmin, and when to use Pterodactyl vs raw VPS on European infrastructure.

By Sofia Martinez · Game Hosting Lead11 min read
Author
Sofia Martinez
Game Hosting Lead

Sofia runs OrbitHost game stacks — FiveM FXServer, Minecraft Paper/Purpur, and Pterodactyl Panel + Wings. She tunes tick rates, egg configs, and DDoS-aware ports so EU RP and survival communities stay online.

Choose raw VPS vs managed FiveM

Raw VPS means you install FXServer artifacts, manage `server.cfg`, updates, and backups yourself. Managed FiveM or a Pterodactyl egg trades some flexibility for less ops.

OrbitHost covers both: `/fivem-hosting` and `/game/fivem` for productized paths, plus KVM VPS if you want full SSH control. Use KVM — OpenVZ is a poor fit for game runtimes.

Prepare Ubuntu 24.04

Create a dedicated `fivem` user, install basic tools, and open ports before you publish the server list entry. Keep the OS patched; FXServer is a long-running network service.

sudo apt update && sudo apt upgrade -y
sudo apt install -y curl wget tar xz-utils git screen
sudo useradd -m -s /bin/bash fivem
sudo ufw allow OpenSSH
sudo ufw allow 30120/tcp
sudo ufw allow 30120/udp
sudo ufw enable

Download FXServer artifacts

Grab the latest recommended Linux artifacts from the Cfx.re artifacts browser. Unpack into `/home/fivem/fxserver` and keep a `server-data` directory beside it for resources and config.

Pin an artifact build that your framework supports. Blindly jumping to the newest build mid-wipe weekend is how you discover breaking changes live.

sudo -u fivem -i
mkdir -p ~/fxserver ~/server-data
cd ~/fxserver
# replace URL with current recommended Linux artifact
wget -O fx.tar.xz "https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/REPLACE_BUILD/fx.tar.xz"
tar -xJf fx.tar.xz
cd ~/server-data
git clone https://github.com/citizenfx/cfx-server-data.git .
# add your key, resources, and server.cfg here

Essential server.cfg settings

Set `sv_licenseKey`, hostname, tags, OneSync, and ensure `start`/`ensure` order matches your framework. Mis-ordered resources cause ghost bugs that look like “desync”.

Bind to the correct endpoint and do not leak database credentials in publicly shared cfgs. Prefer environment files or restricted permissions on secrets.

# example fragments — adapt to your framework
sv_hostname "OrbitCity | EU RP"
sets tags "roleplay, eu, qbcore"
sv_maxclients 64
set onesync on
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"
sv_licenseKey "cfxk_your_key_here"
ensure mapmanager
ensure chat
ensure sessionmanager
# ensure your framework + jobs after base resources

Run under screen or systemd

For a quick start, `screen` or `tmux` is fine. For production, write a systemd unit that restarts FXServer on crash and logs to journald.

txAdmin can manage the process for you if you enable it in the artifact — many EU cities standardize on txAdmin recipes for updates and recipes.

cd ~/fxserver
./run.sh +exec /home/fivem/server-data/server.cfg

# or systemd unit sketch:
# ExecStart=/home/fivem/fxserver/run.sh +exec /home/fivem/server-data/server.cfg
# User=fivem
# Restart=on-failure

Performance and player experience

Watch resmon for heavy ticks. Asset streaming, poorly written loops, and oversized MLOs hurt everyone regardless of host brand. Hardware cannot fix infinite server-side Wait(0) abuse.

NVMe helps resource restarts and DB-backed frameworks. Put MariaDB/Postgres on the same VPS for small cities; split DB when write load or backup strategy demands it.

  • Profile resources before buying more RAM
  • Keep artifact and game build compatibility noted
  • Back up server-data + database nightly
  • Use Frankfurt/AMS for EU player bases

Scaling path

When slots and script count grow, move from a single VPS to a larger Pro/Enterprise plan or dedicated metal. Pterodactyl helps if you also run test/staging servers beside production.

OrbitHost’s FiveM pages list current product options; this guide remains the raw FXServer path when you want SSH-level control.

FAQ

How much RAM for a FiveM RP server?

Small test servers can start around 4–6 GB. Serious RP cities with ESX/QBCore, many assets, and 64+ slots often want 16 GB+ and strong single-thread performance — Ryzen helps.

Linux or Windows for FXServer?

Linux is common for production FXServer. Some communities still prefer Windows RDP for tooling; both work on OrbitHost depending on the product you pick.

Which ports are required?

Default game/port is TCP/UDP 30120. Also allow the txAdmin port if you use it, and any voice/OneSync related ports your resources document.

Can I use Pterodactyl?

Yes — Wings + a FiveM egg is the usual panel path. Raw systemd is fine for a single city you manage over SSH.

Where should the VPS be located?

Closest major EU PoP to your player base. Frankfurt and Amsterdam cover most Central/Western Europe communities well.

Ready to Launch?

Create your server today.