AnaLogi OSSEC web user interface on CentOS, RHEL

 

 

 

 

 

 

 

 

[root@ossec ~]# ntsysv
1
[root@ossec ~]# vim /etc/selinux/config
[root@ossec ~]# yum install php-mysql mysql-server mysqd httpd httpd-devel php make gcc gcc-c++ autoconf automake
[root@ossec ~]# /etc/init.d/mysqld start
[root@ossec ~]# /etc/init.d/httpd start
[root@ossec ~]# wget http://www.ossec.net/files/ossec-hids-2.7.tar.gz
[root@ossec ~]# tar -xvf ossec-hids-2.7.tar.gz
[root@ossec ~]# cd ossec-hids-2.7
[root@ossec ~]# yum install mysql-devel
[root@ossec ~]# ./install.sh
[root@ossec ~]# nano /var/ossec/etc/ossec.conf
<database_output>

2
localhost
ossec
ossec ossec
mysql

[root@ossec ~]# /var/ossec/bin/ossec-control enable database
[root@ossec ~]# /var/ossec/bin/ossec-control restart
[root@ossec ~]# mysql -u root -p
grant INSERT,SELECT,UPDATE,CREATE,DELETE,EXECUTE on ossec.* to ossec@localhost;
set password for ossec@localhost=PASSWORD('ossec');
flush privileges;
exit
[root@ossec ~]# wget wget https://github.com/downloads/ECSC/analogi/AnaLogi_v1.3.zip
[root@ossec ~]# unzip AnaLogi_v1.3.zip
[root@ossec ~]# mv ECSC-analogi-a1cd5e3/ /var/www/html/analogi
[root@ossec ~]# cd /var/www/html/
[root@ossec ~]# chmod 775 -R analogi/
[root@ossec ~]# chown apache:apache analogi/
[root@ossec ~]# /etc/init.d/httpd restart
[root@ossec ~]# cd /var/www/html/analogi/
[root@ossec ~]# nano db_ossec.php
[root@ossec ~]# /etc/init.d/mysqld restart
[root@ossec ~]# /root/ossec-hids-2.7/src/os_dbd
mysql -u root -p ossec < mysql.schema
[root@ossec ~]# /var/ossec/bin/ossec-control restart
http://localhost/analogi/

3

 

AnaLogi OSSEC web user interface on CentOS, RHEL
idriskoc@gmail.com'

admin

Bütün Hayatım Linux Sistemleri...

Bir cevap yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir