Zabbix出现 404Not FoundThe requested URL /zabbix was not found on this server.

目录

一、问题:

二、原因:

三、解决方法:


一、问题:

Not Found

The requested URL /zabbix was not found on this server.

二、原因:

未找到

在此服务器上找不到请求的 URL /zabbix。

/etc/httpd/conf.d 目录下缺少 zabbix.conf (zabbix的配置)文件。

三、解决方法:

方法一:

(1)复制zabbix.conf到 /etc/httpd/conf.d/ 下

复制代码
cp /etc/opt/rh/rh-php72/php-fpm.d/zabbix.conf /etc/httpd/conf.d/

(2)修改时间区域(去除前面的; 末尾修改为上海的时区)

#php_value[date.timezone] = Asia/Shanghai

复制代码
vi  /etc/httpd/conf.d/zabbix.conf

修改前:

修改后:

(3)重新启动服务

复制代码
systemctl restart httpd

方法二:

(1)创建zabbix.conf文件

复制代码
touch zabbix.conf

(2)在文件中添加如下内容

复制代码
#
# Zabbix monitoring system php web frontend
#

Alias /zabbix /usr/share/zabbix

<Directory "/usr/share/zabbix">
    Options FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all

    <IfModule mod_php5.c>
        php_value max_execution_time 300
        php_value memory_limit 128M
        php_value post_max_size 16M
        php_value upload_max_filesize 2M
        php_value max_input_time 300
        php_value max_input_vars 10000
        php_value date.timezone Asia/Shanghai
    </IfModule>
</Directory>

<Directory "/usr/share/zabbix/conf">
    Order deny,allow
    Deny from all
    <files *.php>
        Order deny,allow
        Deny from all
    </files>
</Directory>

<Directory "/usr/share/zabbix/api">
    Order deny,allow
    Deny from all
    <files *.php>
        Order deny,allow
        Deny from all
    </files>
</Directory>

<Directory "/usr/share/zabbix/include">
    Order deny,allow
    Deny from all
    <files *.php>
        Order deny,allow
        Deny from all
    </files>
</Directory>

<Directory "/usr/share/zabbix/include/classes">
    Order deny,allow
    Deny from all
    <files *.php>
        Order deny,allow
        Deny from all
    </files>
</Directory>

(3)重新启动服务

复制代码
systemctl restart httpd
相关推荐
半梦半醒*29 分钟前
zabbix安装
linux·运维·前端·网络·zabbix
LoneEon6 小时前
Zabbix 配置钉钉告警
ubuntu·钉钉·zabbix
Zabbix中国1 天前
MCP 打通AI大模型与 Zabbix,运维新时代来了!
zabbix·mcp
小晶晶京京9 天前
day54-Zabbix(第三部分)
linux·运维·服务器·zabbix
云游16 天前
Zabbix7.4.8(三):通过Zabbix agent 2监控Docker相关指标
docker·容器·zabbix
网络坤子-蔡先生17 天前
CentOS 8 部署 Zabbix 7.0 LTS 完整流程(PostgreSQL)及不同系统agent安装
postgresql·centos·zabbix
从零开始的ops生活17 天前
【Day 68】Zabbix-自动监控-Web检测-分布式监控
linux·网络·zabbix
云游18 天前
Zabbix7.4.8(一):通过Zabbix agent 2监控postgresql相关指标
运维·postgresql·zabbix
纳切威19 天前
CentOS 10服务器版 部署Zabbix7.2 server端
linux·运维·centos·zabbix
纳切威20 天前
CentOS 9部署Zabbix7.0 Agent2端
linux·运维·centos·zabbix