Linux · 2012-03-14

NagiosQL Write test on settings directory (config/): failed

安装NagiosQL的时候,检查config/文件夹 始终提示:Write test on settings directory (config/): failed
即使777的权限也行不通,很显然问题不在chmod上

Checking System Permissions
warningSettings file does not exist (config/settings.php): will be created
invalidWrite test on settings directory (config/): failed
validRead test on one class file (functions/nag_class.php): OK
validRead test on home page file (admin.php): OK
validRead test on one template file (templates/index.tpl.htm): OK
validRead test on one admin template file (templates/admin/admin_master.tpl.htm): OK
validRead test on one file template (templates/files/contacts.tpl.dat): OK
validRead test on one image file (images/pixel.gif): OK 

解决办法:

echo 0 >/selinux/enforce
sed -i 's/SELINUX=enforcing/SELINUX=disable/' /etc/selinux/config