Changes between Version 1 and Version 2 of doc/install/auth-server

Show
Ignore:
Timestamp:
02/13/06 07:38:24 (14 years ago)
Author:
anonymous
Comment:

info from rob janes about running cleanup

Legend:

Unmodified
Added
Removed
Modified
  • doc/install/auth-server

    v1 v2  
    115115 * !PhpInfo : http://server.com/install.php?page=phpinfo 
    116116 
     117=== Cleanup === 
     118Cleanup needs to be run to "log out" users that haven't otherwise logged out: 
     119 
     120either set CONF_USE_CRON_FOR_DB_CLEANUP to false in your config.php, or put this one line script in /etc/cron.hourly 
     121 
     122{{{ 
     123cd <wifidog-auth base directory where config.php is> && su apache -c 'php -f cron/cleanup.php' 
     124}}} 
     125or, in crontab 
     126{{{ 
     1270,5,10,15,20,25,30,35,40,45,50,55 * * * * cd <wifidog-auth base dir where config.php is> && su apache -c 'php -f cron/cleanup.php' > /dev/null 2>&1 
     128}}} 
     129 
     130or, depending on your cron.. 
     131 
     132{{{ 
     1330,5,10,15,20,25,30,35,40,45,50,55 * * * * apache cd <wifidog-auth base dir where config.php is> && php -f cron/cleanup.php > /dev/null 2>&1 
     134}}} 
     135you may have to edit this line in cron/cleanup.php from 
     136{{{ 
     137require_once('../include/common.php'); 
     138}}} 
     139(that errors for me) to 
     140{{{ 
     141require_once(dirname(__FILE__).'/../include/common.php'); 
     142}}} 
     143door number one is definitely the easier one, but i don't like it that every user query that comes in runs cleanup. 
     144 
     145the redirect to dev null is cause cleanup.php moans about $_SERVER not being set, and you'll get an email from cron every 5 minutes about that. 
     146 
    117147---- 
    118148