我将本地虚拟机 上面的 php nginx 程序打包好,放到远程主机上(系统版本一致)。cactiEZ恢复操作,步骤一致。
访问cacti 主页的时候:
Fatal error: Call to undefined function define_syslog_variables() in /usr/local/nginx/html/plugins/manage/setup.php on line 752
# sed -n '752p' /usr/local/nginx/html/plugins/manage/setup.php
define_syslog_variables(); 我的操作是注释掉,才可以看到cacti登陆界面。
登陆进去后,提示:
Fatal error: Call to undefined function session_unregister() in /usr/local/nginx/html/lib/functions.php on line 411
# sed -n '411p' /usr/local/nginx/html/lib/functions.php
session_unregister($var_name); 再次注释掉,再次浏览,表面看起来正常,但插件的那些页面,其中部份乱码了。