安裝Cacti套件 apt-get install cacti 安裝過程中會詢問mysql帳密及網頁服務器使用版本請依照自已的情況選擇
開啟http://yourip/cacti/install
出現以下畫面
查看/var/log/apache/error.log 有發現以下的錯誤訊息
Fatal error: Call to undefined function session_unregister() in /usr/local/apache2/htdocs/cacti/lib/functions.php on line 410
修改/usr/local/apache2/htdocs/cacti/lib/functions.php文件.
原文件
function kill_session_var($var_name) {
/* register_global = off: reset local settings cache so the user sees the new settings */
session_unregister($var_name); /* register_global = on: reset local settings cache so the user sees the new settings */
unset($_SESSION[$var_name]);
}
修改如下:
function kill_session_var($var_name) {
/* register_global = off: reset local settings cache so the user sees the new settings */
/*session_unregister($var_name);*/
unset($_SESSION[$var_name]);
/* register_global = on: reset local settings cache so the user sees the new settings */
unset($_SESSION[$var_name]);
}
輸入第一次登入的帳號密碼,Cacti 系統預設是admin/admin。
