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

目录

一、问题:

二、原因: 

三、解决方法:


一、问题:

Not Found

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

Zabbix出现 404Not FoundThe requested URL /zabbix was not found on this server._第1张图片

二、原因: 

未找到
在此服务器上找不到请求的 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

修改前:

Zabbix出现 404Not FoundThe requested URL /zabbix was not found on this server._第2张图片

修改后:

Zabbix出现 404Not FoundThe requested URL /zabbix was not found on this server._第3张图片

(3)重新启动服务

systemctl restart httpd

方法二:

(1)创建zabbix.conf文件

touch zabbix.conf

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

#
# Zabbix monitoring system php web frontend
#

Alias /zabbix /usr/share/zabbix


    Options FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all

    
        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
    



    Order deny,allow
    Deny from all
    
        Order deny,allow
        Deny from all
    



    Order deny,allow
    Deny from all
    
        Order deny,allow
        Deny from all
    



    Order deny,allow
    Deny from all
    
        Order deny,allow
        Deny from all
    



    Order deny,allow
    Deny from all
    
        Order deny,allow
        Deny from all
    

(3)重新启动服务

systemctl restart httpd

你可能感兴趣的:(#,问题解决,zabbix)