• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Linux Web Server Installation On Debian 12 Bookworm

BrownDeveloper

New Member
Joined
Jun 25, 2018
Messages
20
Reaction score
0
Hello friends of OTland, I need your extensive expertise regarding a problem I've been experiencing for the past two days regarding the installation of my server's website.

I'm using Debian version 12 bookworm. I installed Apache2, PHP8.4, and MySQL following various tutorials, and I'm getting the same error when accessing the website, The tfs client work fine, and has been online right now and (turned on 30/06/25) is accessible from anywhere, the problem I have is accessing the OT website.

My Dear OTserver proyect files are as follows:
TFS 0.4 (8.60) working fine
Gesior Acc TFS-0.4_rev_3703+


Note: I used these same files a few years ago in Debian 7 or 10 not remember exactly and didn't encounter this issue.

The direct connection through Myipmachine.com/phpmyadmin works fine, but when I try to access the main page, it throws up this error.
rrorr.webp
Checking ERROR in error.log (apache2) = PHP Fatal error: php:error] [pid 68455:tid 68455] [client xxx.xxx.43.xxx:23045] PHP Fatal error: Cannot make static method PDO::connect() non-static in class Database in /var/www/html/classes/database.php on line 24

I'm not an advanced Linux user, but I'm pretty sure it's due to compatibility issues with the calls (pdo), which probably work differently in this version of Gesior Acc and idk how fix

Jerzy Skalski (Gesior) Gesior.pl,
I hope you see this post because I really need your help.​

 
Hello friends of OTland, I need your extensive expertise regarding a problem I've been experiencing for the past two days regarding the installation of my server's website.

I'm using Debian version 12 bookworm. I installed Apache2, PHP8.4, and MySQL following various tutorials, and I'm getting the same error when accessing the website, The tfs client work fine, and has been online right now and (turned on 30/06/25) is accessible from anywhere, the problem I have is accessing the OT website.

My Dear OTserver proyect files are as follows:
TFS 0.4 (8.60) working fine
Gesior Acc TFS-0.4_rev_3703+


Note: I used these same files a few years ago in Debian 7 or 10 not remember exactly and didn't encounter this issue.

The direct connection through Myipmachine.com/phpmyadmin works fine, but when I try to access the main page, it throws up this error.
View attachment 92863
Checking ERROR in error.log (apache2) = PHP Fatal error: php:error] [pid 68455:tid 68455] [client xxx.xxx.43.xxx:23045] PHP Fatal error: Cannot make static method PDO::connect() non-static in class Database in /var/www/html/classes/database.php on line 24

I'm not an advanced Linux user, but I'm pretty sure it's due to compatibility issues with the calls (pdo), which probably work differently in this version of Gesior Acc and idk how fix

Jerzy Skalski (Gesior) Gesior.pl,​

I hope you see this post because I really need your help.​

To use new versions of libraries, you must follow some rules, clean code!
For old codes, you must review them or use libraries from the version that was created, see the documentation of the website you are using and see which PHP version was created.

the method is not static, you must instantiate it as something:
PHP:
$db = new Database();
$db->connect();
or make it static.
 
Last edited:
To use new versions of libraries, you must follow some rules, clean code!
For old codes, you must review them or use libraries from the version that was created, see the documentation of the website you are using and see which PHP version was created.

the method is not static, you must instantiate it as something:
PHP:
$db = new Database();
$db->connect();
or make it static.
Dear friend please, u can help me to understand how can do this? how i can switch php version when was created the Gesior Acc TFS-0.4_rev_3703+?
 
BrownDeveloper 🤔
looking for your way is there any read-me.txt or .md talking about the site?
try reinstalling your PHP to 7.4.0 or you need to edit scripts, starting in database.php on line 24.
 
Last edited:
Gesior Acc TFS-0.4_rev_3703+?
I do not update old TFS versions acc. makers to new version of PHP.
https://github.com/gesior/Gesior2012/commits/TFS-0.4_rev_3703%2B/
branch was last time updated 4 years ago to be compatible with PHP 8.0.
PHP version on Debian 12 is PHP 8.2+, it may not be compatible with Gesior2012.

You should try MyAAC:
It's updated to latest PHP version, but works with old TFSes and even servers older than TFS.
Checking ERROR in error.log (apache2) = PHP Fatal error: php:error] [pid 68455:tid 68455] [client xxx.xxx.43.xxx:23045] PHP Fatal error: Cannot make static method PDO::connect() non-static in class Database in /var/www/html/classes/database.php on line 24
This error looks like you do not use current acc. maker for PHP 8.0 classes. Current code looks like this:
If you really want to run old acc. maker, you should try PHP 7.x or even 5.6.
Error may be also related to using SQLite database, not MySQL/MariaDB. Updated version of Gesior2012 for TFS 0.4 does not work with SQLite databases.
 
I do not update old TFS versions acc. makers to new version of PHP.
https://github.com/gesior/Gesior2012/commits/TFS-0.4_rev_3703%2B/
branch was last time updated 4 years ago to be compatible with PHP 8.0.
PHP version on Debian 12 is PHP 8.2+, it may not be compatible with Gesior2012.

You should try MyAAC:
It's updated to latest PHP version, but works with old TFSes and even servers older than TFS.

This error looks like you do not use current acc. maker for PHP 8.0 classes. Current code looks like this:
If you really want to run old acc. maker, you should try PHP 7.x or even 5.6.
Error may be also related to using SQLite database, not MySQL/MariaDB. Updated version of Gesior2012 for TFS 0.4 does not work with SQLite databases.
Thnx alot for u help Gesior, i managed to solve the problem using PHP 7.4 and MySQL 5.04 and the correct version of Manager that you mentioned. Now I have minor problems but I'm solving them little by little. I still need to fix a problem with the creation of chars
LUA:
https://otland.net/threads/cannot-save-itemslist-player-id-not-set.261701/#post-2531802
 
Back
Top