安装管理界面 ossec-wui


wget http://www.ossec.net/files/ossec-wui-0.X.tar.gz

[root@db src]# tar xf ossec-wui-0.x.tar.gz

[root@db src]# cd ossec-wui-0.x

[root@db ossec-wui-0.x]# ls

CONTRIB  css  htaccess_def.txt  img  index.php  js  lib  LICENSE  ossec_conf.php  README  README.search  setup.sh  site

[root@db ossec-wui-0.x]# cp -Rf * /opt/ossec/

[root@db ossec-wui-0.x]# cd /opt/ossec/

运行配置脚本

[root@db ossec]# ./setup.sh

配置ossec权限

[root@db ossec]# chgrp apache tmp/

[root@db ossec]# chmod 770 -R tmp/

[root@db ossec]#cat /etc/group

apache:x:48:ossec



添加虚拟目录

[root@db ~]# cat /etc/httpd/conf.d/ossce.conf

Alias /ossec/ "/opt/ossec/"

   Options Indexes FollowSymLinks

   AllowOverride None

   Order allow,deny


Allow from all

#  Order deny,allow

#  Deny from all

#  Allow from 127.0.0.1

  AuthName "OSSEC AUTH"

  AuthType Basic

  AuthUserFile /opt/ossec/.htpasswd

  Require valid-user


##查看 cat /opt/ossec/ossec_conf.php


/* Ossec directory */

$ossec_dir="/opt/ossec";


#########################################################################################

关于使用,待整理完更新。。。。