RESOURCES HUB
Premium
📅
Joined
Jul 22, 2025
💬
Messages
201
👍
Thanks
1,428
🏆
Points
425
📍
Location
London
Upload Server Files
You need:
- Server files (game, db, auth, share, etc.)
- Database backup (.sql files)
Upload your server files to your VPS using:
- FileZilla (SFTP)
- WinSCP
- SCP command
Example folder:
Code:
/usr/home/metin2
Move your files there.
Set Correct Permissions
Go to your server directory:
Code:
cd /usr/home/metin2
Set permissions:
Code:
chmod -R 777 *
Or better (recommended):
Code:
chmod -R 755 *
Make sure game and db binaries are executable:
Code:
chmod +x game
chmod +x db
chmod +x auth
Install Required Packages
Install required libraries:
Code:
pkg install gmake gcc cmake libmysqlclient
If your files are older (32-bit), enable 32-bit support:
Code:
pkg install compat12x-amd64
Configure Database
Login to MariaDB:
Code:
mysql -u root -p
Create databases:
Code:
CREATE DATABASE account;
CREATE DATABASE player;
CREATE DATABASE common;
CREATE DATABASE log;
Create user:
Code:
CREATE USER 'mt2'@'localhost' IDENTIFIED BY 'yourpassword';
GRANT ALL PRIVILEGES ON . TO 'mt2'@'localhost';
FLUSH PRIVILEGES;
Exit:
Code:
exit
Import SQL Files
If you have backup files:
Code:
mysql -u root -p account < account.sql
mysql -u root -p player < player.sql
mysql -u root -p common < common.sql
mysql -u root -p log < log.sql
Configure CONFIG Files
Open your CONFIG file:
Code:
ee CONFIG
Or:
Code:
nano CONFIG
Make sure database connection matches:
Code:
SQL_ACCOUNT = localhost mt2 yourpassword account
SQL_PLAYER = localhost mt2 yourpassword player
SQL_COMMON = localhost mt2 yourpassword common
SQL_LOG = localhost mt2 yourpassword log
Check:
- IP address
- Ports
- Channel settings
Save and exit.
Start the Server
Go to your server folder:
Code:
cd /usr/home/metin2
Start database first:
Code:
./db &
Start auth:
Code:
./auth &
Start game:
Code:
./game &
If you have start script:
Code:
sh start.sh
Check If Server Is Running
Check running processes:
Code:
ps aux | grep game
Check open ports:
Code:
sockstat -4





