Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server > Metin2 PServer Guides & Strategies
You last visited: Today at 01:56

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release]Install a Web dedicated server + Metin2

Discussion on [Release]Install a Web dedicated server + Metin2 within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Closed Thread
 
Old   #1
 
kikiru7895123's Avatar
 
elite*gold: 0
Join Date: Apr 2011
Posts: 96
Received Thanks: 61
[Release]Install a Web dedicated server + Metin2

Welcome on the complete tutoriel to install on an environment FreeBSD a Web server + server Metin2.

~~~~~

* Check of the KNOWN Mode
* Permission of an access root remote and change of the port(bearing) ssh
* Modification of the password root
* Execute portsnap for the first time
* Installation of Mysql server version 5.1
* Apache installation and PHP
* Apache configuration
* Test Web server


Throughout this tutoriel we have a machine FreeBSD 7.2 in version 32 bits with 4 Go of RAM, and 160 Go of disk space.

Begin by you live with an access ssh supplied by your host.

* Check of the KNOWN Mode



For the first access verify that you are ' great User ' thanks to the prefix ssh there if it is one
*
You are 'su' if it is one
$
It is necessary to use the command
$ SU
Then enter the root password of your dedicated server supplied in the e-mail of your host concerning the accesses.

* Permission of an access root remote and change of the port ssh

It is necessary to edit the configuration file of ssh by using the utility ' ee '

Code:
# ee /etc/ssh/sshd_config
Then look for the line

Code:
#PermitRootLogin no.
This line is commented it is necessary die to comment (for die to comment it is necessary to deleteeliminate * in front of the line) and to replace ' no ' by ' yes ' what will give:

Code:
PermitRootLogin yes
You can take advantage whom you are in the configuration file to modify the port ssh
Look and of comment on the line

Code:
#Port 22
By

Code:
Port XX
Watch the property to comment and replace XX by the future port ssh chooses.

Use the key [Esp] of your keyboard then Leave editor then Save Changes

It is necessary to make a reboot to take into account the changes. In the reboot, once the service ssh restarted you can directly connect there root on your ssh via puTTY. (Attention to change well in puTTY the informed port 22 leaves the one that you have chooses above.)


After the reboot, you thus find accommodation there root with the password which supplied you your host.

* Modification of the password root.




Under ssh use this command to change the password:

Code:
# passwd
Code:
Enterpassword:( Shall type you here your password (nothing appears it is normal, on principle of security.)
Code:
Repeat password: ( Repetition of the password (nothing appears it is normal, on principle of security.)
Your password in summer changed successfully!

* Execute portsnap for the first time




If in the installation of your dedicated server you do not have or your host did not install the portsnap collection you have to make him.

( Portsnap is a software library, thanks to him you can of a simple command configure them and install them.)
Use this command to get back sources and extraires.


Code:
 portsnap fetch extract
It is recommended to make often updates of portsnap thanks to this command:

Code:
# portsnap fetch update
Once executed portsnap you can install packets easily.

* Installation of Mysql server version 5.1




We open the file containing the packet mysql 5.1 in portsnap:

Code:
cd /usr/ports/databases/mysql51-server/
We are going to compile him and to install him by incorporating quite xcharset and eventually cleaning the not locked packs:

Code:
make WITH_XCHARSET=all install clean
It is afterward necessary to activate the Mysql service in the starting up of your machine by modifying the rc.conf file with the utility ' ee ' editor text):

Code:
ee /etc/rc.conf
It is necessary to add a line at the containing end

Code:
mysql_enable= "YES"
Use the key [Esp] of your keyboard then Leave editor then Save Changes

Now in your next restart Mysql will run automatically.

Now restart Mysql so that the changes operate by using:

Code:
/usr/local/etc/rc.d/mysql-server restart
Now we are going to find accommodation root on Mysql:

Code:
mysql -u root -p
Enter Password:

Type [Enter]
You reach the console Mysql.
The first one of things to be made is to create a user with total access. We are thus going to use this request SQL

Code:
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'enter password' WITH GRANT OPTION;
Then we are going to create the user of the rows metin2:

Code:
mysql> GRANT ALL PRIVILEGES ON *.* TO 'mt2'@'localhost' IDENTIFIED BY 'mt2!@#' WITH GRANT OPTION;
mysql> Flush privileges;
mysql> quit

* Apache installation and PHP

Apache 2.2:

We are going to open the file Apache in portsnap

Code:
cd /usr/ports/www/apache22
We compile it and install it
Code:
make install clean
Once the ended installation it is necessary to activate the service in the starting up.
We are thus going to modify the rc.conf file

Quote:
ee /etc/rc.conf
And add lastly the line to activate Apache 2.2.

Quote:
apache22_enable= "YES"
Henceforth Apache will start in every reboot automatically.

We are going to configure Apache after the installation of php!


Php 5 :

We are going to open the file of the packet php version 5 in portsnap

Code:
cd /usr/ports/lang/php5
Configure the installation

Quote:
make config
We have to choose Apache in the page of configuration then OK to create its module.

Finish by the installation

Quote:
make install clean
hen we are going to install the extensions

Code:
cd /usr/ports/lang/php5-extensions
Configure the installation

Code:
 make config
Choose Mysql at least besides the extensions by default.

Finish installation

Quote:
make install clean
Here is we have Apache and php of installed on

* Apache configuration



It is necessary to create the module for php5, we are thus going to create a configuration file for php:

Quote:
ee /usr/local/etc/apache22/Includes/php.conf
Then we are going to stick this:

Quote:
<IfModule mime_module>
<IfModule php4_module>
AddType application/x-httpd-php .php
</IfModule>
<IfModule php5_module>
AddType application/x-httpd-php .php
</IfModule>
</IfModule>
Use the key [Esp] of your keyboard then Leave editor then Save Changes


Now we are going to configure the index by default so that he adds index.php:
So in the httpd.conf file we are going to edit:

Quote:
ee /usr/local/etc/apache22/httpd.conf
Then we fetch this part:

Quote:
<IfModule dir_module>
DirectoryIndex index.html

Quote:
</IfModule>
And replace her by:

Quote:
<IfModule dir_module>
<IfModule php5_module>
DirectoryIndex index.php index.html
</IfModule>
<IfModule !php5_module>
<IfModule php4_module>
DirectoryIndex index.php index.html
</IfModule>
<IfModule !php4_module>
DirectoryIndex index.html
</IfModule>
</IfModule>
</IfModule>
Use the key [Esp] of your keyboard then Leave editor then Save Changes

* Test Serveur Web



Starting up of apache2.2:

Quote:
/usr/local/etc/rc.d/apache22 start
Now we can go to make out a will if Apache is functional by going to the address of our waiter in an Internet browser.

Exemple:

My dedicated serveur has for ip 123.456.78.901
I go on internet and type: http: // 123.456.78.901/

If you see the sentence It Works!

And indeed congratulation you installed Apache successfully.

Now we are going to verify the interpretation php.


Produce you on your sFTP by WinSCP for example.

You live and go in / usr / premises / www / apache22 / dated/
You go to delete index.html and to create a new file php named: index.php

Quote:
<?php
phpinfo();
?>
Register and return you on the page of your dedicated http: // 123.456.78.901/for my example.

If you see directly the index.php page with the configuration of your php you managed to configure and to interpret php.

You can begin to install your site.
To put files in your Web server it will be directly there inside:
Quote:
/usr/local/www/apache22/data/

I hope that this tutoriel will have you more and will have you learnt sure things of which the functioning of a Web server and its installation.

We shall see in another tutoriel the installation of phpMyAdmin and the reassurance of its server.
kikiru7895123 is offline  
Thanks
16 Users
Old 04/06/2011, 07:51   #2
 
.Rebel's Avatar
 
elite*gold: 60
Join Date: May 2010
Posts: 766
Received Thanks: 1,025
have many topics of that close
.Rebel is offline  
Old 04/06/2011, 08:23   #3
 
Sphinx²'s Avatar
 
elite*gold: 1918
Join Date: Feb 2008
Posts: 1,368
Received Thanks: 1,287
We have much tutorials about this topic.

# Close request
Sphinx² is offline  
Old 04/06/2011, 15:02   #4
 
LS-fanfan's Avatar
 
elite*gold: 140
Join Date: Mar 2009
Posts: 1,345
Received Thanks: 194
gibts zwar schon..., aber nicht auf englisch!
LS-fanfan is offline  
Thanks
3 Users
Old 06/02/2011, 12:54   #5
 
elite*gold: 0
Join Date: Feb 2011
Posts: 20
Received Thanks: 0
Dude yesterday I bought a dedicate server but I don´t know how I install It!!! I pay your if your help me
synxsoft2 is offline  
Old 08/19/2011, 19:00   #6
 
dillerss's Avatar
 
elite*gold: 0
Join Date: Mar 2011
Posts: 2
Received Thanks: 0
Hey :
I have Plesk server and I wont to make Metin2 play by it , and I dont know how to do it
can anyone can help me to make metin2 work by my server Plesk , I will give for helping me domain .com or net or org or any name of domain and host ,
I have Metin2 work by Hamachi but this not work 24/7
dillerss is offline  
Old 08/19/2011, 21:31   #7
 
kikiru7895123's Avatar
 
elite*gold: 0
Join Date: Apr 2011
Posts: 96
Received Thanks: 61
For any help concerning this tutoriel me on the other hand not free MP
kikiru7895123 is offline  
Old 06/15/2012, 13:21   #8
 
elite*gold: 0
Join Date: Apr 2008
Posts: 59
Received Thanks: 2
where is the part that I put the files on the server?
Nunuh91 is offline  
Old 02/08/2015, 20:27   #9
 
elite*gold: 0
Join Date: Jul 2013
Posts: 1
Received Thanks: 0
Quote:
Originally Posted by kikiru7895123 View Post
Welcome on the complete tutoriel to install on an environment FreeBSD a Web server + server Metin2.

~~~~~

* Check of the KNOWN Mode
* Permission of an access root remote and change of the port(bearing) ssh
* Modification of the password root
* Execute portsnap for the first time
* Installation of Mysql server version 5.1
* Apache installation and PHP
* Apache configuration
* Test Web server


Throughout this tutoriel we have a machine FreeBSD 7.2 in version 32 bits with 4 Go of RAM, and 160 Go of disk space.

Begin by you live with an access ssh supplied by your host.

* Check of the KNOWN Mode



For the first access verify that you are ' great User ' thanks to the prefix ssh there if it is one
*
You are 'su' if it is one
$
It is necessary to use the command
$ SU
Then enter the root password of your dedicated server supplied in the e-mail of your host concerning the accesses.

* Permission of an access root remote and change of the port ssh

It is necessary to edit the configuration file of ssh by using the utility ' ee '

Code:
# ee /etc/ssh/sshd_config
Then look for the line

Code:
#PermitRootLogin no.
This line is commented it is necessary die to comment (for die to comment it is necessary to deleteeliminate * in front of the line) and to replace ' no ' by ' yes ' what will give:

Code:
PermitRootLogin yes
You can take advantage whom you are in the configuration file to modify the port ssh
Look and of comment on the line

Code:
#Port 22
By

Code:
Port XX
Watch the property to comment and replace XX by the future port ssh chooses.

Use the key [Esp] of your keyboard then Leave editor then Save Changes

It is necessary to make a reboot to take into account the changes. In the reboot, once the service ssh restarted you can directly connect there root on your ssh via puTTY. (Attention to change well in puTTY the informed port 22 leaves the one that you have chooses above.)


After the reboot, you thus find accommodation there root with the password which supplied you your host.

* Modification of the password root.




Under ssh use this command to change the password:

Code:
# passwd
Code:
Enterpassword:( Shall type you here your password (nothing appears it is normal, on principle of security.)
Code:
Repeat password: ( Repetition of the password (nothing appears it is normal, on principle of security.)
Your password in summer changed successfully!

* Execute portsnap for the first time




If in the installation of your dedicated server you do not have or your host did not install the portsnap collection you have to make him.

( Portsnap is a software library, thanks to him you can of a simple command configure them and install them.)
Use this command to get back sources and extraires.


Code:
 portsnap fetch extract
It is recommended to make often updates of portsnap thanks to this command:

Code:
# portsnap fetch update
Once executed portsnap you can install packets easily.

* Installation of Mysql server version 5.1




We open the file containing the packet mysql 5.1 in portsnap:

Code:
cd /usr/ports/databases/mysql51-server/
We are going to compile him and to install him by incorporating quite xcharset and eventually cleaning the not locked packs:

Code:
make WITH_XCHARSET=all install clean
It is afterward necessary to activate the Mysql service in the starting up of your machine by modifying the rc.conf file with the utility ' ee ' editor text):

Code:
ee /etc/rc.conf
It is necessary to add a line at the containing end

Code:
mysql_enable= "YES"
Use the key [Esp] of your keyboard then Leave editor then Save Changes

Now in your next restart Mysql will run automatically.

Now restart Mysql so that the changes operate by using:

Code:
/usr/local/etc/rc.d/mysql-server restart
Now we are going to find accommodation root on Mysql:

Code:
mysql -u root -p
Enter Password:

Type [Enter]
You reach the console Mysql.
The first one of things to be made is to create a user with total access. We are thus going to use this request SQL

Code:
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'enter password' WITH GRANT OPTION;
Then we are going to create the user of the rows metin2:

Code:
mysql> GRANT ALL PRIVILEGES ON *.* TO 'mt2'@'localhost' IDENTIFIED BY 'mt2!@#' WITH GRANT OPTION;
mysql> Flush privileges;
mysql> quit

* Apache installation and PHP

Apache 2.2:

We are going to open the file Apache in portsnap

Code:
cd /usr/ports/www/apache22
We compile it and install it
Code:
make install clean
Once the ended installation it is necessary to activate the service in the starting up.
We are thus going to modify the rc.conf file



And add lastly the line to activate Apache 2.2.



Henceforth Apache will start in every reboot automatically.

We are going to configure Apache after the installation of php!


Php 5 :

We are going to open the file of the packet php version 5 in portsnap

Code:
cd /usr/ports/lang/php5
Configure the installation



We have to choose Apache in the page of configuration then OK to create its module.

Finish by the installation



hen we are going to install the extensions

Code:
cd /usr/ports/lang/php5-extensions
Configure the installation

Code:
 make config
Choose Mysql at least besides the extensions by default.

Finish installation



Here is we have Apache and php of installed on

* Apache configuration



It is necessary to create the module for php5, we are thus going to create a configuration file for php:



Then we are going to stick this:



Use the key [Esp] of your keyboard then Leave editor then Save Changes


Now we are going to configure the index by default so that he adds index.php:
So in the httpd.conf file we are going to edit:



Then we fetch this part:



DirectoryIndex index.html



And replace her by:



Use the key [Esp] of your keyboard then Leave editor then Save Changes

* Test Serveur Web



Starting up of apache2.2:



Now we can go to make out a will if Apache is functional by going to the address of our waiter in an Internet browser.

Exemple:

My dedicated serveur has for ip 123.456.78.901
I go on internet and type: http: // 123.456.78.901/

If you see the sentence It Works!

And indeed congratulation you installed Apache successfully.

Now we are going to verify the interpretation php.


Produce you on your sFTP by WinSCP for example.

You live and go in / usr / premises / www / apache22 / dated/
You go to delete index.html and to create a new file php named: index.php



Register and return you on the page of your dedicated http: // 123.456.78.901/for my example.

If you see directly the index.php page with the configuration of your php you managed to configure and to interpret php.

You can begin to install your site.
To put files in your Web server it will be directly there inside:



I hope that this tutoriel will have you more and will have you learnt sure things of which the functioning of a Web server and its installation.

We shall see in another tutoriel the installation of phpMyAdmin and the reassurance of its server.

I know this is old guide, but i want to thank you very very much. This is the guide i follow and suggest for everyone try to create a metin2 server. I've "modded" myself for use with FreeBSD 9.3 and "real" server. Thank you, very very much, indeed
Mpeglayer3 is offline  
Old 02/08/2015, 21:27   #10
wild wild son




 
Nick's Avatar
 
elite*gold: 0
Join Date: Feb 2011
Posts: 5,830
Received Thanks: 3,369
Quote:
Originally Posted by Mpeglayer3 View Post
I know this is old guide, but i want to thank you very very much. This is the guide i follow and suggest for everyone try to create a metin2 server. I've "modded" myself for use with FreeBSD 9.3 and "real" server. Thank you, very very much, indeed
A click on the thanks button or a private message would have been more appropriate here. (closerequested)

Greetings
Nick is offline  
Closed Thread




All times are GMT +2. The time now is 01:56.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.