Advertisement
Guest User

Untitled

a guest
Apr 17th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.05 KB | None | 0 0
  1. # Disable Selinux permanently in '/etc/selinux/config'. This method needs reboot of server.
  2. SELINUX=disabled
  3. # Install epel repository
  4. yum install epel-release -y
  5. # Install httpd
  6. yum install httpd -y
  7. # Start the httpd service & make enable on startup
  8. systemctl start httpd
  9. systemctl enable httpd
  10. # Install require packages for OSSEC
  11. yum install -y gcc php php-cgi php-devel inotify-tools httpd mysql-devel postgresql-devel
  12. # Download OSSEC WUI
  13. git clone https://github.com/ossec/ossec-wui.git
  14. mv ossec-wui* /var/www/html/ossec-wui
  15. cd cd /var/www/html/ossec-wui
  16. ./setup.sh
  17. Username: centos
  18. New password: centos
  19. Re-type new password: centos
  20. Enter your web server user name (e.g. apache, www, nobody, www-data, ...) apache
  21. usermod -aG ossec apache
  22. cd /var/www/html/ossec-wui/
  23. chmod 770 tmp/
  24. chgrp apache tmp/
  25. systemctl restart httpd
  26. /var/ossec/bin/ossec-control stop
  27. /var/ossec/bin/ossec-control start
  28. # Edit /etc/php.ini
  29. date.timezone = Europe/Bratislava
  30. max_execution_time = 180
  31. max_input_time = 180
  32. memory_limit = 180M
  33. systemctl restart httpd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement