Username:    Password:        Click Here To Signup     Forgotten Password
Main Menu
Online
Members: 0

Guests: 13

112.111.x.x forum
120.36.x.x forum
123.125.x.x forum
175.44.x.x forum
185.19.x.x forum
192.151.x.x forum
36.251.x.x forum
54.235.x.x forum
58.22.x.x forum
66.249.x.x forum
85.135.x.x news
91.237.x.x comment
93.172.x.x forum

Last Seen

nott Sat 03:09
Zipps Sat 02:47
mkden Sat 01:26
qwas Fri 14:44
xMin Fri 14:04

Newest Members

Forums
Your rocommendations for list with many servers
burundukas
Sat Mar 15 2008, 06:23AM
Posts: 25
Joined: Wed Jan 30 2008, 11:09AM
Registered Member #3626
In my list ~450 servers.. what i need to set in lgsl_cron.php and in lgsl_config.php to make my list opening and refreshing fast with correct servers information ?

1.

/*----------------------------------------------------------------------------------------------------------\
| |
| [ LIVE GAME SERVER LIST ] [ © RICHARD PERRY FROM GREYCUBE.COM ] |
| |
| Released under the terms and conditions of the GNU General Public License Version 3 (http://gnu.org) |
| |
|-------------------------------------------------------------------------------------------------------------
| [ EDITOR STYLE SETTINGS: LUCIDA CONSOLE, SIZE 10, TAB = 2 SPACES, BOLD GLOBALLY TURNED OFF ] |
\-----------------------------------------------------------------------------------------------------------*/

//------------------------------------------------------------------------------------------------------------+

require "lgsl_class.php";

//------------------------------------------------------------------------------------------------------------+

global $lgsl_config;

$lgsl_config['live_time'] = 3600;
$lgsl_config['cache_time'] = 5;


//------------------------------------------------------------------------------------------------------------+

$server_list = lgsl_query_cached_all("sep");

//------------------------------------------------------------------------------------------------------------+


2.

//------------------------------------------------------------------------------------------------------------+
//[ ADVANCED SETTINGS - DO NOT TOUCH THESE UNLESS YOU REALLY KNOW WHAT YOUR DOING ]

$lgsl_config['live_time'] = 5; // seconds allowed querying servers which prevents page time outs
$lgsl_config['cache_time'] = 70; // seconds before the cache is considered old
$lgsl_config['retry_offline'] = 0; // 1 will quickly retry servers that ignore the first request

$lgsl_config['management'] = 1; // 1 will show advanced management in the admin by default
$lgsl_config['public_feed'] = 0; // 1 will allow anyone to add servers to your lgsl database
$lgsl_config['cms'] = "sa"; // sets which CMS specific code to use
$lgsl_config['url_path'] = ""; // full domain path to /lgsl_files/ for when path detection fails

//------------------------------------------------------------------------------------------------------------+


red color means - what i need to change here to make my list opening and refreshing fast with correct servers information ?

i need this info because now list opens and refresh fast ,but with old (now correct)information about server (players,map)


sorry for bad english ;/
Website
Rich
Sun Mar 16 2008, 08:30AM
Posts: 1700
Joined: Wed Nov 26 2003, 04:30PM

As long as its being run every minute it should not need any changes.

It might be timing out after 30 seconds, which you can fix using a .htaccess file with:

php_value max_execution_time 1800
Website
Rich
Sun Mar 16 2008, 08:45AM
Posts: 1700
Joined: Wed Nov 26 2003, 04:30PM

Just so you know, I am also working on some cron improvements in 4.6 making it easier to sort problems.

If you still have problems, let me know, and I will send you a beta of 4.6 when its finished.
Website
burundukas
Sun Mar 16 2008, 09:50AM
Posts: 25
Joined: Wed Jan 30 2008, 11:09AM
Registered Member #3626
ok , thx
Website
burundukas
Sun Mar 16 2008, 09:53AM
Posts: 25
Joined: Wed Jan 30 2008, 11:09AM
Registered Member #3626
Rich wrote ...

As long as its being run every minute it should not need any changes.

It might be timing out after 30 seconds, which you can fix using a .htaccess file with:

php_value max_execution_time 1800



so just create .htaccess files with:

php_value max_execution_time 1800


and put it to lgsl/lgsl_files or lgsl ?

p.s. example http://cs.infocentras.com/ opens fast with correct servers info
Website
Rich
Sun Mar 16 2008, 02:28PM
Posts: 1700
Joined: Wed Nov 26 2003, 04:30PM

Put it in lgsl

Website
burundukas
Mon Mar 17 2008, 06:44AM
Posts: 25
Joined: Wed Jan 30 2008, 11:09AM
Registered Member #3626
but nothing change.. in HLSW i check some servers and i see in list servers are showing with incorrect info.. (players,map) . i want that: then you refresh list page opens very fast and all info must be correct
Website
Rich
Mon Mar 17 2008, 07:11AM
Posts: 1700
Joined: Wed Nov 26 2003, 04:30PM

How are you running the cron ? using cpanel or crontab ?
Website
burundukas
Mon Mar 17 2008, 12:33PM
Posts: 25
Joined: Wed Jan 30 2008, 11:09AM
Registered Member #3626
Rich wrote ...

How are you running the cron ? using cpanel or crontab ?




what is that ? "running the cron" ? how do it ? :/
Website
Rich
Mon Mar 17 2008, 02:15PM
Posts: 1700
Joined: Wed Nov 26 2003, 04:30PM

The lgsl_cron.php does not run by itself, you need to setup a "cron job", either using the cron options in cpanel or linux.

http://docs.moodle.org/en/Cron

If you have cPanel, you would use * * * * * and the command:

wget -q -O /dev/null http://EXAMPLE.COM/lgsl/lgsl_files/lgsl_cron.php
Website
burundukas
Tue Mar 18 2008, 05:23AM
Posts: 25
Joined: Wed Jan 30 2008, 11:09AM
Registered Member #3626
my hosting dont have cPanel .. :/ so maybe are program which can setup lgsl_cron.php ? give link from where i can download it plz
Website
Rich
Tue Mar 18 2008, 06:05AM
Posts: 1700
Joined: Wed Nov 26 2003, 04:30PM

If your hosting does not use cpanel, check if they provide another way to setup a cron.

If not, ask a friend with cPanel, to setup a cron pointing to your sites lgsl_cron.php ( the cron does not have to be on the same server )
Website
burundukas
Tue Mar 18 2008, 12:40PM
Posts: 25
Joined: Wed Jan 30 2008, 11:09AM
Registered Member #3626
hmmm.. i dont understand.. maybe you have mean: i need use my other hositing with cPanel, and in cPanel make that: wget -q -O /dev/null http://EXAMPLE.COM/lgsl/lgsl_files/lgsl_cron.php
yes ?
Website
burundukas
Tue Mar 18 2008, 01:15PM
Posts: 25
Joined: Wed Jan 30 2008, 11:09AM
Registered Member #3626
i think i understand what i need to do .. so now im looking for free hosting which allow cron jobs.. Rich if you know this free hosting write here plz
Website
Rich
Wed Mar 19 2008, 05:38PM
Posts: 1700
Joined: Wed Nov 26 2003, 04:30PM

Sorry, I dont know any free hosting.

Just an update, some hosts dont allow wget anymore, and give a permission denied error. For those you can try CURL instead.

curl --compressed -s -o /dev/null http://EXAMPLE.COM/lgsl/lgsl_files/lgsl_cron.php
Website
burundukas
Thu Mar 20 2008, 07:47AM
Posts: 25
Joined: Wed Jan 30 2008, 11:09AM
Registered Member #3626
DELETED
Website
burundukas
Thu Mar 20 2008, 12:43PM
Posts: 25
Joined: Wed Jan 30 2008, 11:09AM
Registered Member #3626
Rich wrote ...

The lgsl_cron.php does not run by itself, you need to setup a "cron job", either using the cron options in cpanel or linux.

http://docs.moodle.org/en/Cron

If you have cPanel, you would use * * * * * and the command:

wget -q -O /dev/null http://EXAMPLE.COM/lgsl/lgsl_files/lgsl_cron.php



i did it .
now i have 1 question:
Rich maybe now i want to much...? I want when I refresh page (list) all servers new info quickly comes on the list .. but now you can refresh .. refresh but everytime server info is old.. so i close page and wait few minutes..(or just wait few minutes) and then refresh and all info now is correct.. but when i refresh again servers info is old... :/

sorry for bad english, I hope you understand what i write here..
Website
HTM|Minion
Thu Mar 20 2008, 01:09PM

Posts: 25
Joined: Fri Feb 22 2008, 01:20PM
Registered Member #3734
If you change this setting :

 $lgsl_config['cache_time'] = 70; // seconds before the cache is considered old


It will dump the cache at what ever interval you use, but with that many servers I don't know if that is or isn't a good idea. You better wait for Rich.
Website
Rich
Thu Mar 20 2008, 03:02PM
Posts: 1700
Joined: Wed Nov 26 2003, 04:30PM

First thing is to view the lgsl_cron.php in your browser, and making sure its refreshing all the servers, and not timing out.

Also remember that the list only updates once every minute.
Website
burundukas
Fri Mar 21 2008, 05:11AM
Posts: 25
Joined: Wed Jan 30 2008, 11:09AM
Registered Member #3626
ok , thx !
Website
 

Jump:     Back to top


You are not logged in - Click Here To Signup

Username:    Password:   

Mini Buttons

.... © GreyCube.com - Richard Perry - Powered by e107.org