目录
一、问题:
二、原因:
三、解决方法:
一、问题:
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