07-08-2014, 09:10 PM
Hi,
here a little and fast guide how to setup your server very quickly.
(my english is very bad)
[hide]
Step1: update your Server with
yum update
Step2: install the apache and mysql and other "importent" stuff like libs.
yum install -y mysql mysql-server mysql-devel mysql-libs php-mysql httpd php gcc-c++ libstdc++.so.6 libz.so.1 libstdc++-libc6.2-2.so.3 libgssapi_krb5.so.2 screen lm_sensors lm_sensors-devel gtk+ php-devel
yum groupinstall -y 'MySQL Database' 'Web Server' 'Development Tools' 'Development Libraries'
Step3: start your apache and mysql server with booting up the server
chkconfig --add httpd
chkconfig httpd on
chkconfig --add mysqld
chkconfig mysqld on
Step4: start your apache and mysql server
service httpd start
service mysqld start
Step5:logging in mysql
mysql -u root -p
create a user ( replace USER and PASSWORD, the % is the ip who can connect(%=all))
GRANT ALL ON *.* TO 'USER'@'%' IDENTIFIED BY 'PASSWORD';
increasing the max allowed packets
set global max_allowed_packet=100000000;
save
flush privileges;
and quit the server
quit
Step6: Open Ports with iptables
su --login
chance the [CeNsOrEd] to your port, you need to open 3306 (if you want to work with your db extern) and login + gameserver port.
iptables -I INPUT -m tcp -p tcp --dport [CeNsOrEd] -j ACCEPT
save the iptables
service iptables save
Step7:chance your IP in LoginServer
2
And your GameServer
2
Step8: give your Server Files 777 rights:
2
Step9:Start your server
in this example, my Files are in /home/Server
cd /home/Server
./Start.sh
you need to edit your Start.sh script!
Step10: We are done, missing Libs. can you install with
yum install [CeNsOrEd]
replace [CeNsOrEd] with your library
or use this site:2
and install the missing lib with (example for libexpat.so.0 x86_64)
yum install ftp://rpmfind.net/linux/fedora/linux/dev...1.i686.rpm
Credits to the internet![/hide]
Salute,
Peter

