- Joined
- Feb 20, 2013
- Messages
- 32
- Reaction score
- 6
Hi simple tutorial setting online server
Tools :scared:
now we use Root as main server files
1:
2:
3:
4:
5:
6:
7:
Setup you Mysql first
8:
9:
10:
11:
12:
install Phpmyadmin ignore phpmyadmin database configure
take apache2 press [ Space and tab then enter ]
setup Server Files Rathena or Herc
13:
Configuring the server files
Edit char_athena.conf,map_athena.conf and inter_athena.conf in with your preferred text editor.
14:
15:
16:
Use FileZilla edit src/config/packet.h
choise your ragexe at
17:
you packetversion you clients RagExe
18:
Compile you Server
19:
20:
Diff you own Ragexe and clientinfo.xml
21:
ok any error Google it haha but this setup i got no error
Tools :scared:
Code:
Putty And Filezilla
now we use Root as main server files
1:
Code:
[COLOR=#C9D1D9]apt-get update -y [/COLOR]&&[COLOR=#C9D1D9] apt-get upgrade -y[/COLOR]
Code:
[COLOR=#C9D1D9]apt-get install -y git make libmysqlclient-dev zlib1g-dev libpcre3-dev[/COLOR]
Code:
[COLOR=#C9D1D9]apt-get update -y[/COLOR]
Code:
[COLOR=#666666]sudo apt-get install build-essential software-properties-common -y[/COLOR]
Code:
[COLOR=#D1D5DB]sudo apt-get install manpages-dev[/COLOR]
Code:
[COLOR=#D1D5DB]gcc --version[/COLOR]
Code:
[COLOR=#D1D5DB]sudo apt install gcc-8 g++-8 gcc-9 g++-9 gcc-10 g++-10[/COLOR]
Setup you Mysql first
8:
Code:
[COLOR=#C9D1D9]apt-get install -y mysql-server mysql-client[/COLOR]
Code:
mysql -u root -p
Code:
[COLOR=#666666]CREATE DATABASE ragnarok;[/COLOR]
Code:
GRANT PRIVILEGE ON YouDatabase.* TO 'username'@'host';
Code:
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION;
install Phpmyadmin ignore phpmyadmin database configure
take apache2 press [ Space and tab then enter ]
Code:
sudo apt install phpmyadmin php-mbstring php-zip php-gd php-json php-curl
setup Server Files Rathena or Herc
13:
Code:
[COLOR=#666666]git clone [/COLOR][URL]https://github.com/rathena/rathena.git[/URL][COLOR=#666666] ~/rAthena[/COLOR]
Code:
[COLOR=#666666]git clone [/COLOR][URL="https://github.com/rathena/rathena.git"]https://github.com/HerculesWS/Hercules.git[/URL][COLOR=#666666] ~/hErc[/COLOR]
Configuring the server files
Edit char_athena.conf,map_athena.conf and inter_athena.conf in with your preferred text editor.
14:
Code:
// The character server connects to the login server using this IP address.
// NOTE: This is useful when you are running behind a firewall or are on
// a machine with multiple interfaces.
login_ip: localhost
// The character server listens on the interface with this IP address.
// NOTE: This allows you to run multiple servers on multiple interfaces
// while using the same ports for each server.
//bind_ip: 127.0.0.1
// Login Server Port
login_port: 6900
// Character Server IP
// The IP address which clients will use to connect.
// Set this to what your server's public IP address is.
char_ip: Public IP
15:
Code:
MySQL Login serverlogin_server_ip: localhost
login_server_port: 3306
login_server_id: YouID
login_server_pw: YouPass
login_server_db: ragnarok
login_codepage:
login_case_sensitive: no
ipban_db_ip: localhost
ipban_db_port: 3306
ipban_db_id: YouID
ipban_db_pw: YouPass
ipban_db_db: ragnarok
ipban_codepage:
// MySQL Character server
char_server_ip: localhost
char_server_port: 3306
char_server_id: YouID
char_server_pw: YouPass
char_server_db: ragnarok
// MySQL Map Server
map_server_ip: localhost
map_server_port: 3306
map_server_id: YouID
map_server_pw: YouPass
map_server_db: ragnarok
// MySQL Web Server
web_server_ip: localhost
web_server_port: 3306
web_server_id: YouID
web_server_pw: YouPass
web_server_db: ragnarok
// MySQL Log Database
log_db_ip: localhost
log_db_port: 3306
log_db_id: youID
log_db_pw: YouPass
log_db_db: ragnarok
log_codepage:
log_login_db: loginlog
16:
Code:
[COLOR=#666666]./configure --enable-debug=gdb[/COLOR]
Use FileZilla edit src/config/packet.h
choise your ragexe at
You must be registered to see links
17:
Code:
/// In Linux: The same as above or run the following command: ./configure --enable-packetver=YYYYMMDD
#define PACKETVER 20171204
you packetversion you clients RagExe
18:
Code:
[COLOR=#37474F]./configure --enable-packetver=20171204 --enable-packetver-re[/COLOR]
Compile you Server
19:
Code:
[COLOR=#666666]./configure --enable-debug=gdb && make clean server[/COLOR]
20:
Code:
./athena-start start
./athena-start stop
./athena-start restart
Diff you own Ragexe and clientinfo.xml
21:
Code:
[COLOR=#666666]ROenglishRE-master[/COLOR]
ok any error Google it haha but this setup i got no error