• 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!

Configuration Ubuntu - From nothing to complete server (TFS, ModernAAC, MySQL, Lighttpd)!

Mmm are you using No-ip? I had that problem but just restart ur computer and gotcha or the permison
 
This tutorial is not for Debian (you are required to define versions in debian, but ubuntu can hapily enjoy the newest version on updates :p).

@Zeo:
There are no website there, only a phpmyadmin folder.
 
cant compile 0.3.6pl1 in debug mode...

Code:
In file included from connection.cpp:19:
connection.h:41: error: expected unqualified-id before ‘<<’ token
make[1]: *** [connection.o] Error 1
Code:
#ifdef __DEBUG_NET__
#define PRINT_ASIO_ERROR(description) \
    std::cout << "[Error - " << __FUNCTION__ << "] " << description << " - "
 [B]       << error.message() << " (" << error.message() << ")" << [/B]std::endl;
#else
#define PRINT_ASIO_ERROR(x)
#endif
well I managed to compile it moving that line up.. dunno if there's a problem ;x
Code:
#ifdef __DEBUG_NET__
#define PRINT_ASIO_ERROR(description) \
    std::cout << "[Error - " << __FUNCTION__ << "] "  << description << " - " [B] << error.message() << " (" <<  error.message() << ")" << [/B]std::endl;
#else
#define PRINT_ASIO_ERROR(x)
#endif
 
Last edited:
Ye, that was fixed in SVN (by me), but not in the public release.
 
It feels like my Linux website is slower than my Windows website.

I think it is because my website running with WIndows is using eAccelerator and my Linux don't run any accelerators?

Do you mind giving a tutorial on how to get etc xCache to work properly?

Aight, tried to install a FTP server

But I have one problem with listing the directory!

After preparing the server, i used FileZilla Client to try to connect to it.

And here is the connection results:
Code:
Status:	Connecting to 188.126.223.74:7398...
Status:	Connection established, waiting for welcome message...
Response:	220 (vsFTPd 2.2.2)
Command:	USER ubuntu1
Response:	331 Please specify the password.
Command:	PASS *******
Response:	230 Login successful.
Command:	SYST
Response:	215 UNIX Type: L8
Command:	FEAT
Response:	211-Features:
Response:	 EPRT
Response:	 EPSV
Response:	 MDTM
Response:	 PASV
Response:	 REST STREAM
Response:	 SIZE
Response:	 TVFS
Response:	 UTF8
Response:	211 End
Command:	OPTS UTF8 ON
Response:	200 Always in UTF8 mode.
Status:	Connected
Status:	Retrieving directory listing...
Command:	PWD
Response:	257 "/home/ubuntu1"
Command:	TYPE I
Response:	200 Switching to Binary mode.
Command:	PASV
Response:	227 Entering Passive Mode (10,0,0,205,114,219).
Status:	Server sent passive reply with unroutable address. Passive mode failed.
Command:	PORT 192,168,0,5,196,15
Response:	500 Illegal PORT command.
[COLOR="red"]Error:	Failed to retrieve directory listing[/COLOR]
Status:	Creating directory '/home/ubuntu1/test'...
Command:	MKD test
Response:	257 "/home/ubuntu1/test" created
Status:	Retrieving directory listing...
Command:	PASV
Response:	227 Entering Passive Mode (10,0,0,205,184,229).
Status:	Server sent passive reply with unroutable address. Passive mode failed.
Command:	PORT 192,168,0,5,196,16
Response:	500 Illegal PORT command.
[COLOR="Red"]Error:	Failed to retrieve directory listing[/COLOR]

Any ideas? It looks like it manages to connect to the server, authenticate the username and password, but it will not list the dir?

Edit: I checked the server, and the folder "test" that I created does exist. But I can not see it on the FTP client.
 
Last edited:
@Znote:

1. Use SFTP, not FTP :) (Port 25)
2. Yes, PHP got to read trough 100kb+ every time you execute it, with APC/eaccelerator/xcache etc you save this generation time, also "setup" objects within PHP will be cached saving you runtime also.


sudo apt-get install php5-apc (should print the rest of the steps to install it, so I won't post them here).
 
Edit:
NVM!, It fixed after a restart!

For The Record:
Rev.3748 on Ubuntu seems stable (further tests are needed)
Code:
[22:44:13.435] >> Loading config (config.lua)
[22:44:13.436] >> Opening logs
[22:44:13.476] > Using SHA1 encryption
[22:44:14.144] >> Checking software version... running sub version, please mind it's unstable and only for testing purposes!
[22:44:14.144] > Current version information - version: 0.4_DEV, patch: 0, build: 0, timestamp: 1279592687.
[22:44:14.144] > Latest version information - version: 0.3.6, patch: 0, build: 3293, timestamp: 1260652199.
[22:44:14.145] >> Loading RSA key
[22:44:14.145] >> Starting SQL connection
[22:44:14.163] >> Running Database Manager
[22:44:14.199] > Updating database to version 26...
[22:44:14.357] > Database has been updated to version: 26.
[22:44:14.562] > Encryption set to SHA1.
[22:44:14.727] > Optimized database.
[22:44:14.727] >> Loading items (OTB)
[22:44:16.063] >> Loading items (XML)
[22:44:16.931] >> Loading groups
[22:44:17.145] >> Loading vocations
[22:44:17.156] >> Loading outfits
[22:44:17.173] >> Loading chat channels
[22:44:17.216] >> Loading script systems
[22:44:19.475] >> Loading mods...
[22:44:19.510] > Loading customspells.xml... done.
[22:44:19.546] > Loading custommonsters.xml... done.
[22:44:19.552] > Loading highscorebook.xml... done.
[22:44:19.556] > Loading changender_command.xml... done.
[22:44:19.565] > Loading buypremium_command.xml... done.
[22:44:19.576] > Loading firstitems.xml... done.
[22:44:19.576] > 6 mods were loaded.
[22:44:19.576] >> Loading experience stages
[22:44:19.576] >> Loading monsters
[22:44:22.377] >> Loading map and spawns...
[22:44:23.061] > Map size: 1000x1000.
[22:44:23.061] > Map descriptions: 
[22:44:23.061] "Saved with Remere's Map Editor 1.1.8"
[22:44:23.061] "The Forgotten Server"
[22:44:28.125] > Map loading time: 5.747 seconds.
[22:44:29.178] > Data parsing time: 1.053 seconds.
[22:44:37.836] > Houses synchronization time: 8.658 seconds.
[22:44:39.106] > Content unserialization time: 1.27 seconds.
[22:44:39.106] >> Checking world type... Open PvP
[22:44:39.106] >> Initializing game state and binding services...
[22:44:39.240] > Global IP address: 127.0.0.1
[22:44:39.240] > Local IP address(es): 127.0.1.1	
[22:44:39.241] > Bound ports: 7171	7172	
[22:44:39.241] >> Everything smells good, server is starting up...
[22:44:39.241] >> Forgotten server Online!

[I][B]theforgottenserver: /usr/include/boost/thread/pthread/condition_variable.hpp:32: bool boost::condition_variable::timed_wait(boost::unique_lock<boost::mutex>&, const boost::system_time&): Assertion `!cond_res' failed.[/B][/I]
Aborted
New error:
Code:
theforgottenserver: /usr/include/boost/thread/pthread/condition_variable_fwd.hpp:38: boost::condition_variable::~condition_variable(): Assertion `!pthread_cond_destroy(&cond)' failed.
what does this error mean?? is it a compiling error or what?
BTW I'm using TFS 0.4!
 
Last edited:
theforgottenserver: /usr/include/boost/thread/pthread/condition_variable_fwd.hpp:38: boost::condition_variable::~condition_variable(): Assertion `!pthread_cond_destroy(&cond)' failed.

Means you started, or try to start TFS two times on the same ports. Can be solved by running:

killall -9 theforgottenserver
 
How to fix that kind of error?


configure: error: "Linking against boost::system library failed."
 
Please help

my phpmyadmin is not working properly

my link http://localhost/
image:
pantallazo1m.png


My link http://localhost/phpmyadmin/index.php
image:
pantallazof.png


HElp :(
 
sudo apt-get install subversion autoconf build-essential pkg-config libboost-dev libgmp3-dev libxml2-dev liblua5.1-0-dev libmysqlclient-dev libcrypto++-dev ccache libboost-filesystem-dev libboost-regex-dev libboost-system-dev libboost-thread-dev screen
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libmysqlclient-dev is a virtual package provided by:
libmysqlclient15-dev 5.0.51a-3ubuntu5.7
You should explicitly select one to install.
E: Package libmysqlclient-dev has no installation candidate

Hmm

Edit:
E: Couldn't find package libboost-system-dev
 
Last edited:
@Jamzitox

sudo service mysql restart

Sometimes it seems that mysql is not started after installation.

@5mok3 Don't use 08.04 :p
 
root@121-240:~/tfs# make -j 2
make all-am
make[1]: Entering directory `/root/tfs'
g++ -I/usr/include/libxml2 -I/usr/include/lua5.1 -D__USE_MYSQL__ -D__WAR_SYSTEM__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -g -O2 -pipe -o theforgottenserver actions.o allocator.o baseevents.o beds.o chat.o combat.o condition.o configmanager.o connection.o container.o creature.o creatureevent.o cylinder.o database.o databasemanager.o databasemysql.o depot.o dispatcher.o exception.o fileloader.o game.o globalevent.o group.o house.o housetile.o ioban.o ioguild.o iologindata.o iomap.o iomapserialize.o item.o itemattributes.o items.o luascript.o mailbox.o manager.o map.o monster.o monsters.o movement.o networkmessage.o npc.o otserv.o outfit.o outputmessage.o party.o player.o position.o protocol.o protocolgame.o protocolhttp.o protocollogin.o protocolold.o quests.o raids.o rsa.o scheduler.o scriptmanager.o server.o spawn.o spells.o status.o talkaction.o teleport.o textlogger.o thing.o tile.o tools.o trashholder.o waitlist.o weapons.o vocation.o -llua5.1 -lmysqlclient -lcryptopp -lboost_filesystem-mt -lboost_date_time-mt -lboost_system-mt -lboost_regex-mt -lboost_thread-mt -lz -lgmp -lxml2
actions.o: In function `__static_initialization_and_destruction_0':
/usr/include/boost/system/error_code.hpp:205: undefined reference to `boost::system::get_posix_category()'
/usr/include/boost/system/error_code.hpp:209: undefined reference to `boost::system::get_posix_category()'
baseevents.o: In function `__static_initialization_and_destruction_0':
/usr/include/boost/system/error_code.hpp:205: undefined reference to `boost::system::get_posix_category()'
/usr/include/boost/system/error_code.hpp:209: undefined reference to `boost::system::get_posix_category()'
beds.o: In function `__static_initialization_and_destruction_0':
/usr/include/boost/system/error_code.hpp:205: undefined reference to `boost::system::get_posix_category()'
beds.o:/usr/include/boost/system/error_code.hpp:209: more undefined references to `boost::system::get_posix_category()' follow
collect2: ld returned 1 exit status
make[1]: *** [theforgottenserver] Error 1
make[1]: Leaving directory `/root/tfs'
make: *** [all] Error 2

Error in copile
 
Back
Top