How to Install a Custom QBCore Server on Any Linux VPS/Dedicated Server Using TXAdmin
This guide will help you install and run a custom QBCore FiveM server on any Linux VPS or dedicated server using TXAdmin. It covers everything from installing dependencies to setting up your database,
✅ Prerequisites
Before you begin, make sure you have:
✅ A Linux VPS or Dedicated Server (Ubuntu 20.04/22.04 or Debian recommended).
✅ Root SSH access to your server.
✅ A custom QBCore server package (your own server files).
✅ Your MySQL database credentials.
✅ Port 30120 open for public access.
🔹 Step 1: Update Linux & Install Dependencies
Connect to your server via SSH:
Update the system:
Install required dependencies:
🔹 Step 2: Install MariaDB (MySQL Alternative)
Install MariaDB:
Start and enable MariaDB:
Run the security script to set up a secure database:
Set a strong root password.
Remove anonymous users.
Remove test databases.
🔹 Step 3: Create a MySQL Database for QBCore
Log into MySQL:
Create a new database:
(Replace strongpassword
with a secure password.)
🔹 Step 4: Install FiveM (FXServer) and TXAdmin
Create a server directory:
Download the latest FiveM artifacts:
Download TXAdmin’s default files:
🔹 Step 5: Upload Your Custom QBCore Server Files
Use SFTP (FileZilla or WinSCP) to upload your custom QBCore server files to
/home/qbcore/server-data
.Extract the server files:
🔹 Step 6: Configure Server Settings
Open the
server.cfg
file:Edit the database connection:
(Replace
qbuser
andstrongpassword
with your actual database credentials.)Save and exit:
CTRL + X
, thenY
, thenEnter
.
🔹 Step 7: Import QBCore Database
Run the following command to import your QBCore SQL file:
Enter the database password when prompted.
🔹 Step 8: Start TXAdmin and FiveM Server
Navigate to your FiveM folder:
Start the FiveM server:
TXAdmin will start, and you can access it in your browser:
Log in and create a new server profile.
Select "Manual Setup" and point TXAdmin to your custom server directory.
Save and start the server.
🔹 Step 9: Port Forwarding (If Hosting Publicly)
To allow external players to connect, open port 30120:
On Ubuntu/Debian
On CentOS/RHEL
Restart your server for the changes to apply.
✅ Final Step: Connect & Play
Open FiveM and press
F8
.Type:
If everything is set up correctly, you will successfully join your QBCore server! 🎉
❓ Troubleshooting
Server not starting?
Check TXAdmin logs:
Ensure FiveM artifacts are correctly installed.
Database connection issues?
Verify MySQL credentials in
server.cfg
.
Players can't join?
Ensure port 30120 TCP/UDP is open.
🔄 Enable Auto-Restart on Reboot (Optional)
To make the server auto-restart when the VPS reboots:
Add the following line:
This will automatically start your server on reboot.
🎉 Your Custom QBCore Server is Now Running on Linux TXAdmin!
Now your custom QBCore server is running on any Linux VPS/Dedicated server with TXAdmin hosting! 🚀
Let me know if you need modifications! 😊
Last updated