截止到web出现安装页面,出现两个问题:
一是启动httpd时报警显示Could not reliably determine the server`s fully qualified domain name
解决方案:需vim /etc/httpd/conf/httpd.conf 加入一句 ServerName localhost:80
二是web写入ip可以显示apache的welcome页面,但是http://ip/cacti报错FATAL: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'
故障分析:用户cacti没有mysql权限;
解决方案: mysql -ucacti -pcacti 无法进入mysql,重新赋权后 mysql -uroot -e "grant all on cacti.* to 'cacti'@'localhost' identified by 'cacti';" 可以正常进入mysql环境,web安装页面正常显示
一是启动httpd时报警显示Could not reliably determine the server`s fully qualified domain name
解决方案:需vim /etc/httpd/conf/httpd.conf 加入一句 ServerName localhost:80
二是web写入ip可以显示apache的welcome页面,但是http://ip/cacti报错FATAL: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'
故障分析:用户cacti没有mysql权限;
解决方案: mysql -ucacti -pcacti 无法进入mysql,重新赋权后 mysql -uroot -e "grant all on cacti.* to 'cacti'@'localhost' identified by 'cacti';" 可以正常进入mysql环境,web安装页面正常显示
编辑回复