Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 16:47

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

Advertisement



[Problem]Homepage error!

Discussion on [Problem]Homepage error! within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
HDesign's Avatar
 
elite*gold: 0
Join Date: Apr 2013
Posts: 102
Received Thanks: 3
[Problem]Homepage error!

hi ,
i installed homepage script
and i go to
(the website)

and this problem



can you fix this problem ?
HDesign is offline  
Old 04/22/2013, 14:46   #2
 
.Tobias's Avatar
 
elite*gold: 0
Join Date: Jul 2010
Posts: 1,398
Received Thanks: 663
Can you maybee show us the Code on Line 16 ?
.Tobias is offline  
Old 04/22/2013, 15:35   #3
 
HDesign's Avatar
 
elite*gold: 0
Join Date: Apr 2013
Posts: 102
Received Thanks: 3
yes



HDesign is offline  
Old 04/22/2013, 15:46   #4
 
elite*gold: 1
Join Date: Feb 2012
Posts: 86
Received Thanks: 6
Is the IP adress : 25.127.15.131
Right ?
Descended. is offline  
Old 04/22/2013, 16:02   #5
 
HDesign's Avatar
 
elite*gold: 0
Join Date: Apr 2013
Posts: 102
Received Thanks: 3
yes
HDesign is offline  
Old 04/22/2013, 16:32   #6
 
Spartan#117's Avatar
 
elite*gold: 0
Join Date: Apr 2013
Posts: 151
Received Thanks: 149
The IP address should be wrapped with ' ' or " " Tags, cause it's a string. (same for user, password and every other string)

Replace lines 15 and 16 with this:
PHP Code:
$sqlHp mysql_connect('localhost''root''1234')
$sqlServ mysql_connect('25.127.15.131''db_manage''signe'
Spartan#117 is offline  
Old 04/22/2013, 16:43   #7
 
HDesign's Avatar
 
elite*gold: 0
Join Date: Apr 2013
Posts: 102
Received Thanks: 3
not fixed
HDesign is offline  
Old 04/22/2013, 16:48   #8
 
Spartan#117's Avatar
 
elite*gold: 0
Join Date: Apr 2013
Posts: 151
Received Thanks: 149
A little more information would be helpful.

What error appears now? The error you had should be fixed with my code above.
Spartan#117 is offline  
Old 04/22/2013, 16:56   #9
 
HDesign's Avatar
 
elite*gold: 0
Join Date: Apr 2013
Posts: 102
Received Thanks: 3
HDesign is offline  
Old 04/22/2013, 17:21   #10
 
Spartan#117's Avatar
 
elite*gold: 0
Join Date: Apr 2013
Posts: 151
Received Thanks: 149
Try replacing line 15 and 16 with this code:
PHP Code:
$sqlHp mysql_connect('localhost''root''1234');
$sqlServ mysql_connect('25.127.15.131''db_manage''signe'); 
I forgot the semicolon at the end of each line, sorry.
Spartan#117 is offline  
Old 04/22/2013, 17:30   #11
 
HDesign's Avatar
 
elite*gold: 0
Join Date: Apr 2013
Posts: 102
Received Thanks: 3
fixed
but new problem

HDesign is offline  
Old 04/22/2013, 17:44   #12
 
Spartan#117's Avatar
 
elite*gold: 0
Join Date: Apr 2013
Posts: 151
Received Thanks: 149
Your MySQL user is not allowed to connect to the gameserver database. That is normal, because the gameserver user is only allowed to connect from localhost.

In my opinion this is the best way to solve this problem:

Create a new mysql user on the gameserver database and allow connections from every host.
Run these querys on the gameserver database:
Warning: Replace USERNAME and PASSWORD with your new username and password and make sure that you use a strong password!
Code:
CREATE USER 'USERNAME'@'%' IDENTIFIED BY 'PASSWORD';
Give the rights to the user:
Again, replace USERNAME with your created user
Code:
GRANT ALL ON account.* TO 'USERNAME'@'%';
GRANT ALL ON common.* TO 'USERNAME'@'%';
GRANT ALL ON hotbackup.* TO 'USERNAME'@'%';
GRANT ALL ON log.* TO 'USERNAME'@'%';
GRANT ALL ON player.* TO 'USERNAME'@'%';
Reload the privileges:
Code:
FLUSH PRIVILEGES;
Replace the username and password of the gameserver-connection in your website on line 16:
PHP Code:
$sqlServ mysql_connect('25.127.15.131''USERNAME''PASSWORD'); 
Spartan#117 is offline  
Old 04/22/2013, 18:40   #13
 
HDesign's Avatar
 
elite*gold: 0
Join Date: Apr 2013
Posts: 102
Received Thanks: 3
i can't type @


why
HDesign is offline  
Old 04/22/2013, 20:13   #14
 
Spartan#117's Avatar
 
elite*gold: 0
Join Date: Apr 2013
Posts: 151
Received Thanks: 149
Where are you typing those Querys? They should be executed in Navicat or another SQL-Client.
Spartan#117 is offline  
Old 04/22/2013, 20:27   #15
 
HDesign's Avatar
 
elite*gold: 0
Join Date: Apr 2013
Posts: 102
Received Thanks: 3
where can i type this ?
i type in console (BSD)
HDesign is offline  
Reply


Similar Threads Similar Threads
Homepage by hen! Error
12/05/2012 - Metin2 Private Server - 3 Replies
Hallo, ich habe das Problem wenn ich ein Acc anlegen will das dies kommt: Registrierung fehlgeschlagen: Der Account existiert bereits. Alle Felder sind Pflichtfelder und müssen ausgefüllt werden. Der Account existiert nicht. Egal welche ID ich versuche kommt immer das gleiche.
Homepage Error
11/19/2012 - Web Development - 1 Replies
Hey E*Pvpers, ich habe einen Error auf meiner Homepage, wobei ich allerdings den Fehler nicht finde. Hier der Error: http://www10.pic-upload.de/thumb/19.11.12/wjhqckg tky4x.png Der Entsprechende Part im Code (Der genaue Part ist unterstrichen): function cutTxtInParts($strFileName) { global $_CONFIG; $file = fopen('includes/' . $_CONFIG . '/' . $strFileName . '.' . $_CONFIG, 'r');
Homepage Error
02/22/2012 - Metin2 Private Server - 2 Replies
Can anyone help me with this error?The homepage it's configured well.It's about daroo r1678,in localhost it's working,but i've put it on a domain and it won't start.Here's the error: PHP Warning: require(./inc/config.inc.php) : failed to open stream: No such file or directory in /home/advance7/public_html/index.php on line 6 PHP Warning: require(./inc/config.inc.php) : failed to open stream: No such file or directory in /home/advance7/public_html/index.php on line 6 PHP Fatal error: ...
Homepage Error
08/21/2011 - Combat Arms - 1 Replies
Hey Leute. Nachdem mein Freund sich auf der Hompage von Combat Arms versucht hat einzuloggen, kam auf einmal diese Error Meldung. Jetzt kann ich garnicht mehr auf die Nexon Seite... Kennt jemand einen ausweg? http://s7.directupload.net/images/110821/3a3evmzn .png
[Help pls] Homepage error :(
01/10/2011 - Metin2 Private Server - 11 Replies
Parse error: syntax error, unexpected T_DNUMBER, expecting T_VARIABLE or '$' in C:\xampp\htdocs\scripts\login\login.php on line 12 Was muss ich machen? Heelft, bitte! :(



All times are GMT +1. The time now is 16:49.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.