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

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

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

解决办法:

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