目录
一、问题:
二、原因:
三、解决方法:
一、问题:
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 FollowSymLinksAllowOverride NoneOrder allow,denyAllow from all<IfModule mod_php5.c>php_value max_execution_time 300php_value memory_limit 128Mphp_value post_max_size 16Mphp_value upload_max_filesize 2Mphp_value max_input_time 300php_value max_input_vars 10000php_value date.timezone Asia/Shanghai</IfModule>
</Directory><Directory "/usr/share/zabbix/conf">Order deny,allowDeny from all<files *.php>Order deny,allowDeny from all</files>
</Directory><Directory "/usr/share/zabbix/api">Order deny,allowDeny from all<files *.php>Order deny,allowDeny from all</files>
</Directory><Directory "/usr/share/zabbix/include">Order deny,allowDeny from all<files *.php>Order deny,allowDeny from all</files>
</Directory><Directory "/usr/share/zabbix/include/classes">Order deny,allowDeny from all<files *.php>Order deny,allowDeny from all</files>
</Directory>
(3)重新启动服务
systemctl restart httpd