> For the complete documentation index, see [llms.txt](https://docs.fivem-qbcore.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fivem-qbcore.com/how-to-install-fivem-qbcore-server-tutorial/publish-your-docs.md).

# How to Install a QBCore Server on Windows VPS TxAdmin

✅ **Prerequisites**

* ✅ A **Windows VPS** (with RDP access).
* ✅ **FiveM Artifacts** downloaded.
* ✅ **TXAdmin** installed.
* ✅ **XAMPP** installed (for MySQL).
* ✅ **HeidiSQL** installed (for managing the database).
* ✅ **Existing server files** from TXAdmin.

<mark style="background-color:green;">**🔹 Step 1: Install XAMPP and Configure MySQL**</mark>

* **Download & Install** [**XAMPP** ](https://www.apachefriends.org/download.html)from Apache Friends.
* During installation, **next only** and finish the following components:
* Start **XAMPP Control Panel** and click **Start** on **MySQL and Apache**.

<mark style="background-color:green;">🔹</mark> <mark style="background-color:green;"></mark><mark style="background-color:green;">**Step 2: Install HeidiSQL & Connect to Database**</mark>

1. **Download & Install HeidiSQL** from [HeidiSQL Official Site.](https://www.heidisql.com/)
2. Open HeidiSQL and create a new session:
   * **Network Type**: MySQL (TCP/IP)
   * **Hostname/IP**: `127.0.0.1`
   * **Username**: `root`
   * **Password**: (leave empty by default)
   * **Port**: `3306`
3. Click **Open** and select the `qbcore` database.&#x20;
4. **Import your QBCore SQL file** (`qbcore.sql`) into the database

<mark style="background-color:green;">🔹</mark> <mark style="background-color:green;"></mark><mark style="background-color:green;">**Step 3: Configure Server Files**</mark>

* **Download FiveM Artifacts** from the official [FiveM website](https://runtime.fivem.net/artifacts/fivem/build_server_windows/master/).
* Extract them into your **server directory** (e.g., `C:\QBCoreServer`).
* **Place your existing TXAdmin server files** into the server directory.
* Edit the `server.cfg` and put your license key.

<mark style="background-color:green;">🔹</mark> <mark style="background-color:green;"></mark><mark style="background-color:green;">**Step 4: Set Up TXAdmin**</mark>

* Open the **server directory** and run `FXServer.exe`.
* TXAdmin will open in your browser (`http://127.0.0.1:40120`).
* Log in and create a new **server profile**.
* Select **"Existing Server Files"** and point it to your **QBCore Server directory**.
* Click **Save & Start Server**.

<mark style="background-color:green;">**Step 5: Port Forwarding**</mark> <mark style="background-color:green;"></mark><mark style="background-color:green;">(If Hosting for Public Access)</mark>

* **Open Windows Defender Firewall** → Advanced Settings.
* Go to **Inbound Rules** → **New Rule**.
* Select **Port** → TCP & UDP → Enter **30120** → Allow Connection → Finish.
* **Restart your server**

### <mark style="color:red;background-color:green;">**Final Step: Connect to Your Server**</mark>

1. Open **FiveM** and press `F8`.
2. Type:

   ```
   connect YOUR-VPS-IP:30120
   ```
3. If everything is set up correctly, you will successfully join your **QBCore server!** 🎉

### ❓ <mark style="color:red;">**Troubleshooting**</mark>

* **Database not connecting?**
  * Ensure XAMPP MySQL is running and the connection string in `server.cfg` is correct.
* **Server not showing in FiveM?**
  * Ensure **port 30120 is open** and forwarded correctly.
* **Artifacts not working?**
  * Ensure you downloaded the correct version of FiveM artifacts.

Now your **QBCore Server** is set up and running on **TXAdmin using XAMPP, HeidiSQL, and Port Forwarding** on a **Windows VPS**! 🚀
