Meister Posted September 12, 2012 Group: Members Topic Count: 280 Topics Per Day: 0.06 Content Count: 841 Reputation: 17 Joined: 04/16/12 Last Seen: March 4, 2024 Share Posted September 12, 2012 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 More sharing options...
Dythe Posted September 13, 2012 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 1 Reputation: 0 Joined: 09/13/12 Last Seen: September 26, 2012 Share Posted September 13, 2012 (edited) SQL has nothing to do with that SQL =/= ports Edited September 13, 2012 by Dythe Link to comment Share on other sites More sharing options...
Meister Posted September 13, 2012 Group: Members Topic Count: 280 Topics Per Day: 0.06 Content Count: 841 Reputation: 17 Joined: 04/16/12 Last Seen: March 4, 2024 Author Share Posted September 13, 2012 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 More sharing options...
clydelion Posted September 13, 2012 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 754 Reputation: 186 Joined: 05/22/12 Last Seen: October 15, 2022 Share Posted September 13, 2012 Make sure that your web host allows you to access other ports other than 80.. Link to comment Share on other sites More sharing options...
Jasc Posted September 16, 2012 Group: Members Topic Count: 29 Topics Per Day: 0.01 Content Count: 270 Reputation: 20 Joined: 12/10/11 Last Seen: June 28, 2022 Share Posted September 16, 2012 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 More sharing options...
Chok Designer Posted December 21, 2012 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 108 Reputation: 0 Joined: 08/01/12 Last Seen: February 27, 2015 Share Posted December 21, 2012 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 More sharing options...
Sryx Posted December 21, 2012 Group: Members Topic Count: 15 Topics Per Day: 0.00 Content Count: 520 Reputation: 64 Joined: 11/19/11 Last Seen: October 19, 2024 Share Posted December 21, 2012 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 More sharing options...
Chok Designer Posted December 21, 2012 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 108 Reputation: 0 Joined: 08/01/12 Last Seen: February 27, 2015 Share Posted December 21, 2012 (edited) <?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 January 1, 2013 by gniryudan Please use [CODEBOX] or Attachments for long contents. Link to comment Share on other sites More sharing options...
Question
Meister
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