• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] Linux run worldserver and authserver

Status
Not open for further replies.

Vitrex

Moderator
Hello, emudevs, never thought that i'll ask help on compile but... i tried everything, there one thread already similar to this one but i don't miss any hash tags.
The problem is it's first time i compile it on linux. i compiled core imported db everything is cool, but when i try to start my worldserver / authserver i got an error.
Okay lets sort everything by order now.
when i make install after compile i use following command :

Code:
[COLOR=#B9BDB6][FONT=Consolas]cmake ../ -DCMAKE_INSTALL_PREFIX=/root/server -DWITH_WARNINGS=1 [/FONT][/COLOR][COLOR=#333333][FONT=Arial]-DCONF_DIR=/root/server[/FONT][/COLOR]

then i got :
Code:
* Install core to        : /root/server
* Install libraries to   : /root/server/lib
* Install configs to     : /root/server

Weird but i don't get any folder like "lib" after compile.

When i finish compile and make install i got this output :
Code:
Install the project...
-- Install configuration: "Release"
-- Installing: /root/server/bin/authserver
-- Set runtime path of "/root/server/bin/authserver" to "/root/server/lib"
-- Up-to-date: /root/server/authserver.conf.dist
-- Installing: /root/server/bin/worldserver
-- Set runtime path of "/root/server/bin/worldserver" to "/root/server/lib"
-- Up-to-date: /root/server/worldserver.conf.dist
-- Installing: /root/server/bin/mapextractor
-- Set runtime path of "/root/server/bin/mapextractor" to "/root/server/lib"
-- Installing: /root/server/bin/vmap4assembler
-- Set runtime path of "/root/server/bin/vmap4assembler" to "/root/server/lib"
-- Installing: /root/server/bin/vmap4extractor
-- Set runtime path of "/root/server/bin/vmap4extractor" to "/root/server/lib"
-- Installing: /root/server/bin/mmaps_generator
-- Set runtime path of "/root/server/bin/mmaps_generator" to "/root/server/lib"

and when i try to start server i got :

Code:
Error in config file: cannot open file (/root/server/authserver.conf)

Yes i changed the worldserver.conf.dist to worldserver.conf and same for authserver.

any ideas?

p.s i starting server with this command
Code:
cd /root/server/bin
./authserver

Executed all updates as well.
Tried to change :
Code:
###################################################################################################
# MYSQL SETTINGS
#
#    LoginDatabaseInfo
#        Description: Database connection settings for the realm server.
#        Example:     "hostname;port;username;password;database"
#                     ".;somenumber;username;password;database" - (Use named pipes on Windows
#                                                                 "enable-named-pipe" to [mysqld]
#                                                                 section my.ini)
[COLOR=#a52a2a][I][U][B]#                     ".;/path/to/unix_socket;username;password;database" - (use Unix sockets on[/B]
[B]#                                                                           Unix/Linux)[/B][/U][/I][/COLOR]
#        Default:     "127.0.0.1;3306;trinity;trinity;auth"


LoginDatabaseInfo = "127.0.0.1;3306;test;test;auth"

No results. so changed back to IP;Port
 
Last edited:

Neccta

Exalted Member
You need to change the file perimsions

Code:
chmod 600 worldserver.conf

777(rwxrwxrwx) No restrictions on permissions. Anybody may do anything. Generally not a desirable setting.
755(rwxr-xr-x) The file's owner may read, write, and execute the file. All others may read and execute the file. This setting is common for programs that are used by all users.
700(rwx------) The file's owner may read, write, and execute the file. Nobody else has any rights. This setting is useful for programs that only the owner may use and must be kept private from others.
666(rw-rw-rw-) All users may read and write the file.
644(rw-r--r--) The owner may read and write a file, while all others may only read the file. A common setting for data files that everybody may read, but only the owner may change.
600(rw-------) The owner may read and write a file. All others have no rights. A common setting for data files that the owner wants to keep private.

I think the configuration files are also in another directory, so you may need to change that too.

Code:
chmod 700 /var/config

777(rwxrwxrwx) No restrictions on permissions. Anybody may list files, create new files in the directory and delete files in the directory. Generally not a good setting.
755(rwxr-xr-x) The directory owner has full access. All others may list the directory, but cannot create files nor delete them. This setting is common for directories that you wish to share with other users.
700(rwx------) The directory owner has full access. Nobody else has any rights. This setting is useful for directories that only the owner may use and must be kept private from others.

See more at: http://linuxcommand.org/lts0070.php
 

Vitrex

Moderator
that was only for a learning purposes. thank you for suggestion ! [MENTION=2]Faded[/MENTION] , i'll take a note.
 
Status
Not open for further replies.
Top