Zabbix ServerをUpdateしたら画面が真っ白に
Zabbix Server/Web/Agent の新しいVerが出ていたので yum で Updateしたら画面が真っ白に・・・
/var/log/nginx/error.log を確認した所
2018/11/17 12:09:45 [error] 960#960: *9 FastCGI sent in stderr: "PHP message: 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 271PHP message: 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" while reading response header from upstream, client: ***.***.***.***, server: zabbix, request: "GET /zabbix/index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "***.***.***.***"
上記エラーを出力
Updateしたら、権限書き換わってアクセスエラーしとる奴やねって事で
# ls -l /etc/zabbix drwxr-x--- 2 apache apache 56 Nov 17 11:54 web -rw-r--r-- 1 root root 10632 Nov 12 19:55 zabbix_agentd.conf drwxr-xr-x 2 root root 38 Nov 17 11:54 zabbix_agentd.d -rw-r----- 1 root zabbix 15784 Sep 17 04:42 zabbix_server.conf -rw-r----- 1 root zabbix 15527 Nov 12 19:55 zabbix_server.conf.rpmnew
# chown -R nginx:nginx /etc/zabbix/web