Jump to content
  • 0

Server status


Meister

Question


  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  841
  • Reputation:   17
  • Joined:  04/16/12
  • Last Seen:  

Do I need to add privileges on mysql so that the ports will be open from my website ? I can't let my status go online. Yes there are threads about it but I can't seem to follow it.

Any guides or tutorial from youtube so that it'll be easy? Thanks!

Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  09/13/12
  • Last Seen:  

SQL has nothing to do with that

SQL =/= ports

Edited by Dythe
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  841
  • Reputation:   17
  • Joined:  04/16/12
  • Last Seen:  

SQL has nothing to do with that

SQL =/= ports

Then what should I do to make it work?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

Make sure that your web host allows you to access other ports other than 80..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  270
  • Reputation:   20
  • Joined:  12/10/11
  • Last Seen:  

if you use SQL on phpmyadmin, set a user with the correct host and priviledges so you don't get any mysql errors

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  108
  • Reputation:   0
  • Joined:  08/01/12
  • Last Seen:  

im little confusing with this..

my server is online but server status in offline in my fluxcp...

plz help me......tnx....

all applications is working my server status is the only error...

here's my screenshots..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  520
  • Reputation:   64
  • Joined:  11/19/11
  • Last Seen:  

im little confusing with this..

my server is online but server status in offline in my fluxcp...

plz help me......tnx....

all applications is working my server status is the only error...

here's my screenshots..

Post your status.php here.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  108
  • Reputation:   0
  • Joined:  08/01/12
  • Last Seen:  

<?php
if (!defined('FLUX_ROOT')) exit;

$title = Flux::message('ServerStatusTitle');
$cache = FLUX_DATA_DIR.'/tmp/ServerStatus.cache';

if (file_exists($cache) && (time() - filemtime($cache)) < (Flux::config('ServerStatusCache') * 60)) {
$serverStatus = unserialize(file_get_contents($cache));
}
else {
$serverStatus = array();
foreach (Flux::$loginAthenaGroupRegistry as $groupName => $loginAthenaGroup) {
if (!array_key_exists($groupName, $serverStatus)) {
$serverStatus[$groupName] = array();
}

$loginServerUp = $loginAthenaGroup->loginServer->isUp();

foreach ($loginAthenaGroup->athenaServers as $athenaServer) {
$serverName = $athenaServer->serverName;

$sql = "SELECT COUNT(char_id) AS players_online FROM {$athenaServer->charMapDatabase}.char WHERE online > 0";
$sth = $loginAthenaGroup->connection->getStatement($sql);
$sth->execute();
$res = $sth->fetch();

$serverStatus[$groupName][$serverName] = array(
'loginServerUp' => $loginServerUp,
'charServerUp' => $athenaServer->charServer->isUp(),
'mapServerUp' => $athenaServer->mapServer->isUp(),
'playersOnline' => intval($res ? $res->players_online : 0)
);
}
}

$fp = fopen($cache, 'w');
if (is_resource($fp)) {
fwrite($fp, serialize($serverStatus));
fclose($fp);
}
}
?>

Here!...

SOLVED!

Edited by gniryudan
Please use [CODEBOX] or Attachments for long contents.
Link to comment
Share on other sites

×
×
  • Create New...