zabbix3.2 httpd页面500错误

tail -f /var/log/httpd/error_log
[Tue Apr 18 15:21:23.429491 2017] [:error] [pid 3234] [client 172.30.53.52:60326] PHP Warning:  require_once(/etc/zabbix/web/ce.inc.php): failed to open stream: Permission denied in /usr/share/zabbix/include/classes/core/ZBase.php on line 269
[Tue Apr 18 15:21:23.429549 2017] [:error] [pid 3234] [client 172.30.53.52:60326] PHP Fatal error:  require_once(): Failed opuired '/etc/zabbix/web/maintenance.inc.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/zabbix/include/cle/ZBase.php on line 269
[Tue Apr 18 15:21:23.822922 2017] [:error] [pid 3233] [client 172.30.53.52:60327] PHP Warning:  require_once(/etc/zabbix/web/ce.inc.php): failed to open stream: Permission denied in /usr/share/zabbix/include/classes/core/ZBase.php on line 269
[Tue Apr 18 15:21:23.822971 2017] [:error] [pid 3233] [client 172.30.53.52:60327] PHP Fatal error:  require_once(): Failed opuired '/etc/zabbix/web/maintenance.inc.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/zabbix/include/cle/ZBase.php on line 269

原因是php由APACHE启动,/etc/zabbix/web目录权限如下,所以导致apache无进入这个目录的权限。
修改一下属主:

[root@zabbix-grafana web]# chown apache.apache -R .*
[root@zabbix-grafana web]# ll
总用量 8
-rwxr-xr-x. 1 zabbix zabbix 1036 2月  27 17:23 maintenance.inc.php
-rwxr-xr-x. 1 zabbix zabbix  424 4月  12 16:10 zabbix.conf.php
[root@zabbix-grafana web]# pwd
/etc/zabbix/web

猜你喜欢

转载自blog.csdn.net/sinat_36763721/article/details/83504264