• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Can't run homepage + ot at same time

madzor11

New Member
Joined
May 7, 2011
Messages
29
Reaction score
0
When I write Sqltype 'MYSQL' in config lua, I am able to create gesior homepage & access it, but I cannot establish my open tibia server to database.

When I'll write Sqlite I am able to run my server, but I am NOT able to accessing my homepage without getting error:
Parse error: syntax error, unexpected ';', expecting T_FUNCTION in C:\xampp\htdocs\pot\OTS_DB_SQLite.php on line 68

Anyone know something?
 
Try to write mysql lowercase.
You should not consider using sqlite.

Well, I import mysql file ofcourse..... When I'll write "MYSQL" As type in config.lua I can use my homepage, but cannot etablish connection to SQL database.
When I write "SQLITE" In config.lua I can use my OT SERVER, but NOT my homepage.
 
Well, I import mysql file ofcourse..... When I'll write "MYSQL" As type in config.lua I can use my homepage, but cannot etablish connection to SQL database.
When I write "SQLITE" In config.lua I can use my OT SERVER, but NOT my homepage.

Read what I said. The only thing you do it repeat yourself over and over again.
 
Error : Couldn't establish connection to SQL database something

Edit: And It can't find following database f.example name "Realmap" OVER Couldn't establish ~
, Error code 1048

But then ofc homepage works perfectly...

If I write sqlite its noone problem to run the server, but homepage is the problem :P
 
When using SQLite, you do not need to need connect to the database for example. But you wouldn't have your modernaacc/gesior acocunt there so it cannot connect to website.

When using MYSQL, and turning it on; your website automatically works as it the port 80 will be in use by only MYSQL, of which the website connects with. Always use MYSQL, double check the database name; since that error is only caused because you have wrote the wrong information in config.lua. That is the only reason why it does not work; because with wrong information, how can it connect to your database without the correct information? Double check if your database on your MYSQL has the same name as your database name in config.lua, double check the user/pw also.

If that does not work, sorry but nothing else can be done.

Rep me if it helped =]
 
Problem is that I have to write "mysql" in the config.lua to even install the homepage,
I can't do it while it is "sqlite"

when "sqlite" I can run server everything, see my point? :P
 
It's simple as when I have "SQLITE" in my config.lua on the server, and on phase 3 on GESIOR installer I'll get error:
Parse error: syntax error, unexpected ';', expecting T_FUNCTION in C:\xampp\htdocs\pot\OTS_DB_SQLite.php on line 68
 
Back
Top