[HELP]

09/22/2010 07:25 DeadHackerz#1
Hello Guys i really need your helps...

Herre the problems i am using elite4demons website released by him...so my server already on but why at website show offline...:confused:
if anyone know how to fix this let me know please
09/22/2010 09:01 XxFearReaperXx#2
make sure the config files for the website have the same User and Password as the server and make sure the "Server Status" script has the correct ports
09/22/2010 09:15 DeadHackerz#3
whats the correct ports for status scripts?
09/22/2010 09:44 San-Goku#4
lol..make sure ur MySQL Admin is GREEN LIGHT..if it is red..then go to C:\Window then delete my.ini.after that right click on the MySQL Admin & took ''Run as Administer"..then put ur db ID & PASSWORD..make sure ur MySQL Admin & db ID & PASS is the same
09/22/2010 10:30 MizTenshi#5
make sure in navicat you created the acc for the web site to access like

example:

username: website
host: %
password whatever
confirmpassword: whatever

then you return and make sure your config file has this information in it so it can work.
09/22/2010 15:23 King_Arthur#6
Quote:
Originally Posted by San-Goku View Post
lol..make sure ur MySQL Admin is GREEN LIGHT..if it is red..then go to C:\Window then delete my.ini.after that right click on the MySQL Admin & took ''Run as Administer"..then put ur db ID & PASSWORD..make sure ur MySQL Admin & db ID & PASS is the same
The problem is the website shows the server is offline, but the server is actually online. No problems with mysql there.

Quote:
Originally Posted by MizTenshi View Post
make sure in navicat you created the acc for the web site to access like

example:

username: website
host: %
password whatever
confirmpassword: whatever

then you return and make sure your config file has this information in it so it can work.
Bad Idea. Using % for host means any IP in existence can use that login information. Better to at least keep it in a range like 192.168.1.% or 10.0.% at worst. This is how most servers probably get "hacked" here.
09/22/2010 17:44 Jack Sparrow#7
i had this problem before a week here is the fix itis in the config file
change the serveraddress to 127.0.0.1 (localhost) and it will work fine

it should be like this

Code:
<?php
	require_once './inc/class.captcha.php';
	// Configurations
	$myhost="localhost";
	$mypass="test"; 		//your server login password
	$myuser="root"; 		//your server login username
	$mydbacc="account";		//your server account database
	$mydbdata="my";			//your server my database name
	$serveraddress="127.0.0.1"; 	//your server ip  [COLOR="Red"]<====== this one[/COLOR]
	$serverport=5816;		//your server connection port
	$servername="TEST"; 	//your server name
	$forum="www.google.com"; 	//your server forum
	$mydb="my";			//your server my database

	// Dont Edit after this
	mysql_connect($myhost,$myuser,$mypass);
	mysql_select_db($mydb);
?>
09/22/2010 17:48 King_Arthur#8
Quote:
Originally Posted by Zero300 View Post
i had this problem before a week here is the fix itis in the config file
change the serveraddress to 127.0.0.1 (localhost) and it will work fine
...
This works only if the website is hosted on the same machine as the server files, which is not always the case.
09/22/2010 17:52 Jack Sparrow#9
Quote:
Originally Posted by King_Arthur View Post
This works only if the website is hosted on the same machine as the server files, which is not always the case.
yeah iam hosting the website on the same pc as the server and it worked
09/22/2010 20:33 Death[PM]#10
Here is the fix for that. Hope it will help you
Code:
<?php
    require_once './inc/class.captcha.php';
    // Configurations
    $myhost="localhost"; // change to the ip of the hosting server
    $mypass="test";         //your server login password, password to connect to the hosting server
    $myuser="root";         //your server login username, user name to connect to the hosting server
    $mydbacc="account";        //your server account database
    $mydbdata="my";            //your server my database name
    $serveraddress="localhost";     //your server ip, if using the ip of another server your router will have to be portforward. In order for them to see this without hamahci.
    $serverport=5816;        //your server connection port
    $mydb="my";            //your server my database
    $servername="Your Server Name!";

$page = basename($_SERVER['SCRIPT_FILENAME']);
$page = str_replace('_',' ',$page);
$page = str_replace('.php','',$page);
$page = ucfirst($page);    

    // Dont Edit after this
    mysql_connect($myhost,$myuser,$mypass);
    mysql_select_db($mydb);
?>
All you have to do is change the $myhost="localhost"; to the servers host. This will put it online. You will need to go in and more inlikely change nay files containing the files that need the user and pass, and ip of the server. So hopefully this should fix your problem.