Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Disable Selinux permanently in '/etc/selinux/config'. This method needs reboot of server.
- SELINUX=disabled
- # Install epel repository
- yum install epel-release -y
- # Install httpd
- yum install httpd -y
- # Start the httpd service & make enable on startup
- systemctl start httpd
- systemctl enable httpd
- # Install require packages for OSSEC
- yum install -y gcc php php-cgi php-devel inotify-tools httpd mysql-devel postgresql-devel
- # Download OSSEC WUI
- git clone https://github.com/ossec/ossec-wui.git
- mv ossec-wui* /var/www/html/ossec-wui
- cd cd /var/www/html/ossec-wui
- ./setup.sh
- Username: centos
- New password: centos
- Re-type new password: centos
- Enter your web server user name (e.g. apache, www, nobody, www-data, ...) apache
- usermod -aG ossec apache
- cd /var/www/html/ossec-wui/
- chmod 770 tmp/
- chgrp apache tmp/
- systemctl restart httpd
- /var/ossec/bin/ossec-control stop
- /var/ossec/bin/ossec-control start
- # Edit /etc/php.ini
- date.timezone = Europe/Bratislava
- max_execution_time = 180
- max_input_time = 180
- memory_limit = 180M
- systemctl restart httpd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement