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

Well my problems are :

When i go to http://localhost/ it says something like "it works!, now you only have to edit ...blab."
But when i go to http://localhost/phpmyadmin/index.php it goes 404

The other is that

When i try to install the 0.4 it ask me for a username and a password from the svn web i tried putting mines but it says that username is not found
i dont want to install the 0.3p TFS s:

The last one is when

I type in the sudo
Code:
sudo apt-get install lighttpd php5-cgi
sudo lighty-enable-mod fastcgi
ddzy12.jpg

it says if i want to download press Y/N to continue
When i press either y or n it says "Abort" and nothing happens
 
Last edited:
i tried the big Y and still nothing.
EDIT: Kill Screen and give it a go -

Looks like i alredy have port 80 used
Maybe the xampp i have in windows is causing it
Wat do?
Code:
 * Starting web server lighttpd                                                 2010-08-22 18:33:56: (network.c.345) can't bind to port:  80 Address already in use 
                                                                         [fail]
invoke-rc.d: initscript lighttpd, action "start" failed.

btw i don't understand the filezilla part
Code:
This is the steps for 0.3. 0.4 require you to upload the package to the server using winscp or filezilla first. I'll later add a tutorial step how to update rev without replacing your own edits.
 
Last edited:
Kanakashy, you got to use a file upload tool if you use Windows (or scp if you use Linux) to upload the 0.4 package.

It's also possible you already have a web browser running.

sudo service apache2 stop
sudo service lighttpd stop
sudo service nginx stop
sudo service lighttpd start
 
It's "liblua5.1-0-dev", but you can try "liblua5.1-dev" or even "liblua-dev"
 
Hay Stian. Hope you can help me out a bit!

I followed your instructions, but can't seem to log in properly on phpmyadmin.
Mind that this is one of my first experiences with Linux.

However, I accidentally pushed apache2 when configuring phpmyadmin, so I found this command line to reconfigure:
sudo dpkg-reconfigure -plow phpmyadmin

When I do this, I choose "lighttpd" set username as "root" and pw as my password.
But, when I try to go through with this, I get the following error.
Access denied for 'root'@localhost. And then again four options.
Nothing seems to work, and I can't login to localhost/phpmyadmin.

1.
a) Do you know what to do to solve this?
b) If not - Is there a way I can reset ALL installations, including apache2, so I can try all over?

2. Off-topic, but I'm changing to Ubuntu because my server wouldn't run on x64 Windows 7, - it will work now, right?
Glad to see some advanced open-tibia developers from Norway after such long time away from the community. Great work.
 
Reinstalled Ubuntu and followed your instructions properly.
All good working.

Thanks for awesome tutorial.
 
Er det ikke det ene, så er det det andre, as we say it in Norway.

I've followed your instructions as far as I got.
I compressed my 0.4 server to "otserver.tar.gz", put it in my home directory, and executed the following:

hansi@hansi-pc:~$ tar xf otserver.tar.gz
hansi@hansi-pc:~$ mv otserver tfs
hansi@hansi-pc:~$ chmod 777 -R tfs
hansi@hansi-pc:~$ cd tfs

hansi@hansi-pc:~/tfs$ ./autogen.sh
bash: ./autogen.sh: No such file or directory

hansi@hansi-pc:~/tfs$ ./configure --enable-mysql
bash: ./configure: No such file or directory

hansi@hansi-pc:~/tfs$ make -j 2
make: *** No targets specified and no makefile found. Stop.

Why do I get the "No such file or directory", when using the last commands?
I tried skipping this steps, and starting the server with:
cd
screen -A -S tfs
cd tfs
while true; do ./theforgottenserver; done

But then again I get the same error. No such file or directory.

Help please?

EDIT:

Alright, im confused. Am I supposed to use a rev or a compiled version?
When I downlaoded the latest rev, I didnt get any errors with the "./autogensh" or else.
Everything ran smoothly.
But when I tried to run this now:
cd
screen -A -S tfs
cd tfs
while true; do ./theforgottenserver; done
I still get "no such file or directory".
What to do?

This is what I get after I write make -j 2:
hansi@hansi-pc:~/tfs$ make -j 2
make all-am
make[1]: Entering directory `/home/hansi/tfs'
g++ -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -I/usr/include/lua5.1 -O2 -fomit-frame-pointer -D__USE_MYSQL__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT game.o -MD -MP -MF .deps/game.Tpo -c -o game.o game.cpp
g++ -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -I/usr/include/lua5.1 -O2 -fomit-frame-pointer -D__USE_MYSQL__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT item.o -MD -MP -MF .deps/item.Tpo -c -o item.o item.cpp
game.cpp: In member function ‘void Game::setGameState(GameState_t)’:
game.cpp:208: error: ‘class IOGuild’ has no member named ‘checkWars’
game.cpp: In member function ‘void Game::checkWars()’:
game.cpp:4842: error: ‘class IOGuild’ has no member named ‘checkWars’
game.cpp:4843: error: ‘checkWarsEvent’ was not declared in this scope
game.cpp:4843: error: ‘EVENT_WARSINTERVAL’ was not declared in this scope
make[1]: *** [game.o] Error 1
make[1]: *** Waiting for unfinished jobs....
mv -f .deps/item.Tpo .deps/item.Po
make[1]: Leaving directory `/home/hansi/tfs'
make: *** [all] Error 2
Sorry for spamming your thread btw.

EDIT AGAIN:

Fixed everything over. But when the server has finished loading
i get this error message:
theforgottenserver: /usr/include/boost/thread/pthread/condition_variable_fwd.hpp:38: boost::condition_variable::~condition_variable(): Assertion `!pthread_cond_destroy(&cond)' failed.
And the server exits. What to do? I have of course tried killall -9 theforgottenserver
 
Last edited:
It worked when I restarted, one time, but after I closed it, typed killall -9 theforgottenserver, I get the same error.

Furthermore, - my ports in my router are open, why can't people connect?
Worked with these settings on windows. Any preinstalled firewall or smth?
Everyone can connect the webserver.

Solved: To avoid loopback, put 0.0.0.0 in the config.ip.

Still getting connection timeout when connecting, after choosing character.
Used your port checker Stian, and it told me all my ports were good.
What's the problem now, any clue?
 
Last edited:
Im getting configure error : "Lua header not found"
when running /.configure --enable-mysql
Im trying to compile the 0.4, and it refuses to work. Help would be very appreciated!
Code:
server@server:/home/tfs$ ./configure --enable-mysql
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking for ptrdiff_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for ceil... yes
checking for floor... yes
checking for ftime... yes
checking for gethostbyname... yes
checking for gethostname... yes
checking for memset... yes
checking for pow... yes
checking for sqrt... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strstr... yes
checking for strtol... yes
checking for xml2-config... /usr/bin/xml2-config
checking for libxml - version >= 2.6.5... yes (version 2.7.6)
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for main in -lz... yes
checking for main in -lboost_thread-gcc-mt... no
checking for main in -lboost_thread-mt... yes
checking for main in -lboost_regex-gcc-mt... no
checking for main in -lboost_regex-mt... yes
checking for main in -lboost_system-gcc-mt... no
checking for main in -lboost_system-mt... yes
checking for main in -lboost_date_time-gcc-mt... no
checking for main in -lboost_date_time-mt... yes
checking for main in -lboost_filesystem-gcc-mt... no
checking for main in -lboost_filesystem-mt... yes
checking boost/tr1/unordered_set.hpp usability... yes
checking boost/tr1/unordered_set.hpp presence... yes
checking for boost/tr1/unordered_set.hpp... yes
checking cryptopp/sha.h usability... yes
checking cryptopp/sha.h presence... yes
checking for cryptopp/sha.h... yes
checking cryptopp/md5.h usability... yes
checking cryptopp/md5.h presence... yes
checking for cryptopp/md5.h... yes
checking cryptopp/adler32.h usability... yes
checking cryptopp/adler32.h presence... yes
checking for cryptopp/adler32.h... yes
checking cryptopp/hex.h usability... yes
checking cryptopp/hex.h presence... yes
checking for cryptopp/hex.h... yes
checking cryptopp/base64.h usability... yes
checking cryptopp/base64.h presence... yes
checking for cryptopp/base64.h... yes
checking cryptopp/hmac.h usability... yes
checking cryptopp/hmac.h presence... yes
checking for cryptopp/hmac.h... yes
checking cryptopp/cryptlib.h usability... yes
checking cryptopp/cryptlib.h presence... yes
checking for cryptopp/cryptlib.h... yes
checking for main in -lcryptopp... yes
checking openssl/rsa.h usability... yes
checking openssl/rsa.h presence... yes
checking for openssl/rsa.h... yes
checking openssl/bn.h usability... yes
checking openssl/bn.h presence... yes
checking for openssl/bn.h... yes
checking openssl/err.h usability... yes
checking openssl/err.h presence... yes
checking for openssl/err.h... yes
checking for main in -lcrypto... yes
checking for LUA... checking lua.hpp usability... no
checking lua.hpp presence... no
checking for lua.hpp... no
configure: error: "Lua header not found."
server@server:/home/tfs$
 
Last edited:
You can try luajit:

apt-get install libluajit-5.1-dev
./configure --enable-mysql --enable-luajit
 
Argh, now im getting this :/
Code:
[14:28:52.856] > Data parsing time: 6.234 seconds.
[14:28:53.162] > Houses synchronization time: 0.306 seconds.
[14:28:53.255] > Content unserialization time: 0.093 seconds.
[14:28:53.567] >> Checking world type... Open PvP
[14:28:53.567] >> Initializing game state and binding services...
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_S_construct NULL not valid
Avbruten (SIGABRT)
server@server:/home/tfs$
 
Back
Top