今天在CentOS 6.3上配置Nagios的时候遇到了一些麻烦,前面的步骤都顺利,nagios运行后,可以看到nagios的主页,左边的菜单可以显示,但点击左边的菜单时总是提示Internal Server Error错误.错误如下:

------------------------------------------------------------------------------------------------------

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log.

------------------------------------------------------------------------------------------------------

Apache/2.0.52 (CentOS) Server at mail1.chinabank.com.cn Port 80
 
通过查看错误日志,从第一行发现,应该是SELinux处于开启的状态的原因,关闭SELinux,一切OK。

[Tue Jan 29 01:24:14 2013] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:httpd_t:s0