Comprehensive tutorial to install and configure a Tibia server on Linux using The Forgotten Server (TFS).
This guide walks you through setting up a Tibia server on a Linux system using The Forgotten Server (TFS). You'll learn how to install necessary dependencies, configure the server, and set up a web interface for account management.
sudo apt update && sudo apt upgrade -y
sudo apt install -y build-essential cmake git libboost-system-dev libboost-filesystem-dev libboost-regex-dev liblua5.2-dev libmysqlclient-dev libssl-dev libxml2-dev libgmp-dev libboost-iostreams-dev
git clone https://github.com/otland/forgottenserver.git
cd forgottenserver
mkdir build && cd build
cmake ..
make -j$(nproc)
Copy the sample configuration file and edit it:
cp ../config.lua.dist ../config.lua
nano ../config.lua
Update the following parameters:
sqlType = "mysql"
sqlHost = "127.0.0.1"
sqlPort = 3306
sqlUser = "your_mysql_user"
sqlPass = "your_mysql_password"
sqlDatabase = "tfs_database"
sudo apt install -y mysql-server
sudo mysql -u root -p
Within the MySQL prompt:
CREATE DATABASE tfs_database;
CREATE USER 'your_mysql_user'@'localhost' IDENTIFIED BY 'your_mysql_password';
GRANT ALL PRIVILEGES ON tfs_database.* TO 'your_mysql_user'@'localhost';
FLUSH PRIVILEGES;
EXIT;
Import the TFS schema into your MySQL database:
mysql -u your_mysql_user -p tfs_database < ../schema.sql
cd ../
./tfs
The server should now be running. Monitor the console for any errors.
Install necessary packages:
sudo apt install -y apache2 php php-mysql libapache2-mod-php php-xml php-mbstring
Download and configure Znote AAC:
cd /var/www/html
sudo git clone https://github.com/Znote/ZnoteAAC.git
cd ZnoteAAC
sudo cp config.php.dist config.php
sudo nano config.php
Update database credentials in config.php
accordingly.
Restart Apache:
sudo systemctl restart apache2
Access the web interface via
http://your_server_ip/ZnoteAAC
.
ufw
to restrict access.