Skip to content

AS213941 · Peering-20% on all VPS with code NVH20 · Delivered in 60 seconds

Linux VPSFrom 2,49 €/monthWindows VPSFrom 3,49 €/monthFiveM serverFrom 0,99 €/monthMinecraft serverFrom 1,99 €/month
VPS & Cloud

Ranges

Linux NVMe VPSRoot access, Debian, Ubuntu, Alma…Windows RDP VPSRemote desktop, licence includedDedicated serversIntel Xeon Gold, exclusive resourcesPterodactyl VPSGame panel preinstalled

Network and hosting

Anti-DDoSWeb hostingColocationIP transitVPN

Professionals

Reseller VPSReseller programme
Solutions

Bots and automation

AI agents VPSA server for your coding assistants and autonomous agentsOllama VPSYour private AI without a GPU, data in FranceTelegram bot VPSPython or Node.js, always reachableDiscord bot VPSMusic, moderation, tickets: no downtimen8n VPSWorkflows with no execution limitVPN VPSAn encrypted tunnel exiting in FranceWeb scraping VPSScheduled data collection, dedicated IP

Trading

Forex VPSYour robots manage positions overnightMetaTrader 4 VPSSeveral MT4 terminals on one machineMetaTrader 5 VPSForex, indices and stocks in MT5NinjaTrader VPSFutures and NinjaScript strategiesProp firm VPSChallenges and funded accounts, terminal always onlineAfrica trading VPSMetaTrader in Paris, from North or West AfricaRDP VPSWindows remote desktop, always onTrading bot VPSOpen-source crypto bots, protected API keys

Windows desktop

Windows 10 VPSFor software that requires Windows 10Windows 11 VPSA modern Windows desktop, reachable anywhereSEO VPSLarge-site crawls without tying up your PCStreaming VPSAn OBS studio streaming from the data centreWordPress VPSFast websites on NVMe disks
Marketplace

AI

OllamaLocal language models, with no external APIOpen WebUIA chat interface for your Ollama modelsAnythingLLMA private AI assistant for your documentsLangflowVisual editor for agents, RAG flows and AI APIsFlowiseBuild AI agents and chatbots visuallyQdrantVector database for RAG and semantic search

Trading

MetaTrader 5Official MT5 terminal, ready for your EAsMetaTrader 4Official MT4 terminal, ready for your EAsForex VPS pack (MT4 + MT5)MT4 and MT5 together, on a VPS tuned for tradingNinjaTrader 8NinjaTrader 8 with its prerequisitesFreqtradeOpen-source crypto trading bot, in simulation modeInteractive Brokers TWS / IB GatewayTWS or IB Gateway, official stable version

Bots and agents

Claude CodeAnthropic's coding agent, in your terminalCodex CLIOpenAI's command-line coding agentTelegram botYour Telegram bot, with automatic restartDiscord botYour Discord bot, with automatic restartOpenClawOpen-source personal AI assistant, active 24/7Hermes AgentAutonomous open-source AI agent

Deployment and automation

DockerThe container engine and Docker Composen8nYour automations, with no execution limitPortainerManage your Docker containers from your browserCoolifyDeploy your applications from Git, on your own serverUptime KumaMonitor your sites and servers, with alerts

Websites and databases

WordPressThe most widely used CMS, on a fast Nginx stackApache + PHP + MySQLApache, PHP and MariaDB, ready for your sitesMySQL (MariaDB)MySQL-compatible database serverPleskPlesk hosting panel, with your own licenceNextcloudYour own cloud for files, calendar and contacts

Network and security

WireGuardYour encrypted VPN, preinstalled as a paid optionVaultwardenA self-hosted password manager

Game servers

FiveMFiveM server with txAdmin and MariaDB, ready to useMinecraftTurnkey Minecraft Java server, plugins and mods includedRustRust server with automatic updates and Oxide or CarbonCounter-Strike 2Dedicated Counter-Strike 2 server, installed for youPalworldDedicated Palworld server, installed for youValheimDedicated Valheim server, installed for you
Gaming

Game servers

FiveM servertxAdmin, ESX, QBCoreMinecraft serverJava, Bedrock, modpacksRust serverOxide, Carbon, wipesNova-Life serverNova-Life: Amboise RP

Protection and tools

FiveM Anti-DDoSFree tools
Resources

Learn

DocumentationBlog

Assistance

ContactSLA commitment
View plans Client area Peering · AS213941

FiveM · Tutorial · 15 min

Install a FiveM server on a VPS: the complete guide

By the NVHCloud team · 5 Nov 2026 · 15 min read

Renting a VPS and installing FiveM yourself takes about an hour and gives you plenty of freedom. This guide covers the full procedure on a bare Linux server, from the first apt update to a server that restarts by itself, with the pitfalls that waste an evening.

1. What you need

FiveM runs on a modest machine, but game logic relies heavily on one thread, so a fast CPU helps more than many cores.

Minimum to start: 2 vCPUs, 4 GB of RAM and 20 GB of disk on a Linux VPS with Debian 12 or Ubuntu 22.04. For a full roleplay server with a framework and a database, plan 8 GB. You also need root SSH access and a Cfx.re account.

💡 Prefer a web panel that installs and monitors the server for you? See our Pterodactyl VPS with its first steps guide, or managed FiveM servers.

2. Prepare the VPS

apt update && apt upgrade -y
apt install -y curl xz-utils git screen

Never run FXServer as root. It runs third-party scripts, and a malicious resource would control the whole machine. Create a dedicated user:

adduser --disabled-password --gecos "" fivem
mkdir -p /home/fivem/server
chown -R fivem:fivem /home/fivem
su - fivem

3. Install the FiveM artifacts

Artifacts are the server itself (FXServer). Download them from runtime.fivem.net/artifacts/fivem/build_proot_linux/master/. Pick a recent recommended build, copy the link to fx.tar.xz, and replace XXXX below with the exact value from the link.

cd /home/fivem/server
wget https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/XXXX/fx.tar.xz
tar xf fx.tar.xz
rm fx.tar.xz

Then get the base resources maintained by Cfx.re:

cd /home/fivem
git clone https://github.com/citizenfx/cfx-server-data.git server-data

Keeping server (the engine) and server-data (resources and configuration) separate makes updates much simpler.

4. Get the Cfx.re key

A FiveM server needs a licence key. Sign in at portal.cfx.re, generate a server key with your VPS IP address and keep it safe. One key is for one server.

⚠️ Treat this key like a password. Never show it in a screenshot, a public Git repository or a forum post. If it leaks, revoke it in the portal and generate a new one.

5. Write server.cfg

Place server.cfg in server-data. Here is a minimal but complete configuration to adapt:

# Network: 0.0.0.0 listens on all interfaces
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"
# Name shown in the server list
sv_hostname "My RP server"
sets locale "en-GB"
sets tags "roleplay"
# Base resources
ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure basic-gamemode
ensure hardcap
# Players and synchronization
sv_maxclients 48
set onesync on
# Licence and security
sv_licenseKey "YOUR_CFX_KEY"
rcon_password "a-long-unique-password"
# Administrator (use your identifier)
add_ace group.admin command allow
add_principal identifier.fivem:YOUR_ID group.admin
  • sv_maxclients: without OneSync, a server is limited to 32 players. Above 48, your Cfx.re key must be tied to a subscription that allows it.
  • rcon_password: never leave it empty or set to "changeme", because it gives full console access.

6. First start and txAdmin

To start directly with your configuration:

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

Or use txAdmin, the web interface shipped with the artifacts, which handles restarts, bans and backups:

cd /home/fivem/server
bash run.sh

The console shows a link with a one-time code. Open http://VPS_IP:40120, create the administrator account with a strong password and follow the steps. txAdmin can point to an existing server-data folder.

7. The database, if you use a framework

ESX and QBCore store characters, inventory and economy in a MySQL database. Install MariaDB as root:

apt install -y mariadb-server
mysql_secure_installation

Create a dedicated database and user rather than using root:

CREATE DATABASE fivem CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'fivem'@'localhost' IDENTIFIED BY 'a-long-password';
GRANT ALL PRIVILEGES ON fivem.* TO 'fivem'@'localhost';
FLUSH PRIVILEGES;

Then set the connection in server.cfg, before the resources that need it:

set mysql_connection_string "mysql://fivem:a-long-password@localhost/fivem?charset=utf8mb4"

Keep MariaDB listening locally only: a database exposed to the Internet is quickly found by scanners. See securing MariaDB.

8. Make the server restart by itself

Started by hand, the server stops when you close SSH and does not return after a reboot. Create /etc/systemd/system/fivem.service:

[Unit]
Description=FiveM server
After=network.target mariadb.service
[Service]
Type=simple
User=fivem
WorkingDirectory=/home/fivem/server
ExecStart=/bin/bash /home/fivem/server/run.sh +exec /home/fivem/server-data/server.cfg
Restart=on-failure
RestartSec=10
[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl enable --now fivem
systemctl status fivem

Read logs with journalctl -u fivem -f. If you drive the server with txAdmin, run txAdmin as the service instead, so that two managers do not fight over the same instance.

9. Check that everything works

ss -tulpn | grep 30120

You should see one TCP line and one UDP line. Then, in FiveM, open the F8 console and type connect VPS_IP:30120. The server can take a few minutes to appear in the list after its first start.

10. Update the artifacts

Replace the contents of server, never server-data. Replace XXXX with the build you want.

systemctl stop fivem
mv /home/fivem/server /home/fivem/server.old
mkdir /home/fivem/server && cd /home/fivem/server
wget https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/XXXX/fx.tar.xz
tar xf fx.tar.xz && rm fx.tar.xz
chown -R fivem:fivem /home/fivem/server
systemctl start fivem

Keep the old folder for a few days: if the new build breaks a resource, going back takes a minute.

11. Back up

mkdir -p /home/fivem/backups
mysqldump -u fivem -p fivem > /home/fivem/backups/fivem-$(date +%F).sql
tar czf /home/fivem/backups/server-data-$(date +%F).tar.gz /home/fivem/server-data

Schedule this and copy the archives off the VPS: a backup stored on the machine it protects does not protect much.

12. Secure the server

In order of importance: a dedicated non-root user, SSH keys instead of passwords (see SSH hardening and two-factor SSH), a long RCON password, txAdmin restricted to your IP, and system updates. Game servers are frequent DDoS targets: see Anti-DDoS and FiveM protection. Be wary of resources from file-sharing sites: an obfuscated script can steal player data or mine cryptocurrency.

13. Common problems

  • "Invalid license key": the key is revoked, tied to another IP or copied incorrectly. See common startup errors.
  • The server starts and stops immediately: read journalctl -u fivem -n 50. It is often a missing resource or a syntax error.
  • Nobody can connect: check that port 30120 is reachable in UDP as well as TCP.
  • Port already in use: a previous instance is still running.
  • Lag at peak times: see FiveM server lag.

Frequently asked questions

What VPS do I need for a FiveM server?

2 vCPUs and 4 GB of RAM are enough to start and test. For a 64-player roleplay server with a framework and a database, plan 8 GB and a fast CPU.

Do I have to pay for a FiveM licence?

A basic Cfx.re server key is free from the portal. Above 48 slots, you need a subscription that allows that number of players.

Can I install FiveM on a Windows VPS?

Yes, but Linux is the usual choice: lower memory use, simple automatic restarts, and most community guides assume Linux.

Turnkey FiveM server

txAdmin preinstalled, GCore Anti-DDoS included, delivered in 60 seconds.