This guide covers how to install rAthena on CentOS and other versions of Linux that use yum. This article is incomplete.1fyou'd like to help expand it, see the help on editing and the style guide, or comment on the talk page.
This guide covers how to install rAthena on CentOS and other versions of Linux that use yum. This article is incomplete.1fyou'd like to help expand it, see the help on editing and the style guide, or comment on the talk page.
This guide covers how to install rAthena on CentOS and other versions of Linux that use yum. This article is incomplete.1fyou'd like to help expand it, see the help on editing and the style guide, or comment on the talk page.
Installation (CentOS) - RAthena Wiki ‘hitp://rathena.org/wiki/Installation_on_CentOS
Installation (CentOS
From RAthena Wiki
(Redirected from Installation on CentOS)
This article is incomplete. If you'd like to help expand it (hutp:/rathenaorg
‘wiki index.php title Installation (CentOS)&action=edit) , see the help on editing and the style
guide, or comment on the talk page.
This guide covers how to install rAthena on CentOS and other versions of Linux that use yum
Contents
1 Requirements
2 Prerequisites
= 2.1 Install Prerequisites
= 2.3 Configure MySQL
= 2.3.1 Set a root password
= 2.3.2 Create SQL database for rAthena
= 2.3.3 Setup a MySQL user for rAthena
3 Install rAthena
«= 3.1 Login as your non-root Linux user
3.2 SVN Checkout
= 3.3 Import MySQL Tables
* 3.4 Configure rAthena
= 3.5 Compile Source Code
= 3.5.1 How to Recompile
4 Start your rAthena Server
= 5 See Also
Requirements
= CentOS or an RPM-based Linux that has the yam command
= root access or access to an account that has sudo privileges
= an Internet connection to download install packages
Prerequisites
All of these commands will be typed at the command-line interface
Install Prerequisites
1. Login to your server via SSH, or if you are already logged into a GUI press Ctrl+Alt+T to open a
terminal window.
lofts 4/10/2012 3:09 PMInstallation (CentOS) - RAthena Wiki ‘hitp://rathena.org/wiki/Installation_on_CentOS
2, ‘Type the following command (this will install GCC, Make, MySQL, MySQL header files, MySQL.
Server, PCRE header files, Subversion, and Zlib header files)
3. (Optional) type the following command to install some additional packages
Create a non-root Linux user
By the principle of least privilege, it is recommended you do NOT run rAthena as root.
1, Type the following command to create a non-root Linux account
--create-home = create the user's home directory
~-shel 1 = sets their login shell to Bash
rathena4444 = the login name of the new Linu
4444
count
pick your own random numbers to make the username more unique
2. Set a password for the new user (run this command and follow the prompts)
Configure MySQL
Set a root password
The default MySQL Server install creates a MySQL user 'root'@'localhost’ with NO password, It is
recommended you create a password for the root user.
1, Run this command and follow the prompts
2. Login to your MySQL Server as root:
When prompted, enter your root MySQL password.
3. Now your prompt should look like this (the MySQL command prompt)
In case your mysql server isn't started, you may have to start it with:
Create SQL database for rAthena
1, At the MySQL prompt, type this to create a database (http://dev.mysql.com/doe/refman/S,S/en/create-
dof 5 4/10/2012 3:09 PMInstallation (CentOS) - RAthena Wiki ‘hitp://rathena.org/wiki/Installation_on_CentOS
database html) (replace rathena4 444 with the Linux username you created eai
2, Create a separate database for logs
Setup a MySQL user for rAthena
to create a new MySQL user’
1, At the MySQL prompt, type something like this
rathena4444 = the name of the MySQL user (we named it the same as the Linux user to
make it easier to identi
Localhost = the hostname or IP it will connect from
secretpassword = the password for this MySQL user
2. Grant privileges (http://dev. mysql com/doc/refiman/S.5/en/grant html) to the 'rathena’ MySQL user:
(note the escaped underscore (http://dev.my sql.com/doc/refiman/5.5/en/string-
literals htmlcharacter-escape-sequences) )
Install rAthena
Login as your non-root Linux user
The rest of the setup is done as rathena4444 (the Linux user you created in step 2.2)
1. Logout from root SSH (or minimize the window).
2. Login to your server via SSH as the rathena4444 Linux user.
SVN Checkout
Use the following command, replacing ~/trunk with a directory you want to checkout rAthena files to
Import (http://dev.mysql.com/doc/refman/5.5/en/batch-commands.html) MySQL Tables
1, Change directory to the sql-files folder.
2. Execute these commands
When prompted, enter your MySQL root password.
Nees 4/10/2012 3:09 PMInstallation (CentOS) - RAthena Wiki ‘hitp://rathena.org/wiki/Installation_on_CentOS
Configure rAthena
Compile Source Code
= Ifyou're using CentOS 64-bit please use:
How to Recompile
In the future (after you update or edit any file in /src) to recompile, add make clean before make sql
hake lean
Start your rAthena Server
See Also
Retrieved from "http:/rathena.org/wiki/Installation_(CentOS)"
Categories: Incomplete | Installation Guides
sofs 4/10/2012 3:09 PMInstallation (CentOS) - RAthena Wiki ‘hitp://rathena.org/wiki/Installation_on_CentOS
= This page was last modified on 10 April 2012, at 02:35.
= This page has been accessed 20 times.
= Content is available under Creative Commons Attribution Non-Commercial Share Alike
Sof 5 4/10/2012 3:09 PM