我刚刚在 Centos 8 上从源代码安装了 cacti-1.2.12。完成安装后,我总是在选项卡之间切换,cacti 日志显示:
2020-05-07 19:28:17 - CMDPHP PHP ERROR WARNING Backtrace: (/clog.php[27]:include(), /include/auth.php[28]:require_once(), /include/global.php[444]:cacti_session_start(), /lib/functions.php[5541]:session_name(), CactiErrorHandler())
2020-05-07 19:28:17 - ERROR PHP : session_name(): Cannot change session name when session is active in file: /apps/cacti-1.2.12/lib/functions.php on line: 5541
2020-05-07 19:28:17 - CMDPHP PHP ERROR WARNING Backtrace: (/clog.php[27]:include(), /include/auth.php[28]:require_once(), /include/global.php[405]:ini_set(), CactiErrorHandler())
2020-05-07 19:28:17 - ERROR PHP : ini_set(): A session is active. You cannot change the session module's ini settings at this time in file: /apps/cacti-1.2.12/include/global.php on line: 405
2020-05-07 19:28:17 - CMDPHP PHP ERROR WARNING Backtrace: (/clog.php[27]:include(), /include/auth.php[28]:require_once(), /include/global.php[396]:ini_set(), CactiErrorHandler())
2020-05-07 19:28:17 - ERROR PHP : ini_set(): A session is active. You cannot change the session module's ini settings at this time in file: /apps/cacti-1.2.12/include/global.php on line: 396
2020-05-07 19:28:17 - CMDPHP PHP ERROR WARNING Backtrace: (/clog.php[27]:include(), /include/auth.php[28]:require_once(), /include/global.php[395]:ini_set(), CactiErrorHandler())
2020-05-07 19:28:17 - ERROR PHP : ini_set(): A session is active. You cannot change the session module's ini settings at this time in file: /apps/cacti-1.2.12/include/global.php on line: 395
2020-05-07 19:28:17 - CMDPHP PHP ERROR WARNING Backtrace: (/clog.php[27]:include(), /include/auth.php[28]:require_once(), /include/global.php[394]:ini_set(), CactiErrorHandler())
2020-05-07 19:28:17 - ERROR PHP : ini_set(): A session is active. You cannot change the session module's ini settings at this time in file: /apps/cacti-1.2.12/include/global.php on line: 394
php.ini(仅会话配置)是:
session.save_handler = files
session.save_path = "/apps/php/var/lib/php/session/"
session.use_strict_mode = 1
session.use_cookies = 1
session.use_only_cookies = 1
session.name = PHPSESSID
session.auto_start = 1
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.cookie_httponly =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor = 1000
session.gc_maxlifetime = 1440
session.referer_check =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
session.hash_function = 0
session.hash_bits_per_character = 5
我怎样才能避免这些错误日志泛滥?
谢谢