欢迎光临
我们一直在努力

zabbix 修改默认的/zabbix 斜杠

修改此处   /etc/httpd/conf/httpd.conf

#DocumentRoot "/var/www/html"

DocumentRoot "/usr/share/zabbix"

可以直接访问zabbix了 IP

不用IP/zabbix了

如果zabbix3.4不能浏览

报错:

[Mon Nov 20 16:32:26.449942 2017] [:error] [pid 4979] [client 172.23.10.155:53980] PHP Warning:  require_once(/etc/zabbix/web/maintenance.inc.php): failed to open stream: Permission denied in /usr/share/zabbix/include/classes/core/ZBase.php on line 271

[Mon Nov 20 16:32:26.449996 2017] [:error] [pid 4979] [client 172.23.10.155:53980] PHP Fatal error:  require_once(): Failed opening required '/etc/zabbix/web/maintenance.inc.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/zabbix/include/classes/core/ZBase.php on line 271

[Mon Nov 20 16:32:26.788031 2017] [:error] [pid 4982] [client 172.23.10.155:53981] PHP Warning:  require_once(/etc/zabbix/web/maintenance.inc.php): failed to open stream: Permission denied in /usr/share/zabbix/include/classes/core/ZBase.php on line 271

[Mon Nov 20 16:32:26.788089 2017] [:error] [pid 4982] [client 172.23.10.155:53981] PHP Fatal error:  require_once(): Failed opening required '/etc/zabbix/web/maintenance.inc.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/zabbix/include/classes/core/ZBase.php on line 271

chown  -R   apache.apache  /etc/zabbix/web/

chown  -R apache.apache  /usr/share/zabbix/include/classes/core

重启httpd

和zabbix-server

赞(0)
【声明】:本博客不参与任何交易,也非中介,仅记录个人感兴趣的主机测评结果和优惠活动,内容均不作直接、间接、法定、约定的保证。访问本博客请务必遵守有关互联网的相关法律、规定与规则。一旦您访问本博客,即表示您已经知晓并接受了此声明通告。