Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Pomogę za free odpalic każdemu Serwer ep3 - czytać


igormaster

Rekomendowane odpowiedzi

Opublikowano

A gdzie sie podzial Twoj server ? Przeciez miales robic wlasny

 

 

a czy ja coś napisałem że nie robie ? a czy ktoś mnie goni ?\

 

 

Ale ty masz poryta banie ;)

1386175744-U112610.png
Nowicjusz
Opublikowano

here is a better tut

 

 

1st. Install CentOS Must be i386 version and not 64, install as DESKTOP,  
http://mirrors.loosefoot.com/centos/6.5/isos/i386/
CentOS-6.5-i386-bin-DVD1.iso  <-- is 32 bit with Kernal


do a update,

yum update

then do the following exactly

yum install ftp://mirror.switch.ch/pool/4/mirror/mysql/Downloads/MySQL-6.0/MySQL-shared-compat-6.0.11-0.rhel4.i386.rpm

if it not there any more then goto mysql install our install mono if you need then continue down

now if you want to install mono follow the lines below 


install mono before anything else if it messes up u will have to reinstall CentOs


-----------------------------------------INSTALLING MONO if you need mono for Windows cash server

Installing Dependencies¶

All of the required dependencies are available via the Yum package manager.

First: you'll have to add the epel rpm:

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh epel-release-6-8.noarch.rpm

After the epel repo has been added, the following can be executed:



yum install bison gettext glib2 freetype fontconfig libpng libpng-devel libX11 libX11-devel glib2-devel libgdi* libexif glibc-devel urw-fonts java unzip gcc gcc-c++ automake autoconf libtool make bzip2 wget


Downloading and Compiling

In some cases, you may want to use a prefix of /opt/mono - this will require you to either add this directory to your PATH environment variable, or explicitly specify the full path to Mono when you want to run it.

Then run the following as root:

cd /usr/local/src
wget http://download.mono-project.com/sources/mono/mono-2.10.8.tar.gz
tar zxvf mono-2.10.8.tar.gz
cd mono-2.10.8
./configure --prefix=/usr/local
make && make install

Instead of ./configure --prefix=/opt/mono (as discussed above). If you get an "Out of memory" error while running make on memory-limited systems, try running the following to allow higher virtual memory usage:

ulimit -v unlimited
mono CashServer.exe

------------------------------------------------------------------------------ Mono installer above

-- Cashserver Unix nothing to install

MySQL Installation:

yum install mysql mysql-server

Then we create the system startup links for MySQL (so that MySQL starts automatically whenever the system boots) and start the MySQL server:

chkconfig --levels 235 mysqld on
/etc/init.d/mysqld start

Set passwords for the MySQL root account:

mysql_secure_installation

~[root@server1 ~]# mysql_secure_installation ~

When It Asks To Set MySQL Pass [y/N] choose No
_________________________________________________________________________________________________

Installing Apache2 or check Info at the bottom "Installing the Apache Web Server on CentOS".

Installing PHP5

We can install PHP5 and the Apache PHP5 module as follows:

yum install php

We must restart Apache afterwards:

/etc/init.d/httpd restart
_________________________________________________________________

Testing PHP5 / Getting Details About Your PHP5 Installation

The document root of the default web site is /var/www/html. We will now create a small PHP file (info.php) in that directory and call it in a browser. The file will display lots of useful details about our PHP installation, such as the installed PHP version.

vi /var/www/html/info.php

shift i -- to insert

<?php
phpinfo();
?>

esc

shift : then +--+x   -- saves it all 
_________________________________________________________________________________________________

Getting MySQL Support In PHP5 need this also..

To get MySQL support in PHP, we can install the php-mysql package. It's a good idea to install some other PHP5 modules as well as you might need them for your applications. You can search for available PHP5 modules like this:

yum search php

Pick the ones you need and install them like this:
yum install php-mysql php-gd php-imap php-ldap php-mbstring php-odbc php-pear php-xml php-xmlrpc

APC can be installed as follows:
yum install php-pecl-apc

Now restart Apache2:
/etc/init.d/httpd restart

__________________________________________________________________________________________________

Installing phpMyAdmin need this install ...

First we enable the RPMforge repository on our CentOS system as phpMyAdmin is not available in the official CentOS 6.3 repositories:

Import the RPMforge GPG key:
rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt

On i386 systems:
yum install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm

try also 

yum install phpmyadmin 

easyer to just download to a flash drive, but i have added them to this package, after downloading double click and install 
then phpMyAdmin is now installed. but finish the setup before using it ...

yum install libexpat.so.0

vi /etc/httpd/conf.d/phpmyadmin.conf

Now we configure phpMyAdmin. We change the Apache configuration so that phpMyAdmin allows connections not just from localhost (by commenting out all. add # to everything in between

press shift I then edit file. Change 127.0.0.1 to you Own IP so you your the only one are able to get into phpmyadmin

<Directory "/usr/share/phpmyadmin"> 
#  Order Deny,Allow
#  Deny from all
#  Allow from 127.0.0.1
</Directory>

Alias /phpmyadmin /usr/share/phpmyadmin
Alias /phpMyAdmin /usr/share/phpmyadmin
Alias /mysqladmin /usr/share/phpmyadmin

press ESC so you get back to command mode, then do.
press->   : then x (quit and save)
or  
     ->   :w  and 
     ->   :q  or  
     ->   :wq

Next we change the authentication in phpMyAdmin from cookie to http:

vim /usr/share/phpmyadmin/config.inc.php

you see something like this add in the HTTP like below:
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'http';

First press ESC so you get back to command mode, then do.
:x (quit and save)
or  
:w  and 
:q  or  
:wq 

Restart Apache:
/etc/init.d/httpd restart

Afterwards, you can access phpMyAdmin under http://your ip/phpmyadmin/  or http://127.0.0.1/phpmyadmin

if you still cant connect ...turn your firewall off untill you understand it better.

To get Ip Adress
ifconfig

Adding access to Mysql

type mysql

then to create a user type

CREATE USER 'anyname'@'there_ip_address_here' IDENTIFIED BY 'There_password';

GRANT ALL PRIVILEGES ON * . * TO 'anyname'@'there_ip_address_here';

or the hard way...below

to connect Navicat to phpmyadmin goto phpmyadmin http://127.0.0.1/phpmyadmin , then click on Privileges and add a user with full access ..goto navicat on your windows pc and add the connection with the login and password you made...connect on your pc, if you still can not connect turn firewall off on the centos side.... then get on naivcat and install the DB...

create 3 tables

newproject_data
newproject_db
newproject_db_auth

before starting the server go into your fold of the server and right click each file or all of them and make sure they all have full access

start the server on the centos side it will reply back you are still missing a few files like

libmysqlclient.so.12   -- fix run MySQL-shared-compat-5.1.49-1.rhel5.i386.rpm
libssl.so.6            -- fix run openssl098e-0.9.8e-17.SEL6.i686.rpm

these packages are add to this folder ...and are needed to get the server running ....if there not here find them 

when adding tables to your mysql if you have error like 

MySQL Error 1153 - Got a packet bigger than 'max_allowed_packet' bytes

do the following to fix it

On CENTOS 6 /etc/my.cnf , under [mysqld] section the correct syntax is:

[mysqld]
# added to avoid err "Got a packet bigger than 'max_allowed_packet' bytes"
#
net_buffer_length=1000000 
max_allowed_packet=1000000000
#

save ....done 

now do a Yum install libcrypto.so.10

will also get the following installed for you..


-- installing a secured SSL

Openssl098e-xxxxxxxxxx.rpm
rpmforge-release-xxxxxxxx.rpm
and a few others ...after you should be able to start the server .....with OUT CASHSERVER ,but first do SSL install before u do MONO to install the cash server.


OpenSSH Installations under CentOS Linux

To install the server type:
yum -y install openssh-server
Start the service:
chkconfig sshd on
service sshd start
Make sure port 22 is opened:
netstat -tulpn | grep :22

Firewall Settings

Edit /etc/sysconfig/iptables (IPv4 firewall),
vi /etc/sysconfig/iptables
Add the line
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
Save and close the file. Restart iptables:
service iptables restart
Download WinSCP for windows to connect to the Linux ssh server

Open WinSCP to be greeted with a login window, so click the NEW button (on the left find Connection -> Tunnel (click the Tunnel) then tick the box to connect through SSH tunnel an fill in the info.

Host = vbox lan ip
User = root
Pass = root password (reverse) if the pre-installed "snapshot" you can download.

Save!

Connect!

setup php .
yum install php php-mysql

then Yes... good to go .

also try 

Always start your gameservers with a debugger.
Without it u wont be able to tell why it crashed.

"yum install gdb"


file: GameServer\cmd
handle SIGPIPE nostop
r
echo "-------------------------------------------"
echo "error--------------------------------------"
echo "-------------------------------------------"
thread
echo "-------------------------------------------"
echo "thread 1 - Game Thread---------------------"
echo "-------------------------------------------"
thread 1
bt full
echo "-------------------------------------------"
echo "thread 2 - Thread Library------------------"
echo "-------------------------------------------"
thread 2
bt full
echo "-------------------------------------------"
echo "thread 3 - DB Thread ----------------------"
echo "-------------------------------------------"
thread 3
bt fullfile: GameServer\run2
#!/bin/bash

while ( : ) do
        DATE=`date`
        if [ -r .shutdown ]; then
                rm -f .shutdown
        fi


        gdb --batch --command=cmd ./GameServer_d > "bt_`date +%y%m%d%H%M%S`.log"

        DATE2=`date`
        if [ -r .shutdown ]; then
                echo "***** Shutdown $DATE ~ $DATE2" >> rebootlog
                exit
        fi

        echo "!!!!! Reboot $DATE ~ $DATE2" >> rebootlog
        sleep 2
doneIf u do this, then everytime your gameserver crashes there will be a detailed logfile showing the exact place of the error. 

FIX BAD_CONNECTION & FIX Login Server Problem
1. Open Terminal
2. Type: SU
3. Write: service iptables stop
4. Open Terminal
5. Type: vi /etc/sysconfig/iptables
6. Add:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 4001 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 4101 -j ACCEPT
Save & Exit

FIX BAD_CONNECTION & FIX Login Server Problem (method 2)
1. Swich user
Username: root
Password: same for user
2. Go in Computer/etc/sysconfig/iptables
3. Open with Gedit
4. Add:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 4001 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 4101 -j ACCEPT
5. Open Terminal
6. Write: service iptables stop


installing Webpage options ..

Well, I am not sure how far along you are. I do it all from a command line. Assuming all of your DNS is setup, start off by:

1.) Installing web services with the following command as the root account:

yum groupinstall "Web Server"

2.) Start the web server with:

service httpd start

3.) Make sure it starts upon reboot with:

chkconfig httpd on

That will get you a basic web server up and running. You will then need to go to /var/www/html and add your HTML. Not sure if this is too basic for you, but it is a start.



Installing the Apache Web Server on CentOS

The current release of CentOS typically installs the Apache web server by default. To check whether the server is already installed, open a Terminal window (Applications->System Tools->Terminal) and run the following command:

rpm -q httpd

If rpm generates output similar to the following, the apache server is already installed:

httpd-2.2.3-31.el5.centos

Alternatively, if rpm generates a "package httpd is not installed" then the next step, obviously, is to install it. This can be performed either from the command-line or using the Add/Remove Software tool. To use this tool, open the System->Administration desktop menu and select Add/Remove Software. Enter your root password if prompted to do so. Select the Search tab and search for httpd. After the search completes the Apache HTTP Server should be listed in the search results. Click on the toggle next to the httpd server. Finally, click on the Apply button to begin the installation.

To install Apache from the command-line start a terminal window (Applications->System Tools->Terminal) and run the following command at the command prompt:

su -
yum install httpd

Starting the Apache Web Server

Once the Apache server is installed, the next step is to verify that the server is running and, if it is not yet running, to start it.
The status of the server can be verified from the command-line or via the GUI Service Configuration tool. To check the status of the Apache httpd service from the command-line, enter the following command in a Terminal window:

/sbin/service httpd status

If the above command indicates that the httpd service is not running, it can be launched from the command-line as follows:

su -
/sbin/service httpd start

If you would like the Apache httpd service to start automatically when the system boots, this can be achieved by running the following command:

/sbin/chkconfig --level 3 httpd on

To configure the Apache service using the Service Configuration tool, select the System->Administration->Services menu option and scroll down the list of services until you find httpd. Select the item in the list and click on the Start button. To ensure the services starts automatically on reboot, also click in the Enable toolbar button.
Testing the Web Server

Once the installation is complete the next step is to verify the web server is up and running. To do this fire up the web browser by clicking on the Fweb browser icon in the top desktop panel and enter 127.0.0.1 in the address bar (127.0.0.1 is the loop-back network address which tells the system to connect to the local machine). The browser should load the Apache 2 Test Page. Congratulations, you have now installed the web server and served up what will hopefully be the first of many web pages.
Configuring the Apache Web Server for Your Domain

The next step in setting up your web server is to configure it for your domain name. This is performed in the /etc/httpd directory. To configure the web server open a terminal window and change directory to /etc/httpd. In this directory you will find a number of sub-directories. Change directory into the conf sub-directory where you will find an httpd.conf file which contains the configuration settings for the Apache server.
Edit the httpd.conf file using your favorite editor using the su command to ensure you have write permission to the file. Once loaded, there are a number of settings that need to be changed to match your environment:

The ServerAdmin directive defines an administrative email address for people wishing to contact the webmaster for your site. Change this to an appropriate email address where you can be contacted:

        ServerAdmin [email protected]

Next the ServerName and ServerAlias directives need to be defined so that the web server knows which virtual host this configuration file refers to:

        ServerName myexample.com

Next, we need to define where the web site files are going to be located using the DocumentRoot directive. The tradition is to use /var/www/domain-name:

        DocumentRoot /var/www/myexample.com

Next, create the /var/www/myexample.com directory and place an index.html file in it. For example:

<html>
<title>Sample Web Page</title>
<body>
Welcome to MyExample.com
</body>
</html>

The last step is to restart the apache web server to make sure it picks up our new settings:

su - 
/sbin/service httpd restart

Web Server and Firewall Issues

If your CentOS system is configured to use a firewall, you will need to ensure that HTTP traffic on port 80 is permitted in order for external systems to be able to access your web server. Refer to Basic CentOS Firewall Configuration for details on configuring CentOS Firewalls.
If the CentOS system hosting your web server sits on a network protected by a firewall (either another computer running a firewall, or a router or wireless base station containing built in firewall protection) you will need to configure the firewall to forward port 80 to your web server system. The mechanism for performing this differs between firewalls and devices so check your documentation to find out how to configure port forwarding.
Once everything is configured it should be possible to enter the domain name of your web site into a browser anywhere in the world and access your web server


Time to Setup Navicat user with phpmyadmin
 
1. got to phpmyadmin
2. it will ask you to login in put root in as your user name
3. click on Reload privileges
4. Click on Add User
5. Where you see User name put a User Name for navicat
6. Where you see Host put your Ip
7. put your password you want
8. Global prilileges click Check all
9. Hit go and your done
 
Lets Install screen next its a must have
 
yum install screen
 
Now lets in stall htop
 
yum install htop
 
If you are missing any libs when your start your server all you have to do is yum install libname

 

 

Opublikowano

Już to widzę , a jak ktoś porobi nowe rzeczy itemy, itp, itd. to potem będzie ,,  BAZA DANYCH ZOSTAJE WYKRADZIONA '' .

Powodzenia :)


DYM DYM KNF 4 ! <3 <3 <3 <3
KROK PO KROKU !

Opublikowano

Ale ty jesteś głupi człowieku XDD

słuchaj gościu nie obrażaj mnie to po pierwsze kim ty wogole jestes zeby mnie od głupich wyzywać co ty sobie wyobrażasz że co Wolno ci mnie obrażać bo chcę pomuc ? to ty jesteś ... skoro uważesz że tylko tobie wolno wiedzieć jak sie stawia server jest dużo ludzi któży chca se w domu sami dla siebie powymiatać albo ze znajomymi se stwożyć priv nie każdego stać na otwarcie servera takich jak ty więcej i gratuluje a POWIEM CI CZEMU TO ROBIE PONIEWAŻ WYCHYLIŁEM SIĘ O POMOC NA MPC I ZOSTALEM W YSMIANY ZE NIE OGARNE BAZ DANYCH ZE MAM SIĘ ZA TO NIE BRAĆ Że ja tego na pewno nie ogarne I WIESZ CO CI POWIEM WLASNIE TO MNIE ZMOTYWOWALO ŻEBY DAĆ LUDZIOM TO CZEGO MI NIE DANO I TYLE Z TWOJEGO GŁUPI ? powiem tak walą mnie wasze zasady na tym forum jakimi prawami sie żąsdzi mi nikt nie zabroni wyrażać myśli i spełniać swoich chęci jak jesteś egoista to niczego sie nie dorobisz w życiu jedynie uninstall muzgu zrobisz sie aspołeczny ale to twoja sprawa ić sobie w egoizm nie moje życie tylko twoje Publicznie tu powiem tak wali mnie TO CZY ROBIE BŁĘDY I CZY KOGOŚ TO GRYZIE W OCZY JA PRZEKAZUJE WIEDZE I NAJMNIEJ MNIE OBCHODZĄ TE WASZE PODŻĘDNE KOMEN?TAŻE WBIJCIE SOBIE TO DO GŁOWY EGOCENTRYCY I JASNE A TEN ZNOWU MA PROBLEM NIE NIE MAM GO JA POPROSTU NIE JESTEM EGOISTĄ I NIE BĘDĘ BAŁ SIĘ WYRAŻAĆ UCZUĆ I OPINII JAK KOMUŚ TO NIE PASUJE TO NIECH SOBIE KALENDARIUM ŻALI I ROZPACZY OPRACUJE I UDRĘCZA SIĘ DO KOŃCA ŻYCIA A PONIŻEJ DAJE LINKA DO EP3 FULL SERVER :P OBIECAŁEM I DAJE

 

--- xxx --- działa szybko ŚCIĄGAĆ ZANIM KTOŚ USUNIE TO Z TEGO UPLOADA

 

/ @igormaster - godzina na wstawienie skanu. - Karyvlea

 

Linki usunięte, brak skanu. - Karyvlea

Opublikowano

here is a better tut

 

 

1st. Install CentOS Must be i386 version and not 64, install as DESKTOP,  
http://mirrors.loosefoot.com/centos/6.5/isos/i386/
CentOS-6.5-i386-bin-DVD1.iso  <-- is 32 bit with Kernal


do a update,

yum update

then do the following exactly

yum install ftp://mirror.switch.ch/pool/4/mirror/mysql/Downloads/MySQL-6.0/MySQL-shared-compat-6.0.11-0.rhel4.i386.rpm

if it not there any more then goto mysql install our install mono if you need then continue down

now if you want to install mono follow the lines below 


install mono before anything else if it messes up u will have to reinstall CentOs


-----------------------------------------INSTALLING MONO if you need mono for Windows cash server

Installing Dependencies¶

All of the required dependencies are available via the Yum package manager.

First: you'll have to add the epel rpm:

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh epel-release-6-8.noarch.rpm

After the epel repo has been added, the following can be executed:



yum install bison gettext glib2 freetype fontconfig libpng libpng-devel libX11 libX11-devel glib2-devel libgdi* libexif glibc-devel urw-fonts java unzip gcc gcc-c++ automake autoconf libtool make bzip2 wget


Downloading and Compiling

In some cases, you may want to use a prefix of /opt/mono - this will require you to either add this directory to your PATH environment variable, or explicitly specify the full path to Mono when you want to run it.

Then run the following as root:

cd /usr/local/src
wget http://download.mono-project.com/sources/mono/mono-2.10.8.tar.gz
tar zxvf mono-2.10.8.tar.gz
cd mono-2.10.8
./configure --prefix=/usr/local
make && make install

Instead of ./configure --prefix=/opt/mono (as discussed above). If you get an "Out of memory" error while running make on memory-limited systems, try running the following to allow higher virtual memory usage:

ulimit -v unlimited
mono CashServer.exe

------------------------------------------------------------------------------ Mono installer above

-- Cashserver Unix nothing to install

MySQL Installation:

yum install mysql mysql-server

Then we create the system startup links for MySQL (so that MySQL starts automatically whenever the system boots) and start the MySQL server:

chkconfig --levels 235 mysqld on
/etc/init.d/mysqld start

Set passwords for the MySQL root account:

mysql_secure_installation

~[root@server1 ~]# mysql_secure_installation ~

When It Asks To Set MySQL Pass [y/N] choose No
_________________________________________________________________________________________________

Installing Apache2 or check Info at the bottom "Installing the Apache Web Server on CentOS".

Installing PHP5

We can install PHP5 and the Apache PHP5 module as follows:

yum install php

We must restart Apache afterwards:

/etc/init.d/httpd restart
_________________________________________________________________

Testing PHP5 / Getting Details About Your PHP5 Installation

The document root of the default web site is /var/www/html. We will now create a small PHP file (info.php) in that directory and call it in a browser. The file will display lots of useful details about our PHP installation, such as the installed PHP version.

vi /var/www/html/info.php

shift i -- to insert

<?php
phpinfo();
?>

esc

shift : then +--+x   -- saves it all 
_________________________________________________________________________________________________

Getting MySQL Support In PHP5 need this also..

To get MySQL support in PHP, we can install the php-mysql package. It's a good idea to install some other PHP5 modules as well as you might need them for your applications. You can search for available PHP5 modules like this:

yum search php

Pick the ones you need and install them like this:
yum install php-mysql php-gd php-imap php-ldap php-mbstring php-odbc php-pear php-xml php-xmlrpc

APC can be installed as follows:
yum install php-pecl-apc

Now restart Apache2:
/etc/init.d/httpd restart

__________________________________________________________________________________________________

Installing phpMyAdmin need this install ...

First we enable the RPMforge repository on our CentOS system as phpMyAdmin is not available in the official CentOS 6.3 repositories:

Import the RPMforge GPG key:
rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt

On i386 systems:
yum install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm

try also 

yum install phpmyadmin 

easyer to just download to a flash drive, but i have added them to this package, after downloading double click and install 
then phpMyAdmin is now installed. but finish the setup before using it ...

yum install libexpat.so.0

vi /etc/httpd/conf.d/phpmyadmin.conf

Now we configure phpMyAdmin. We change the Apache configuration so that phpMyAdmin allows connections not just from localhost (by commenting out all. add # to everything in between

press shift I then edit file. Change 127.0.0.1 to you Own IP so you your the only one are able to get into phpmyadmin

<Directory "/usr/share/phpmyadmin"> 
#  Order Deny,Allow
#  Deny from all
#  Allow from 127.0.0.1
</Directory>

Alias /phpmyadmin /usr/share/phpmyadmin
Alias /phpMyAdmin /usr/share/phpmyadmin
Alias /mysqladmin /usr/share/phpmyadmin

press ESC so you get back to command mode, then do.
press->   : then x (quit and save)
or  
     ->   :w  and 
     ->   :q  or  
     ->   :wq

Next we change the authentication in phpMyAdmin from cookie to http:

vim /usr/share/phpmyadmin/config.inc.php

you see something like this add in the HTTP like below:
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'http';

First press ESC so you get back to command mode, then do.
:x (quit and save)
or  
:w  and 
:q  or  
:wq 

Restart Apache:
/etc/init.d/httpd restart

Afterwards, you can access phpMyAdmin under http://your ip/phpmyadmin/  or http://127.0.0.1/phpmyadmin

if you still cant connect ...turn your firewall off untill you understand it better.

To get Ip Adress
ifconfig

Adding access to Mysql

type mysql

then to create a user type

CREATE USER 'anyname'@'there_ip_address_here' IDENTIFIED BY 'There_password';

GRANT ALL PRIVILEGES ON * . * TO 'anyname'@'there_ip_address_here';

or the hard way...below

to connect Navicat to phpmyadmin goto phpmyadmin http://127.0.0.1/phpmyadmin , then click on Privileges and add a user with full access ..goto navicat on your windows pc and add the connection with the login and password you made...connect on your pc, if you still can not connect turn firewall off on the centos side.... then get on naivcat and install the DB...

create 3 tables

newproject_data
newproject_db
newproject_db_auth

before starting the server go into your fold of the server and right click each file or all of them and make sure they all have full access

start the server on the centos side it will reply back you are still missing a few files like

libmysqlclient.so.12   -- fix run MySQL-shared-compat-5.1.49-1.rhel5.i386.rpm
libssl.so.6            -- fix run openssl098e-0.9.8e-17.SEL6.i686.rpm

these packages are add to this folder ...and are needed to get the server running ....if there not here find them 

when adding tables to your mysql if you have error like 

MySQL Error 1153 - Got a packet bigger than 'max_allowed_packet' bytes

do the following to fix it

On CENTOS 6 /etc/my.cnf , under [mysqld] section the correct syntax is:

[mysqld]
# added to avoid err "Got a packet bigger than 'max_allowed_packet' bytes"
#
net_buffer_length=1000000 
max_allowed_packet=1000000000
#

save ....done 

now do a Yum install libcrypto.so.10

will also get the following installed for you..


-- installing a secured SSL

Openssl098e-xxxxxxxxxx.rpm
rpmforge-release-xxxxxxxx.rpm
and a few others ...after you should be able to start the server .....with OUT CASHSERVER ,but first do SSL install before u do MONO to install the cash server.


OpenSSH Installations under CentOS Linux

To install the server type:
yum -y install openssh-server
Start the service:
chkconfig sshd on
service sshd start
Make sure port 22 is opened:
netstat -tulpn | grep :22

Firewall Settings

Edit /etc/sysconfig/iptables (IPv4 firewall),
vi /etc/sysconfig/iptables
Add the line
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
Save and close the file. Restart iptables:
service iptables restart
Download WinSCP for windows to connect to the Linux ssh server

Open WinSCP to be greeted with a login window, so click the NEW button (on the left find Connection -> Tunnel (click the Tunnel) then tick the box to connect through SSH tunnel an fill in the info.

Host = vbox lan ip
User = root
Pass = root password (reverse) if the pre-installed "snapshot" you can download.

Save!

Connect!

setup php .
yum install php php-mysql

then Yes... good to go .

also try 

Always start your gameservers with a debugger.
Without it u wont be able to tell why it crashed.

"yum install gdb"


file: GameServer\cmd
handle SIGPIPE nostop
r
echo "-------------------------------------------"
echo "error--------------------------------------"
echo "-------------------------------------------"
thread
echo "-------------------------------------------"
echo "thread 1 - Game Thread---------------------"
echo "-------------------------------------------"
thread 1
bt full
echo "-------------------------------------------"
echo "thread 2 - Thread Library------------------"
echo "-------------------------------------------"
thread 2
bt full
echo "-------------------------------------------"
echo "thread 3 - DB Thread ----------------------"
echo "-------------------------------------------"
thread 3
bt fullfile: GameServer\run2
#!/bin/bash

while ( : ) do
        DATE=`date`
        if [ -r .shutdown ]; then
                rm -f .shutdown
        fi


        gdb --batch --command=cmd ./GameServer_d > "bt_`date +%y%m%d%H%M%S`.log"

        DATE2=`date`
        if [ -r .shutdown ]; then
                echo "***** Shutdown $DATE ~ $DATE2" >> rebootlog
                exit
        fi

        echo "!!!!! Reboot $DATE ~ $DATE2" >> rebootlog
        sleep 2
doneIf u do this, then everytime your gameserver crashes there will be a detailed logfile showing the exact place of the error. 

FIX BAD_CONNECTION & FIX Login Server Problem
1. Open Terminal
2. Type: SU
3. Write: service iptables stop
4. Open Terminal
5. Type: vi /etc/sysconfig/iptables
6. Add:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 4001 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 4101 -j ACCEPT
Save & Exit

FIX BAD_CONNECTION & FIX Login Server Problem (method 2)
1. Swich user
Username: root
Password: same for user
2. Go in Computer/etc/sysconfig/iptables
3. Open with Gedit
4. Add:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 4001 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 4101 -j ACCEPT
5. Open Terminal
6. Write: service iptables stop


installing Webpage options ..

Well, I am not sure how far along you are. I do it all from a command line. Assuming all of your DNS is setup, start off by:

1.) Installing web services with the following command as the root account:

yum groupinstall "Web Server"

2.) Start the web server with:

service httpd start

3.) Make sure it starts upon reboot with:

chkconfig httpd on

That will get you a basic web server up and running. You will then need to go to /var/www/html and add your HTML. Not sure if this is too basic for you, but it is a start.



Installing the Apache Web Server on CentOS

The current release of CentOS typically installs the Apache web server by default. To check whether the server is already installed, open a Terminal window (Applications->System Tools->Terminal) and run the following command:

rpm -q httpd

If rpm generates output similar to the following, the apache server is already installed:

httpd-2.2.3-31.el5.centos

Alternatively, if rpm generates a "package httpd is not installed" then the next step, obviously, is to install it. This can be performed either from the command-line or using the Add/Remove Software tool. To use this tool, open the System->Administration desktop menu and select Add/Remove Software. Enter your root password if prompted to do so. Select the Search tab and search for httpd. After the search completes the Apache HTTP Server should be listed in the search results. Click on the toggle next to the httpd server. Finally, click on the Apply button to begin the installation.

To install Apache from the command-line start a terminal window (Applications->System Tools->Terminal) and run the following command at the command prompt:

su -
yum install httpd

Starting the Apache Web Server

Once the Apache server is installed, the next step is to verify that the server is running and, if it is not yet running, to start it.
The status of the server can be verified from the command-line or via the GUI Service Configuration tool. To check the status of the Apache httpd service from the command-line, enter the following command in a Terminal window:

/sbin/service httpd status

If the above command indicates that the httpd service is not running, it can be launched from the command-line as follows:

su -
/sbin/service httpd start

If you would like the Apache httpd service to start automatically when the system boots, this can be achieved by running the following command:

/sbin/chkconfig --level 3 httpd on

To configure the Apache service using the Service Configuration tool, select the System->Administration->Services menu option and scroll down the list of services until you find httpd. Select the item in the list and click on the Start button. To ensure the services starts automatically on reboot, also click in the Enable toolbar button.
Testing the Web Server

Once the installation is complete the next step is to verify the web server is up and running. To do this fire up the web browser by clicking on the Fweb browser icon in the top desktop panel and enter 127.0.0.1 in the address bar (127.0.0.1 is the loop-back network address which tells the system to connect to the local machine). The browser should load the Apache 2 Test Page. Congratulations, you have now installed the web server and served up what will hopefully be the first of many web pages.
Configuring the Apache Web Server for Your Domain

The next step in setting up your web server is to configure it for your domain name. This is performed in the /etc/httpd directory. To configure the web server open a terminal window and change directory to /etc/httpd. In this directory you will find a number of sub-directories. Change directory into the conf sub-directory where you will find an httpd.conf file which contains the configuration settings for the Apache server.
Edit the httpd.conf file using your favorite editor using the su command to ensure you have write permission to the file. Once loaded, there are a number of settings that need to be changed to match your environment:

The ServerAdmin directive defines an administrative email address for people wishing to contact the webmaster for your site. Change this to an appropriate email address where you can be contacted:

        ServerAdmin [email protected]

Next the ServerName and ServerAlias directives need to be defined so that the web server knows which virtual host this configuration file refers to:

        ServerName myexample.com

Next, we need to define where the web site files are going to be located using the DocumentRoot directive. The tradition is to use /var/www/domain-name:

        DocumentRoot /var/www/myexample.com

Next, create the /var/www/myexample.com directory and place an index.html file in it. For example:

<html>
<title>Sample Web Page</title>
<body>
Welcome to MyExample.com
</body>
</html>

The last step is to restart the apache web server to make sure it picks up our new settings:

su - 
/sbin/service httpd restart

Web Server and Firewall Issues

If your CentOS system is configured to use a firewall, you will need to ensure that HTTP traffic on port 80 is permitted in order for external systems to be able to access your web server. Refer to Basic CentOS Firewall Configuration for details on configuring CentOS Firewalls.
If the CentOS system hosting your web server sits on a network protected by a firewall (either another computer running a firewall, or a router or wireless base station containing built in firewall protection) you will need to configure the firewall to forward port 80 to your web server system. The mechanism for performing this differs between firewalls and devices so check your documentation to find out how to configure port forwarding.
Once everything is configured it should be possible to enter the domain name of your web site into a browser anywhere in the world and access your web server


Time to Setup Navicat user with phpmyadmin
 
1. got to phpmyadmin
2. it will ask you to login in put root in as your user name
3. click on Reload privileges
4. Click on Add User
5. Where you see User name put a User Name for navicat
6. Where you see Host put your Ip
7. put your password you want
8. Global prilileges click Check all
9. Hit go and your done
 
Lets Install screen next its a must have
 
yum install screen
 
Now lets in stall htop
 
yum install htop
 
If you are missing any libs when your start your server all you have to do is yum install libname

 

 

yes maby is better this is in lc dev MPCforum for profesional users dedicated server i give for peoples try to only home use

Opublikowano

hAHAHA NIE DOŚĆ ŻE ZOSTAŁO MI TYLKO 9 LAIKÓW TO JESZCZE HAHA SAFELINKI POUSUWANE DOBRE JAJA ALE JA NA TO CZEKAM SKASUJCIE MI JESZCZE OPCJE WEJŚCIA NA FORUM xD BO PRAWDA W OCZY KOLE .................. NA FORACH AZ SIE ZYGAC CHCE NO I TEN BIEDNY LC WSZYSCY TEGO ŻAŁUJĄ CO ZA LUDZIE ALE WIECIE CO JEST NAJŚMIESZNIEJSZE ZE TYLKO W POLSCE ----> KURDE TEN KRAJ ZAWSZE MIAŁ Z TYM PROBLEM KRAJ = LUDZIE A U NAS TO JEST TAK KRAJ - LUDZIE = WIADOMO CO ---> NO I TE BOTY  KASUJĄCE PLIKI MIMO ZE BEZPIECZNE CZY KAŻDE FORUM MUSI BYĆ OPARTE NA SYSTEMIE BOTÓW TO SIE DOPIERO NAZYWA ROZWÓJ OPÓŻNIAJĄCY ROZWÓJ CÓŻ jeszcze 9 LAJKÓW MI ZOSTAŁO CIEKAWI MNIE JAKI TERAZ BĘDZIE EFEKT HM A MOŻE YUM UNINSTALL MY IP CIEKAWE NO JA MAM UBAW     jej to PRZERAŻAJĄCE JAKI ZEMNIE NIEPOPRAWNY CZŁOWIEK o.O CZYŻBYM BYŁ WULGARNY ??? UPS I BEZ SZCZELNY 0.O UUUU NIE DOBŻE  CO JA POCZNE UHM MOJA OPINIA AAAAAA TO PRZERAZAJĄCE 

 

dobra nara nudzi mnie to forum tematy nie w tematy o tematach

 

 JAK JA KOCHAM TO MIEJSCE

 

@igormaster - Godzina na wstawienie skanu. - Karyvlea

 

Linki usunięte, brak skanu. - Karyvlea

Opublikowano

 

hAHAHA NIE DOŚĆ ŻE ZOSTAŁO MI TYLKO 9 LAIKÓW TO JESZCZE HAHA SAFELINKI POUSUWANE DOBRE JAJA ALE JA NA TO CZEKAM SKASUJCIE MI JESZCZE OPCJE WEJŚCIA NA FORUM xD BO PRAWDA W OCZY KOLE .................. NA FORACH AZ SIE ZYGAC CHCE NO I TEN BIEDNY LC WSZYSCY TEGO ŻAŁUJĄ CO ZA LUDZIE ALE WIECIE CO JEST NAJŚMIESZNIEJSZE ZE TYLKO W POLSCE ----> KURDE TEN KRAJ ZAWSZE MIAŁ Z TYM PROBLEM KRAJ = LUDZIE A U NAS TO JEST TAK KRAJ - LUDZIE = WIADOMO CO ---> NO I TE BOTY  KASUJĄCE PLIKI MIMO ZE BEZPIECZNE CZY KAŻDE FORUM MUSI BYĆ OPARTE NA SYSTEMIE BOTÓW TO SIE DOPIERO NAZYWA ROZWÓJ OPÓŻNIAJĄCY ROZWÓJ CÓŻ jeszcze 9 LAJKÓW MI ZOSTAŁO CIEKAWI MNIE JAKI TERAZ BĘDZIE EFEKT HM A MOŻE YUM UNINSTALL MY IP CIEKAWE NO JA MAM UBAW     jej to PRZERAŻAJĄCE JAKI ZEMNIE NIEPOPRAWNY CZŁOWIEK o.O CZYŻBYM BYŁ WULGARNY ??? UPS I BEZ SZCZELNY 0.O UUUU NIE DOBŻE  CO JA POCZNE UHM MOJA OPINIA AAAAAA TO PRZERAZAJĄCE 

 

dobra nara nudzi mnie to forum tematy nie w tematy o tematach

 

 JAK JA KOCHAM TO MIEJSCE

 

@igormaster - Godzina na wstawienie skanu. - Karyvlea

 

Linki usunięte, brak skanu. - Karyvlea

 

Linki zostały usunięte z powodu braku skanu (polecam przeczytać regulamin). Jeżeli chcesz zabłysnąć tym, że ciśniesz po wszystkich to raczej złe miejsce wybrałeś bo tutaj nikogo to nie rusza. Większa ilość spamu/wyzwisk będzie skutkowała blokadą konta, nikt nie chce się z Tobą bawić. 

Opublikowano

I. Bloody się bawi w humanistę :rolleyes:
 

Słuchaj gościu nie obrażaj mnie to po pierwsze, kim ty w ogóle jesteś żeby mnie od głupich wyzywać? Co ty sobie wyobrażasz że co, wolno Ci mnie obrażać bo chcę pomóc? W takim razie sam jesteś (to ty jesteś) [...] skoro uważasz że tylko tobie wolno wiedzieć jak się stawia serwer jest dużo ludzi którzy chcą sobie w domu sami dla siebie zrobić serwer żeby powymiatać albo ze znajomymi se stworzyć priw nie każdego stać na otwarcie serwera. Takich jak ty więcej i gratuluje, a powiem Ci czemu to robię. Ponieważ wychyliłem się o pomoc na MPC i zostałem wyśmiany że nie ogarnę bazy danych, że mam się za to nie brać, że ja tego na pewno nie ogarnę. I wiesz co Ci powiem? Właśnie to mnie zmotywowało żeby dać ludziom to czego mi nie dano, i tyle z twojego "Głupi"? Powiem tak: walą mnie wasze zasady na tym forum jakimi prawami się rządzi. Mi nikt nie zabroni wyrażać myśli i spełniać swoich chęci, jak jesteś egoistą to niczego się nie dorobisz w życiu, jedynie uninstall mózgu. Zrobisz się aspołeczny ale to twoja sprawa i sobie w egoizm. Nie moje życie tylko twoje, publicznie tu powiem tak: wali mnie to czy robię błędy i czy kogoś to gryzie w oczy. Ja przekazuję wiedzę, i najmniej mnie obchodzą te wasze podrzędne komentarze. Wijcie sobie to do głów egocentrycy, i JASNE A TEN ZNOWU MA PROBLEM NIE NIE MAM GO JA POPROSTU NIE JESTEM EGOISTĄ I NIE BĘDĘ BAŁ SIĘ WYRAŻAĆ UCZUĆ I OPINII JAK KOMUŚ TO NIE PASUJE TO NIECH SOBIE KALENDARIUM ŻALI I ROZPACZY OPRACUJE I UDRĘCZA SIĘ DO KOŃCA ŻYCIA. Poniżej daje linka do full serwera ep3 :P, obiecałem i daje:
 
--- xxx --- działa szybko ściągać zanim ktoś usunie to z tego uploada
 
/ @igormaster - godzina na wstawienie skanu. - Karyvlea
 
Linki usunięte, brak skanu. - Karyvlea

1. Zasady są po to aby ich przestrzegać, jeżeli będziesz tak podchodzić do zasad np. w pracy to nie masz czego tam szukać. Wybacz mi ale taka prawda.
2. To czemu piszesz pierw o jego życiu? Mózg rozjebany o:
3. W takim razie musisz być nieźle powalony jak Cię tak wszystko wali..
4. F*ck logic?
fuck_7c6597_1672911.gif

II. Seriously?

Yes maybe is better this is in lc dev MPCforum for profesional users dedicated server i give for peoples try to only home use

Nie no mózg rozjebany, nawet nie chce mi się błędów poprawiać.. Btw. to Polak.

III.

Ależ dziękuję za szczere wyrazy uznania mojej wielkiej głowy xD ;P

Super też mi się to podoba chyba zacznę się z tego powodu masturbować

Żeby się masturbować trzeba dojrzeć.

IV.

super a do tego pakietu o wykradaniu UPRZEJMIE PROSZĘ SZANOWNI LASTCHAOSOWICZE KLIENT A TU JESZCZE NIZEJ ZDAJE SIE LINK Z PLIKAMI SERVER SAFE LINK OCZYWIŚCIE JA ICH NIE ROBILEM TYLKO CDWRITER POLECAM TA PACZUSIĘ____
 
--- xxx---- pliki serverowe dla zawziętych dedykowców i tych co w domu sobie stawiają poza tym pozdro dla ubliżaczy kocham to codziennie maże żeby mi ktoś do pieca dowalił to mnie jara :P xD yum uninstall my muzg xD

AHA TAK APROPO KOCHAM TE FORUM ZA TO ŻE SĄ TU TACY UPRZEJMI UBLIŻACZE PONIŻACZE I INNI KTÓŻY DOSTARCZAJĄ WSPANIAŁEJ ROZRYWKI FORUMOWEJ
 
JAKIEJ NIE MA W CODZIENNYM ŻYCIU PRZEZ WZGLĄD NA TO ŻE NIE MA CZASU NA CODZIEŃ NA TAKIE ATRAKCJE POZDRAWIAM SERDECZNIE RÓWNIESZ TYCH OD HAMSTWA TO COŚ RÓWNIE REWELACYJNEGO NO JA JESTEM ZACHWYCONY NIC LEPRZEGO NIE MA W ŻYCIU JAK 100% ATRAKCJI I SATYSFAKCII xD

A WOGÓLE NAJBARDZIEJ PODOBA MI SIĘ TO A TO JUŻ REWELACJA JAK KTOŚ PISZE WOGÓLE NIE W TEMAT TO JUŻ RARYTAS CODZIENNIE ROBIE SOBIE SCREENA ZEBY NA PULPIT SOBIE ZAJEFAJNĄ TAPETKE NA UNIKALNEJ LICENCII UNINSTALL MUZGU ZROBIĆ  JEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE !!!!!!!!!

JAK ZROBIE SAM COŚ TO NAWET WŁAMYWAĆ SIE NIE BĘDZIECIE MUSIELI ODRAZU DODAM NA FORUM LINKA DO ZASSANIA 
 
 
JEJ JAK JA KOCHAM TO MIEJSCE
 
@igormaster - Godzina na wstawienie skanu. - Karyvlea
 
Linki usunięte, brak skanu. - Karyvlea

Naprawdę?
japierdolect.jpg

V.

hAHAHA NIEDOSC ZE ZOSTALO MI TYLKO 9 LAIKÓW TO JESZCZE HAHA SAFELINKI POUSUWANE DOBRE JAJA ALE JA NA TO CZEKAM SKASUJCIE MI JESZCZE OPCJE WEJSCIA NA FORUM xD BO PRAWDA W OCZY KOLE TE WSZYSTKIE DUPY H K NA FORACH AZ SIE ZYGAC CHCE NO I TEN BIEDNY LC WSZYSCY TEGO ZALUJA CO ZA LUDZIE ALE WIECIE CO JEST NAJSMIESZNIEJSZE ZE TYLKO W POLSCE ----> KURDE TEN KRAJ ZAWSZE MIAL Z TYM PROBLEM KRAJ = LUDZIE A U NAS TO JEST TAK KRAJ - LUDZIE = WIADOMO CO ---> NO I TE BOTY  KASUJACE PLIKI MIMO ZE BESPIECZNE CZY KAZDE FORUM MUSI BYC OPARTE NA SYSTEMIE BOTÓW TO SIE DOPIERO NAZYWA ROZWÓJ OPÓZNIAJĄCY ROZWÓJ CUŻ jeszcze 9 LAJKÓW MI ZOSTAŁO CIEKAWI MNIE JAKI TERAZ BĘDZIE EFEKT HM A MOZE YUM UNINSTALL MY IP CIEKAWE NO JA MAM UBAW     jej to PRZERAŻAJĄCE JAKI ZEMNIE NIEPOPRAWNY CZŁOWIEK o.O

Nie żeby coś, poprawiał bym dalej ale jestem zmęczony. Co do usuwania linków i teraz wychodzi ten twój "walony regulamin". Publikując linki wychodzące poza MPC Forum trzeba również przeskanować za pomocą virustotal.

Podsumowując kilka słów: Słownik języka Polskiego.

Dziękuje pozdrawiam, i dobranoc.

Ahh zapomniałbym. W moim poście nie mam na celu upokarzania bądź obrażania jakiejkolwiek osoby.
Co do samego tematu, to są o wiele lepsze tutoriale niż ten twój i bardziej czytelne. Następnym razem radzę popracować nad ortografią i interpunkcją.

Opublikowano

Hehehe beka z typa xD

Po 1 nikt na twoim serwie stąd nie zagra, a jak zagra to po to by go rozwalić.

Po 2 Nie podobają Ci się zasady, które są na tym forum? To do widzenia, nikt Ci nie karze tu wchodzić, a przede wszystkim pisać. Każdy Twój post zabija 1 potworka kręcącego talerz w mikrofali [*] , tak więc zaprzestań bestialskich mordów.

Po 3 Pewnie nawet nie czytałeś regulaminu, więc nie czepiaj się, że dostajesz ostrzeżenia etc. Przytoczę: "nieznajomość regulaminu nie upoważnia Cię do jego niestosowania" czy jakoś tak.

Po 4 U was? To chyba Chornobyl'  xD

 

Tyle ode mnie, see ya later.

k1hvCVp.gif

Opublikowano

Po 3 Pewnie nawet nie czytałeś regulaminu, więc nie czepiaj się, że dostajesz ostrzeżenia etc. Przytoczę: "nieznajomość regulaminu nie upoważnia Cię do jego niestosowania" czy jakoś tak.

KchymKchym ten regulamin, sorki sam zapomniałem :PPPPPPPPP

  • 4 miesiące temu...

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...