Open source intrusion detection system OSSEC building three: Web Interface installation

Source: Internet
Author: User
Tags ossec

Note: The following actions need to be set on the OSSEC server

First, download Analogi, store under/var/www/html/and give permission

[Email protected] ~]# wget https://github.com/ECSC/analogi/archive/master.zip
[Email protected] ~]# Unzip Master.zip
[Email protected] ~]# MV analogi-master//var/www/html/analogi
[Email protected] ~]# cd/var/www/html/
[Email protected] html]# chown-r Apache.apache analogi/
[Email protected] html]# CD analogi/
[email protected] analogi]# CP db_ossec.php.new db_ossec.php

Second, edit the db_ossec.php file, modify the configuration information of MySQL

Define ('Db_user_o','ossec');d Efine ('Db_password_o','ossec');d Efine ('Db_host_o','127.0.0.1');d Efine ('Db_name_o','ossec');

Third, modify Apache configuration, add virtual directory

[Email protected] analogi]# vim/etc/httpd/conf.d/analogi.conf
Add the following content:
/analogi/var/www/html/analogi<directory/var/www/html/analogi> Order Deny,allow fromany from192.168 . 0.0/</Directory>

And then restart Apache.

[Email protected] analogi]# systemctl restart httpd

Open source intrusion detection system OSSEC building three: Web Interface installation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.